Selenium Command

前端 未结 4 1279
逝去的感伤
逝去的感伤 2020-12-22 06:38

When we use selenium command at that time command not find and attribute not get? See below command.



        
      
      
      
4条回答
  •  甜味超标
    2020-12-22 06:47

    1. Use xPaths in this case.
    2. Use google chrome's built in developer tool for this
    3. Place your cursor on the element
    4. Press Ctrl+Shift+C
    5. Click the Element
    6. That clicked Element's code is highlighted in the short window on the bottom
    7. Right-Click on highlighted code
    8. 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

提交回复
热议问题
open