I'm running Selenium grid with only Windows machines and the resource use is quite high.
I've been toying with the idea of putting Chrome and Firefox inside docker containers to improve efficiency.
My question is are there any key differences in the browsers themselves on the different platforms, i.e. would Chrome on Windows behave differently to Chrome on Linux or do they run the same code and behave the same?
Selenium
tends to mock the followingUser Actions
:sendKeys("LiamHarries")
sendKeys(Keys.ENTER)
andsendKeys(Keys.RETURN)
moveToElement(element).perform()
click()
All these
User Actions
are independent of the underlyingOS Platforms
andHardware Configuration
. Hence if they run the same code and they will behave the same.Update :
As per your comment
if something is rendered one was on chrome on windows will it be the same on chrome on Linux
, it is worth to mention when new versions of Web Browsers are published in different formats (e.g..tz
/.tr
/.gz
forLinux
and.zip
/.rar
forWindows
) and they contain the required components (separate forWindows
/Linux
and32
/64
bit) to install the Browser as per underlying OS Architecture.Though the
Install Location
andDirectory Structure
may vary within theOS Flavors
, the release candidateWeb Browser
goes through differentTesting Procedures
(e.g. Alpha Testing, Beta Testing, UAT and UX Control Testing) which does ensures that the User Experience is seamless and similar across all theOS Variants
.Hence, from
Selenium
perspective underlying hardware bears No Impact