-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresource.txt
More file actions
47 lines (37 loc) · 2.18 KB
/
resource.txt
File metadata and controls
47 lines (37 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
*** Settings ***
Library Selenium2Library
*** Variables ***
${BROWSER} firefox
${HOST} localhost:4444
${REGISTRATION_URL} http://172.19.0.177:5555/wd/hub
${TEST_URL} https://www.onliner.by/
*** Keywords ***
Test Teardown
Close Browser
Go to catalog
Wait Until Page Contains Element //span[contains(text(), "Каталог")] 3 sec
Click Element //span[contains(text(), "Каталог")]
Go To Electric Goods
Wait Until Page Contains Element //span[contains(text(), "Электроника")] 3 sec
Click Element //span[contains(text(), "Электроника")]
Go To Mobile Phones
Wait Until Page Contains Element //div[contains(text(), "Мобильные телефоны")] 3 sec
Click Element //div[contains(text(), "Мобильные телефоны")]
Wait Until Page Contains Element //div[contains(@class, "catalog-navigation-list_active")]/div/div/div/div/div/div[contains(text(), 'Мобильные телефоны')] 3 sec
Click Element //div[contains(@class, "catalog-navigation-list_active")]/div/div/div/div/div/div[contains(text(), 'Мобильные телефоны')]
Go To Telescopes
Wait Until Page Contains Element //div[contains(text(), "Оптические приборы")] 3 sec
Click Element //div[contains(text(), "Оптические приборы")]
Wait Until Page Contains Element //div[contains(text(), "Оптические приборы")]/../div/div/a[@href='https://catalog.onliner.by/telescope'] 3 sec
Click Element //div[contains(text(), "Оптические приборы")]/../div/div/a[@href='https://catalog.onliner.by/telescope']
Check Placeholder
Wait Until Page Contains Element //input[contains(@placeholder, 'Поиск в Каталоге.')] 3 sec
Page Should Contain Element //input[contains(@placeholder, 'Поиск в Каталоге.')] msg=No Mobile Phones H1 on page
Suite Teardown
Run Keyword If Any Tests Failed Selenium2Library.Capture Page Screenshot
Close All Browsers
Test Setup
Set Selenium Timeout 5 sec
Open Browser ${REGISTRATION_URL} ${BROWSER}
Go To ${TEST_URL}
#Maximize Browser Window