0

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

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
Bastian
  • 1,089
  • 7
  • 25
  • 74

1 Answers1

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 :

[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.

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
  • what is the logic? if it is unique why not to mark it? how can I know where it is located in the DOM? I have a page so I need to find it in F12 and than copy the page to notepad++ and find it? – Bastian Jul 22 '20 at 13:48
  • It's a bug in Chrome 84, officially once triaged I will share with you the details. I'm waiting for the CA guys triage the issue. – undetected Selenium Jul 22 '20 at 13:50