Chrome DevTools not find elements not search

醉酒当歌 提交于 2021-02-02 03:44:39

问题


I am using selenium for chrome automation. for a while now the DevTool of chrome (F12) not working as expcted. (Version 84.0.4147.89 (Official Build) (64-bit))

When I try to locate element it is not find it even the element exists. Even when I press ctrl + f and search for a big word it is not find it. I need the dev tool since it is mark where the element, and where I am standing. Is their any soloution? I provide two pics: in one it's find and marked the value, and after I add the letter 'c' it is not find. Moreover it says found one and it is the search field, what happened to chrome? and all the locators not found as well


回答1:


The real issue is DevTools within Google Chrome 84.0 doesn't highlights the first matched element.

Incase, it's a single match, the search result does show 1 of 1 but the element is not highlighted within the DOM Tree

As an example, we all are aware that the search box on Google Home Page can be identified uniquely using the css-selector:

[name='q']

DevTools within Google Chrome 84.0, does finds the element and shows 1 of 1 but the element is not highlighted.

However, if there are multiple element matching to the Locator Strategy, barring the first matched element, the other elements are highlighted.



来源:https://stackoverflow.com/questions/63034593/chrome-devtools-not-find-elements-not-search

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!