-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscreenshot.robot
More file actions
26 lines (22 loc) · 786 Bytes
/
Copy pathscreenshot.robot
File metadata and controls
26 lines (22 loc) · 786 Bytes
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
*** Settings ***
Library SeleniumLibrary
*** Test Cases ***
testcase1
Open browser https://trevo.my chrome
maximize browser window
capture element screenshot xpath://*[@id="whytrevo"]/section/div/div/div[1]/div/div[2]/div/div[1]/figure/img car.png
capture page screenshot trevo.png
sleep 3
#3 types of scrolling
#Type 1
#execute javascript window.scrollTo(0,1000)
#Type 2
#this below command can scroll to bottom
execute javascript window.scrollTo(0,document.body.scrollHeight)
sleep 2
#Type 3
execute javascript window.scrollTo(0,-document.body.scorllHeight)
sleep 5
scroll element into view xpath://*[@id="jointrevo"]/div/div[1]/a/div/div[2]/div
sleep 5
close browser