Questions tagged [saucelabs]

Sauce Labs is a cloud service providing web browsers and mobile devices for both manual and automated testing.

Sauce Labs is a cloud service providing web browsers and mobile devices for both manual and automated testing. Automated testing on Sauce Labs is compatible with Selenium and JS testing frameworks.

527 questions
4
votes
1 answer

How to override useragent in firefox browser on saucelabs

Saucelabs:- https://saucelabs.com/ Am creating the firefox driver on saucelabs using the following:- DesiredCapabilities capabilities = DesiredCapabilities.firefox(); capabilities.setCapability("version", "5"); …
Sam
  • 5,040
  • 12
  • 43
  • 95
4
votes
1 answer

Python- Using Proxy(Browsermob) with Remote Webdriver

I'm trying to check on the network traffic on a site using Browsermob Proxy. By running the following: I've found that the Proxy server is refusing connections: "the proxy server is refusing connections" "firefox is configured to use a proxy that is…
user3662456
  • 267
  • 2
  • 11
4
votes
1 answer

TravisCI and SauceLabs - file does not exist on the file system

I have a project that has Protractor tests which are executed by TravisCI via SauceLabs. One of the tests involve "uploading" a file: it('should not allow "image/jpeg" file', function () { pathToFile = path.resolve(__dirname, 'file.jpg'); …
Greg
  • 31,180
  • 18
  • 65
  • 85
4
votes
5 answers

Protractor: timed out after 10000 msec waiting for spec to complete

I have several protractor tests and sometimes I get a error saying: Message: timeout: timed out after 10000 msec waiting for spec to complete Stacktrace: undefined It can be randomly happening on some tests. I usually test on…
3
votes
2 answers

Getting Saucelab error "There is no device that matches your criteria."

I am trying to run an Appium test in saucelab real devices. But that is throwing error "There is no device that matches your criteria." All config files with console logs are pasted here :…
Soheet
  • 49
  • 4
3
votes
0 answers

How to intentionally make my browser slower on SauceLabs?

I'm writing a UI automated test that runs on SauceLabs (chrome browser) and want to make sure my test is handling when web pages are very slow at loading.
Qma
  • 111
  • 1
  • 8
3
votes
1 answer

Getting "Failed to start Selenium listener." error message while running testcafe script through saucelabs

I am trying to run testcafe script through saucelabs. But getting the following error message. MAIN failed to create listener on port 4445 MAIN possible socket error: libevent connection error Failed to start Selenium listener. Please make sure…
user3389310
  • 151
  • 6
3
votes
1 answer

Standalone vs embedded Browsermob proxy for cloud-based tests (Sauce Labs/Browserstack)

I made a working test locally with embedded Browsermob proxy server. Nothing new, but still here is the sample code. _server = new BrowserMobProxyServer() _server.start(); Proxy proxy = ClientUtil.createSeleniumProxy(_server); …
3
votes
0 answers

How can I use saucelabs connect with circle-ci 2.0?

In circle-ci 1.0 the config file seemed to specify dependencies. I noticed that in circle-ci 2.0 that this concept is gone to some degree. Sooo I tried the following: steps: - checkout - run: name: Install Sauce Connect …
Parris
  • 17,833
  • 17
  • 90
  • 133
3
votes
1 answer

Sauce Labs failing to execute javascript

I am using Selenium WebdriverJs in conjunction with Mocha to run tests on Sauce Labs via Travis CI. I have isolated my problem devoid of any project dependencies. Please help. So, what happens is that if I try to define an additional object having…
3
votes
2 answers

how to instantly set/send_keys a textarea in capybara

I need to instantly fill a textarea with a very long string for testing purposes. set/send_keys simulates typing and is too slow for Sauce Labs causing time outs. Is there a way to instantly fill a textarea in Capybara?
danksim
  • 617
  • 3
  • 9
  • 27
3
votes
4 answers

java.lang.Exception: Test class should have exactly one public constructor

I've following junit test package test.java.com.unit; import com.saucelabs.common.SauceOnDemandAuthentication; import com.saucelabs.common.SauceOnDemandSessionIdProvider; import com.saucelabs.junit.Parallelized; import…
Pooja
  • 51
  • 1
  • 1
  • 6
3
votes
0 answers

Travis CI and Sauce Labs: Can I get Safari working?

I've got Travis CI working with Sauce Labs on Linux, OS X, and Windows, running tests on Firefox and Chrome. I'd like to get the tests running on Safari as well, but I ran into this. In a nutshell, Safari will only work with a few specific ports for…
kyrofa
  • 1,759
  • 1
  • 14
  • 19
3
votes
1 answer

Why does SauceLabs say my QUnit Test Fails when its clearly passing?

We are trying to use SauceLabs to verify that our browser-based QUnit tests are passing in popular device/browser combinations ... The tests PASS when we look at them in the browser: https://ordenado.herokuapp.com/ But for some reason SauceLabs is…
nelsonic
  • 31,111
  • 21
  • 89
  • 120
3
votes
1 answer

Browser extension testing with selenium c# in Saucelabs

Is it possible to test browser extensions with selenium c# in Saucelab. If so how and where to place the latest extension package in saucelab VM so that selenium launches the browser with the extension.
Vaish
  • 56
  • 4
1 2
3
35 36