From a682893c568eabf49033a5257af0bef1e1fba901 Mon Sep 17 00:00:00 2001 From: OSerhii Date: Wed, 30 Nov 2016 13:08:14 +0200 Subject: [PATCH] Replace 'Open Browser' with 'Create WebDriver' --- op_robot_tests/tests_files/auction.robot | 5 ++++- op_robot_tests/tests_files/data/users.yaml | 2 +- op_robot_tests/tests_files/service_keywords.py | 5 +++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/op_robot_tests/tests_files/auction.robot b/op_robot_tests/tests_files/auction.robot index 7d8fb46c7..9c89d535b 100644 --- a/op_robot_tests/tests_files/auction.robot +++ b/op_robot_tests/tests_files/auction.robot @@ -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} diff --git a/op_robot_tests/tests_files/data/users.yaml b/op_robot_tests/tests_files/data/users.yaml index 92970dace..5d2de3763 100644 --- a/op_robot_tests/tests_files/data/users.yaml +++ b/op_robot_tests/tests_files/data/users.yaml @@ -14,7 +14,7 @@ users: Tender_Viewer: api_key: "" broker: Quinta - browser: firefox + browser: Firefox Etender_Owner: broker: Etender homepage: "http://e-auction.pro/#/" diff --git a/op_robot_tests/tests_files/service_keywords.py b/op_robot_tests/tests_files/service_keywords.py index ac54bbaad..79cde14d1 100644 --- a/op_robot_tests/tests_files/service_keywords.py +++ b/op_robot_tests/tests_files/service_keywords.py @@ -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)