How do I get dynamic div content in selenium
See how the dynamic message displays in the browser. I am adding a name in a text field and clicking save button. After clicking save, a message displays as New Staff added or Staff Name already exists!. I want to get the content of the message. Based on the content I want to proceed with my testcase or end it. How can this be done using selenium?
What you are trying to test feels like pretty basic automated web testing.
- Do some action
- Wait for new element to appear
- Verify content of element
I think the best advice I can give you is to get better (web testing) knowledge: