-
Notifications
You must be signed in to change notification settings - Fork 0
/
verify_name.robot
51 lines (31 loc) · 1.43 KB
/
verify_name.robot
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
48
49
50
51
*** Settings ***
Library SeleniumLibrary
*** Variables ***
${url} https://shopee.com
${browser} chrome
*** Test Cases ***
Testcase1
Open Browser ${url} ${browser}
close browser
Testcase2
Open Browser ${url} ${browser}
wait until page contains ${url}
maximize browser window
close browser
Testcase3
Open Browser ${url} ${browser}
wait until page contains ${url}
maximize browser window
title should be Shopee Malaysia | Free Shipping Across Malaysia
click button xpath://*[@id="modal"]/div[1]/div[1]/div/div[3]/div[1]/button
sleep 2
Press Keys none ESC
wait until element is visible dom:document.querySelector("#main > div > div._193wCc._3cVWns > div.home-page > shopee-banner-popup-stateful").shadowRoot.querySelector("div > div > div > div > div")
click element dom:document.querySelector("#main > div > div._193wCc._3cVWns > div.home-page > shopee-banner-popup-stateful").shadowRoot.querySelector("div > div > div > div > div")
${input_txt} set variable xpath://input[@placeholder='Search for products, brands and shops']
element should be enabled ${input_txt}
element should be visible ${input_txt}
sleep 3
input text xpath://input[@placeholder='Search for products, brands and shops'] apple
click button xpath://*[@id="main"]/div/div[2]/div[1]/div[2]/div/div[1]/div[1]/button
*** Keywords ***