Tuesday, 18 March 2014

How to enter the value in textbox in selenium webdriver in Python?

We can enter the data in the editboxes using sendkeys method as illustrated in the below example.

from selenium import webdriver

#driver = webdriver.Chrome("F:\\selenium\\Csharp\\iedriverserver.exe")

#driver = webdriver.Chrome("F:\\selenium\\Csharp\\chromedriver.exe")

driver = webdriver.Firefox()




except Exception as e:

    print ("Exception occured", format(e));



    print ("finally")

What do you think on above selenium topic. Please provide your inputs and comments. You can write to me at reply2sagar@gmail.com

No comments:

Post a Comment

Buy Best Selenium Books