-
Notifications
You must be signed in to change notification settings - Fork 3
Sauce Labs
Random notes about browser testing on Sauce Labs
Element is not clickable at point
Chrome will only allow clicking on screen elements. On Sauce, this is difficult when the default screen resolution is very low. The solution is to use Windows or OS X < 10.9 and set the screen resolution. Linux is not currently supported. Note that driver calls to resize the window larger than the default screen resolution of 1024x768 won't work unless the screen res cap is set. The screen resolution must be higher than the requested browser size.
# ruby
driver.manage.window.resize_to 1024, 768 # 1920, 1200--
Running in parallel
- Java
-
Ruby
- File based. parallel_tests
- Test based. parallel_split_test
--
Manually specify the version of Chrome on Sauce. Setting version to an empty string will default to version 35.
--
Set value on an input directly to avoid change event firing which happens on element.clear. Some apps require the change event to fire so this won't work universally.
# Code from stackoverflow
# http://stackoverflow.com/questions/25583641/set-value-of-input-instead-of-sendkeys-selenium-webdriver-nodejs
driver.execute_script("arguments[0].setAttribute('value', arguments[1])", inputField, longstring);