简体   繁体   English

Selenium WebDriver无法单击元素(仅适用于2个PC中的1个)

[英]Selenium WebDriver cannot click on element (works only on 1 of 2 pcs)

I'm using Chrome and Selenium with Java to do some automation testing. 我正在使用带有Java的Chrome和Selenium进行一些自动化测试。 What could be the issue for getting the element cannot be clicked at x, y on 1 machine, but working perfectly on another? 无法在1台计算机element cannot be clicked at x, y ,而在另一台计算机上完美地工作,则可能是导致获取element cannot be clicked at x, y的问题?

The pcs have the same selenium library version, same Chrome browser version and the same chromedriver.exe version. 这些电脑具有相同的硒库版本,相同的Chrome浏览器版本和相同的chromedriver.exe版本。

Both of the chrome instances start off with no extensions on both pcs. 两个Chrome实例均在两台PC上都没有扩展名开始。

LATER EDIT: 之后编辑:

I've determined that the issue is only persistent on some Acer machines with integrated video cards. 我确定该问题仅在某些带有集成视频卡的Acer机器上仍然存在。 The issue appears only on 1 page where there is an animated slideshow, all other elements work on all machines. 该问题仅出现在有动画幻灯片的1页上,所有其他元素在所有计算机上均有效。 Also tested on another machine with dedicated gfx and it worked fine. 在另一台具有专用gfx的计算机上进行了测试,效果很好。 Is it absurd to think that the animation can cause this? 认为动画会导致这种现象是荒谬的吗?

After trying on a few more machines, I can safely assume that the issue was with the integrated Intel HD card on the machine. 在多台计算机上尝试之后,我可以安全地认为问题出在计算机上的集成Intel HD卡上。

It seems that selenium + javascript slideshow + intel HD 似乎硒+ JavaScript幻灯片+英特尔高清

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

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