what are the Dynamic elements in web Application?

Answer Posted / sehgalkhyati@gmail.com

Use these methods
Relative XPath with Starting Text
XPath: //button[starts-with(@id, 'tag-')]
Relative XPath with Text Contains
XPath: //input[contains(@class, '-test-')].
Element with Index
driver.findElements(By.xpath(“//*button”)).get(0).click();

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of selenium webdriver?

612


What are the different types of web controller APIs supported in Selenium?

645


How to download a file in selenium webdriver?

580


Does selenium support mobile internet testing?

579


How many test cases you have automated per day?

567






Explain the different kinds of frameworks in automation?

564


How to take screenshots in selenium webdriver?

607


Explain what is group test in testng?

589


How can I read test data from excels?

570


What is a relative xpath?

611


How to get the number of frames on a page?

623


When to use accessors in selenium?

689


Have you created any framework?

608


How can you prepare customized html report using testng in hybrid framework?

564


How to iterate through options in test script?

606