Commit ad3c0ffe862645063dde1feb721dbfa134eaed97

Authored by Andrew Yanovych
2 parents 4e91783c 51e3699d
1 1 from robot import run_cli
2 2 import os
3 3 import sys
  4 +from chromedriver import CHROMEDRV_PATH
  5 +
  6 +sys.path.append(CHROMEDRV_PATH)
4 7
5 8
6 9 def runner():
7 10 args = sys.argv[1:]
8   - #if '-s' not in args:
9   - # args += ['-s', 'OpenProcurementProcess']
10 11 if '-d' not in args:
11 12 directory = os.path.join(os.getcwd(), 'test_output')
12 13 if not os.path.exists(directory):
... ...
... ... @@ -33,7 +33,7 @@ Go to homepage
33 33 Go To ${HOMEPAGE}
34 34
35 35 Login
36   - Wait Until Page Contains Element id=phone_email 100
  36 + Wait Until Page Contains Element id=phone_email 100
37 37 Input text id=phone_email ${LOGIN}
38 38 Input text id=password ${PASSWORD}
39 39 Click Button id=submit_login_button
... ... @@ -113,4 +113,5 @@ get tender id
113 113 Click Link jquery=a[href^="#/tenderDetailes"]
114 114 Wait Until Page Contains ${ARGUMENTS[1]} 10
115 115 sleep 1
116   - Capture Page Screenshot
\ No newline at end of file
  116 + Capture Page Screenshot
  117 +
... ...
... ... @@ -32,7 +32,8 @@ setup(name='op_robot_tests',
32 32 'jsonpath-rw',
33 33 'dateutils',
34 34 'pytz',
35   - 'parse'
  35 + 'parse',
  36 + 'chromedriver'
36 37 ],
37 38 entry_points={
38 39 'console_scripts': [
... ...
Please register or login to post a comment