Chrome 84 Inspect element, find results not highlighted in yellow like before

前端 未结 6 841
耶瑟儿~
耶瑟儿~ 2020-12-01 15:52

As per usual when making automated tests I use "Inspect"(CTRL+SHIFT+I) in Chrome to find element by xpath, id, CSS selector etc. For example:

//li/a         


        
6条回答
  •  旧巷少年郎
    2020-12-01 16:32

    Another option is to go to console section and evaluate your xpath like this $x("yourXpath") and hit enter. In the case of google search button woulb be like this: $x("//*[@name='q']") then you hit enter and expand the structure that appears below and if you hover with the mouse, the element is going to be highlighted.

提交回复
热议问题