When we use selenium command at that time command not find and attribute not get? See below command.
| open |
-
2020-12-22 06:47
- Use xPaths in this case.
- Use google chrome's built in developer tool for this
- Place your cursor on the element
- Press Ctrl+Shift+C
- Click the Element
- That clicked Element's code is highlighted in the short window on the bottom
- Right-Click on highlighted code
- Select Copy > Copy XPath
Here it is you have copied the xPath for that specific element. This is shown in the image:
Click to see how to copy xPath