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
3
votes
1 answer

With Rails 4 and selenium web driver, use Sauce Labs on Travis CI but not locally

I'm filling out specs for an open source Rails project and need to run the app in a browser for some of my feature specs. I'd like to use Sauce Labs on Travis CI, but without having to rewrite my specs to also use Sauce Labs locally, because: I…
3
votes
1 answer

Get protractor sessionId into a file

I need to get the job ID / session ID from a protractor run into a file so I can create links to screenshots / videos at Saucelabs . Is there a correct way to do this? One approach I'm looking at is to get the session ID from the browser object…
tariksbl
  • 1,069
  • 6
  • 20
3
votes
2 answers

Saucelabs: org.openqa.selenium.WebDriverException: The test with session id *** has already finished, and can't receive further commands

When i execute the test cases parallely, I get a lot of "The test has already finished errors." I am sure the following are not the cause as mentioned in Common error messages link here. driver.quit() is not the reason why the test is marked as…
Shyam Visamsetty
  • 444
  • 2
  • 6
  • 16
3
votes
1 answer

How to report JavaScript errors during functional tests using Intern?

How can I report JavaScript errors that occur during test execution using Intern? Basically, if there are any JavaScript errors on the page (even as part of things that aren't explicitly tested) I want to know. Background I'm just getting started…
jon_wu
  • 1,113
  • 11
  • 26
3
votes
1 answer

Selenium testing on iPhone with SauceLabs in Javascript

How to do end-to-end testing for iPhones, using Selenium and SauceLabs, for a Javascript application? I am using wd.js as a Selenium client library. Be browser the result of require("wd").remote(..., "promiseChain"): browser.init({ browserName:…
ehmicky
  • 1,915
  • 4
  • 20
  • 29
3
votes
2 answers

Dealing with timeouts in Sauce Labs

I have Web Driver code that works without issue when running on a local instance of a browser. My code interacts with the browser, but has a period where it kicks off some background tasks via terminal in order to set up data for the remainder of…
Dave
  • 1,480
  • 3
  • 16
  • 26
3
votes
1 answer

Parsing dynamic values in Behat/Mink Yml file configurations through Mink Extension.php(Selenium2) for Saucelabs

I was wondering if there's a possible way to parse dynamic values, specifically the name by using the *.feature Behat/Mink tests as it's running the into the Yml configuration file with Selenium2 Capabilities The behat.yml file uses…
Ben Fong
  • 31
  • 4
3
votes
1 answer

Disable flash in saucelabs/selenium webdriver?

I am trying to use saucelabs to automate taking screenshots of several sites to make sure that changing code doesn't break things. I'm programming using webdriver for python and need to disable flash on chrome, firefox and IE. I've tried to find the…
3
votes
4 answers

Accessing virtual hosts from other computers – xip.io alternative

Sometimes you need to access your (Pow) virtual hosts from another computer on your local network — for example, when testing your application on a mobile device or from a Windows or Linux VM. So far I've been using pow and xip.io seems to be the…
Marius Butuc
  • 17,781
  • 22
  • 77
  • 111
3
votes
2 answers

How to Report Results to Sauce Labs using Geb/Spock?

I want to use the Sauce Labs Java REST API to send Pass/Fail status back to the Sauce Labs dashboard. I am using Geb+Spock, and my Gradle build creates a test results directory where results are output in XML. My problem is that the results XML file…
XDelphiGrl
  • 117
  • 1
  • 2
  • 8
3
votes
1 answer

Automatically testing UIWebView content with Selenium

I have an iPhone application that contains a UIWebView for rendering certain UI aspects. The UIWebView content communicates with the Objective-C side through NSURLRequests. I'd like to test the UIWebView contents with Selenium so it could be…
TuomasR
  • 2,296
  • 18
  • 28
3
votes
1 answer

Sauce labs tests with meaningful names

I am using rspec and cucumber to run watir tests at sauce labs. I would like that test name (at sauce labs) is the same as the name of rspec describe block or cucumber feature. So, if I have rspec file: describe "something" do # teh codez end or…
Željko Filipin
  • 56,372
  • 28
  • 94
  • 125
2
votes
1 answer

How can I handle file download pop up for safari using nightwatch

I am trying to use something like this, similar to my firefox options, but my test doesn't seem to handle the download pop-up, any suggestions ? Thank you "safari": { "downloadFolder": "Users/chef/Downloads/", "desiredCapabilities": { …
2
votes
1 answer

How to send different data to each script running in parallel using NodeJS, Protractor, and Saucelabs?

I have multiple automation scripts setup with NodeJS, Protractor, Jasmine Framework and SauceLabs. Each script is in separate .JS files and it reads data from .JSON files. I have defined login credentials and all other necessary data within the JSON…
Kowshika N
  • 23
  • 4
2
votes
1 answer

How to configure test case name in sauce labs for robot framework

I want to configure the name of the test case in Sauce Labs when viewing the test results. Currently the name that I am passing in the desired capabilities is popping up in the sauce labs and I am not able to understand which result is for which…