Skip to content

Commit

Permalink
Merge branch 'init' into 'master'
Browse files Browse the repository at this point in the history
Release 0.1.1 Selenium test runs on GitLabCI in standalone remote Chrome Browser

See merge request aleksandr-kotlyar/python-gitlabci-selenium-example!1
  • Loading branch information
aleksandr-kotlyar committed Mar 7, 2020
2 parents 02d6508 + 7618870 commit ae57c55
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Changelog

#### version 0.1.0 (08-03-2020)
Created simple gitlab-ci with remote standalone-chrome and one test for it.
## 0.1.1
- fixed: throw chrome Options() to Remote webdriver

## 0.1.0
- created simple gitlab-ci testing project with selenium, remote standalone-chrome and one selenium test in ci job.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

__version__ = '0.1.0'
__version__ = '0.1.1'
4 changes: 3 additions & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@

import pytest
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.remote.webdriver import WebDriver


@pytest.fixture(scope='function')
def browser() -> WebDriver:
driver = webdriver.Remote(
command_executor='http://selenium__standalone-chrome:4444/wd/hub')
command_executor='http://selenium__standalone-chrome:4444/wd/hub',
options=Options())
return driver

0 comments on commit ae57c55

Please sign in to comment.