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
What are the advantages of selenium webdriver?
What are the different types of web controller APIs supported in Selenium?
How to download a file in selenium webdriver?
Does selenium support mobile internet testing?
How many test cases you have automated per day?
Explain the different kinds of frameworks in automation?
How to take screenshots in selenium webdriver?
Explain what is group test in testng?
How can I read test data from excels?
What is a relative xpath?
How to get the number of frames on a page?
When to use accessors in selenium?
Have you created any framework?
How can you prepare customized html report using testng in hybrid framework?
How to iterate through options in test script?