forked from mattfair/SeleniumFactory-for-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
19 lines (12 loc) · 873 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
SeleniumFactory for Python
---------------------------
Simple interface factory to create Selenium objects, inspired by SeleniumFactory interface
from https://github.com/infradna/selenium-client-factory. The main objective is to be able to have an automatic interface to easily run tests under the Bamboo Sauce Ondemand plugin as well as local tests. The factory object reads environments variables setup by the Bamboo plugin and creates a remote Sauce OnDemand session accordingly, otherwise it creates a local selenium configuration.
Simple setup:
from SeleniumFactory import *
For selenium 2 webDriver:
webDriver = SeleniumFactory().createWebDriver()
For selenium 1 RC:
browser = SeleniumFactory().create()
Current state of code:
Please note that the code is very new and still being developed. Please look at the code and make any improvements you feel fit.