Bastian
Bastian

Reputation: 1237

Chrome DevTools not find elements not search

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 enter image description here

enter image description here

Upvotes: 0

Views: 2182

Answers (1)

undetected Selenium
undetected Selenium

Reputation: 193208

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 :

[name='q']

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

snapshot

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

Upvotes: 1

Related Questions