简体   繁体   English

selenium 未检测到 firefox 中的链接,但相同的测试在 Internet Explorer 中运行良好

[英]selenium not detecting a link in firefox but same test runs fine in internet explorer

My selenium tests are working fine on internet explorer but they are not able to recognize some of the links in firefox, even when I am using their ids to detect them.我的 selenium 测试在 Internet Explorer 上运行良好,但他们无法识别 firefox 中的某些链接,即使我使用他们的 id 来检测它们。 Any solution will be much appreciated.任何解决方案将不胜感激。

thanks, Nitin谢谢,尼丁

Try using different selectors.尝试使用不同的选择器。 CSS is proven to be more browser-independent. CSS被证明更独立于浏览器。

Try with xpath or CSS and let me know it's working or not..尝试使用 xpath 或 CSS 并让我知道它是否正常工作..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM