Chrome DevTools找不到元素无法搜索 [英] Chrome DevTools not find elements not search
问题描述
我正在使用硒进行镀铬自动化.一段时间以来,Chrome(F12)的DevTool无法正常工作.(版本84.0.4147.89(官方内部版本)(64位))
当我尝试定位元素时,即使元素存在也找不到它.即使当我按ctrl + f并搜索一个大词时也找不到它.我需要开发工具,因为它是标记元素和我所处位置的标记.他们有什么求婚吗?我提供了两张照片:在一张照片中找到并标记了值,在添加字母"c"后找不到.而且它说找到了一个,而且是搜索领域,铬发生了什么?以及所有找不到的定位器
真正的问题是
但是,如果有多个元素与定位器策略,除第一个匹配的元素外,其他元素都突出显示.
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
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.
这篇关于Chrome DevTools找不到元素无法搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!