Web Table - Selenium Automation with Python, Pycharm IDE
Click See More for the code:
Code Starts Here - - - - - - - - - - - - - - - - - - - - *- - - - - - - - - - - - - - - -
from selenium import webdriver
from selenium.webdriver.common.by import By
import time
driver = webdriver.Chrome(executable_path="C:/Program Files (x86)/Google/Chrome/Application/chromedriver.exe")
driver.get("G:\\trikam\\table.html")
rows=len(driver.find_elements_by_xpath("/html/body/table/tbody/tr"))
cols=len(driver.find_elements_by_xpath("/html/body/table/tbody/tr[1]/td"))
print(rows)
print(cols)
print("Product"+" "+"Article"+" "+"Price")
for r in range(2,rows+1):
for c in range(1,cols+1):
value=driver.find_element_by_xpath("/html/body/table/tbody/tr["+str(r)+"]/td["+str(c)+"]").text
print(value,end=' ')
print(2)
In questa pagina del sito puoi guardare il video online Web Table - Selenium Automation with Python, Pycharm IDE della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Trikam Patel 22 gennaio 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 30 volte e gli è piaciuto 1 spettatori. Buona visione!