what are the Dynamic elements in web Application?
Answers were Sorted based on User's Feedback
Answer / raam
the elements whose identifiers are non static which may change within time..dynamically generates its identifiers.
it is used for buttons,text etc..
| Is This Answer Correct ? | 18 Yes | 0 No |
Answer / 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 |
Have you used any crossbrowsertesting tool to run selenium scripts on cloud?
How to hover the mouse on an element?
How can you mark a test case as failed by using soft assertion?
How many exceptions do you know in selenium webdriver?
Mention why do you need session handling while working with selenium?
How would you test your element locator?
How testing is better than junit?
What are the different components of the selenium?
What is selenese and what are the types of selenese?
Differentiate between ‘/’ and ‘//’.
What is the difference between driver.close() and driver.quit command?
Why do you need session handling while working with selenium?