Web Table - Selenium Automation with Python, Pycharm IDE

Publicado el: 22 enero 2022
en el canal de: Trikam Patel
30
1

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)


En esta página del sitio puede ver el video en línea Web Table - Selenium Automation with Python, Pycharm IDE de Duración hora minuto segunda en buena calidad , que subió el usuario Trikam Patel 22 enero 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 30 veces y le gustó 1 a los espectadores. Disfruta viendo!