Toggle navigation
Home
(current)
Selenium Training
Course Details
Free Videos
Support Forum
QTP UFT Training
Course Details
Free Videos
Support Forum
Appium Training
Course Details
Free Videos
Support Forum
Contact Us
(current)
All Courses
(current)
Login
(current)
Avail Discount
Name
Email
Phone Number
Tools
Selenium
QTP/UFT
Appium
Enroll Now
Home
Forum
Selenium Forum
Clik on a button using Lable text
Clik on a button using Lable text
M
Posted on 11/11/2016
Hi,
I want to click on a button who has the text "Resume Scanning".
In the below script. Instead of the hard coding (Resume Scanning ), can i pass the value from property file?
driver.findElement(By.xpath("//button[contains(.,'Resume Scanning')]"));
Kindly clarify.
Thanks,
Kannan C
M
Replied on 14/11/2016
try it. it should work.