Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Timeout Ex when open auction page #382

Open
wants to merge 1 commit into
base: eauction-devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -531,6 +531,11 @@ def convert_datetime_to_dot_format(isodate):
return day_string


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


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

Expand Down