Input box, Test Box Selenium Automation with Python, Pycharm IDE

Publié le: 23 janvier 2022
sur la chaîne: Trikam Patel
17
0

Input box, Test Box - 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

driver = webdriver.Chrome(executable_path="C:/Program Files (x86)/Google/Chrome/Application/chromedriver.exe")

driver.get("https://fs2.formsite.com/meherpavan/f...")

How to find how many inputboxes are present in this web page

inputboxess=driver.find_elements(By.CLASS_NAME, 'text_field')
print("How many texboxes ") # Count of total text boxes
print(len(inputboxess))

status=driver.find_element(By.ID,'RESULT_TextField-1').is_displayed()
print("Displayed or not: ",status)

status=driver.find_element(By.ID,'RESULT_TextField-1').is_enabled()
print("Enabled or not: ",status)


how to privide value into text box

driver.find_element(By.ID,'RESULT_TextField-1').send_keys("Trikam")
driver.find_element(By.ID,'RESULT_TextField-2').send_keys("Patel")


Sur cette page du site, vous pouvez voir la vidéo en ligne Input box, Test Box Selenium Automation with Python, Pycharm IDE durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Trikam Patel 23 janvier 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 17 fois et il a aimé 0 téléspectateurs. Bon visionnage!