Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 google.com 上将 RemoteWebDriver 与 xpath 定位器一起使用,这是来自运行 firefox 的节点的日志。它接收所有这些命令但不执行它们。除了打开谷歌主页外,我没有看到任何浏览器活动。
我有类似的麻烦。我的虽然是 webdriver。我注意到行为取决于浏览器。在下面的链接中,我举了两个例子。第一个是像你这样的Firefox,第二个是使用android驱动程序。不过,他们都使用 chrome。
在我的情况下,xpath 最终确实使用了更明确的路径(比查找元素所需的更明确),如果这不可能,我不得不走另一条路线,比如 css。
https://stackoverflow.com/a/11341946/1258245