Skip to content

Commit

Permalink
Switch version management to PBR
Browse files Browse the repository at this point in the history
  • Loading branch information
levi-rs committed May 7, 2017
1 parent fe6bb19 commit fc4996d
Show file tree
Hide file tree
Showing 13 changed files with 160 additions and 2,404 deletions.
2 changes: 0 additions & 2 deletions .coveragerc

This file was deleted.

1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ deploy:
on:
branch: master
tags: true
python: '3.4'
python: '3.6'
2 changes: 2 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Levi Noecker <levi-rs@users.noreply.github.com>
levi-rs <levi.noecker@rewardstyle.com>
66 changes: 66 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
CHANGES
=======

* Switch version management to PBR

0.1.0
-----

* Add find\_one method to waiter

0.0.8
-----

* Use official Python 3.6 for testing
* Update README to include by imports

0.0.7
-----

* Fix PyPI deployment
* Add importable By types to main package

0.0.6
-----

* Add find\_elements to waiter

0.0.5
-----

* Add find\_write to waiter
* Add Gitter badge
* Fix copy/paste error

0.0.4
-----

* Update Development Status Classifier
* Update README with example
* Update badges

0.0.3
-----

* Add find\_element function
* Add initial find\_element function
* Add docs dir
* Convert README from md to rst
* Fix long description
* Fix syntax error from copy/paste
* Add long description
* Update setup.py classifiers
* Update README badge

0.0.2
-----

* Switch .travis.yml to production deployment
* Try using 3.6.0b1
* Add \_\_init\_\_ to tests/
* Update travis.yml
* Add Versioneer docs
* Switch to TravisCI
* Add initial structure
* Initial commit
* Initial commit
38 changes: 38 additions & 0 deletions example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
from explicit import waiter
from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()

try:
driver.get("https://github.com/this/doesntexist")

username_field = waiter.find_element(driver, "login_field", By.ID)
username_field.click()
username_field.send_keys("my_username")

password_field = waiter.find_element(driver, "password", By.ID)
password_field.click()
password_field.send_keys("my_password")

login_button = waiter.find_element(driver, "input.btn-primary", By.CSS_SELECTOR)
login_button.click()
finally:
driver.quit()


from explicit import waiter
from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()

try:
driver.get("https://github.com/this/doesntexist")

waiter.find_write(driver, "login_field", "my_username", by=By.ID)

waiter.find_write(driver, "password", "my_password", by=By.ID, send_enter=True)

finally:
driver.quit()
5 changes: 2 additions & 3 deletions explicit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from pbr.version import VersionInfo
from selenium.webdriver.common.by import By

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
__version__ = VersionInfo('explicit').semantic_version().release_string()

CLASS_NAME = By.CLASS_NAME
CSS = By.CSS_SELECTOR
Expand Down
Loading

0 comments on commit fc4996d

Please sign in to comment.