Skip to content
This repository has been archived by the owner on Apr 27, 2019. It is now read-only.

VirtaHealth/saucelabs-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

saucelabs-python

Build Status

Saucelabs REST API client for python

Quickstart

Import the library:

from sauce import Sauce

Then create an instance of the client:

sauce = Sauce(YOUR_SAUCE_USERNAME, YOUR_SAUCE_ACCESS_KEY)

Now you can use the client!

sauce.status()
sauce.browsers('webdriver')
sauce.jobs.list_jobs(skip=10)

Jobs

Each webdriver session has a corresponding job id in sauce. You can access the job/session id in the webdriver object:

wd = webdriver.Firefox()
wd.session_id

Modify and inspect jobs and job status by using the jobs object:

sauce = Sauce(YOUR_SAUCE_USERNAME, YOUR_SAUCE_ACCESS_KEY)
jobs = sauce.jobs
jobs.get_job_details(wd.session_id)
jobs.stop_job(wd.session_id)
jobs.delete_job(wd.session_id)

Enjoy!

About

Saucelabs REST API client for python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%