Windows和Linux上的Chrome和Firefox(selenium)

我只用Windows机器运行Selenium网格,资源使用率很高。

我一直在考虑将Chrome和Firefox放在Docker容器中以提高效率。

我的问题是,在不同的平台上浏览器本身有什么关键的区别,也就是说,Windows上的Chrome与Linux上的Chrome不同,还是运行相同的代码,并且行为相同?

Selenium倾向于嘲笑以下User Actions

  • 发送文本: sendKeys("LiamHarries")
  • 特殊的键盘字符: sendKeys(Keys.ENTER)sendKeys(Keys.RETURN)
  • 鼠标hover: moveToElement(element).perform()
  • 点击: click()

所有这些User Actions都独立于底层OS PlatformsHardware Configuration 。 因此,如果他们运行相同的代码,他们将performance相同。


更新:

根据你的评论, if something is rendered one was on chrome on windows will it be the same on chrome on Linux ,它将if something is rendered one was on chrome on windows will it be the same on chrome on Linux ,值得一提的是,新版本的Web浏览器以不同的格式发布(例如.tz / .tr / .gz对于Linux.zip / .rar对于Windows ),它们包含所需的组件(针对Windows / Linux64位分开),以根据底层OS架构安装浏览器。

虽然Install LocationDirectory StructureOS Flavors可能会有所不同,但候选发行版Web Browser会经历不同的Testing Procedures (例如AlphatestingBetatestingUATUX控制testing ),确保用户体验 无缝且类似所有OS Variants

因此,从Seleniumangular度来看,底层硬件没有任何影响

注意 :在早期的Google Chrome版本中, Headless Chromefunction,但这是Chrome Release Map