Skip to content

Commit

Permalink
Replace 'Open Browser' with 'Create WebDriver'
Browse files Browse the repository at this point in the history
  • Loading branch information
OSerhii committed Nov 30, 2016
1 parent ceeef20 commit a682893
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion op_robot_tests/tests_files/auction.robot
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ Suite Teardown Test Suite Teardown

Відкрити сторінку аукціону для ${username}
${url}= Run as ${username} Отримати посилання на аукціон для глядача ${TENDER['TENDER_UAID']} ${TENDER['LOT_ID']}
Open browser ${url} ${USERS.users['${username}'].browser}
Wait Until Keyword Succeeds 10 x 1 s Run Keywords
... Create WebDriver ${USERS.users['${username}'].browser}
... AND set_custom_page_load_timeout 15
... AND Go To ${url}


Дочекатись дати закінчення аукціону користувачем ${username}
Expand Down
2 changes: 1 addition & 1 deletion op_robot_tests/tests_files/data/users.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ users:
Tender_Viewer:
api_key: ""
broker: Quinta
browser: firefox
browser: Firefox
Etender_Owner:
broker: Etender
homepage: "http://e-auction.pro/#/"
Expand Down
5 changes: 5 additions & 0 deletions op_robot_tests/tests_files/service_keywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,3 +508,8 @@ def convert_datetime_to_dot_format(isodate):

def local_path_to_file(file_name):
return os.path.join(os.path.dirname(__file__), 'documents', file_name)


def set_custom_page_load_timeout(timeout):
driver = BuiltIn().get_library_instance('Selenium2Library')._current_browser()
driver.set_page_load_timeout(timeout)

0 comments on commit a682893

Please sign in to comment.