Home > Software design >  I can't find an element by XPATH in a dropdown list
I can't find an element by XPATH in a dropdown list

Time:01-06

I can't find an element by XPATH in a dropdown list.

As the image below, I want to expand the div (number 1 in the image) to be able to copy the XPATH of an element of the dropdown list. (number 3 in the image), but whatever I try to do, the "aria-hidden" changes to "true" and the dropdown disappears, and then the div I need to expand disappears too.

Does anyone know how I can find the XPATH of the elements in this list that keeps disappearing with anything I do?

enter image description here

........................

CodePudding user response:

you can try ublock extension to stop the js of the website

CodePudding user response:

You need to pause JavaScript execution. Open Chrome browser Go to source TAB and then hover over the element that you want to take xpath.

Now press Press Ctrl \ it will pause javascript execution, Now you can hover and take xpath of the element.

enter image description here

  • Related