-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.txt
More file actions
78 lines (64 loc) · 2.43 KB
/
test.txt
File metadata and controls
78 lines (64 loc) · 2.43 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
*** Settings ***
Library WebDriverRobotLibrary
SuiteSetup SuiteSetupTasks
SuiteTeardown SuiteTeardownTasks
TestSetup TestSetupTasks
TestTeardown TestTeardownTasks
*** Variables ***
# SET THIS VARIABLE TO POINT TO THE LOCATION OF THE FILE IN YOUR PC!
${TEST_URL}= file:///C:/Users/user/Desktop/testpage.html
*** Keywords ***
SuiteSetupTasks
OpenBrowser firefox
SetBrowserWindowSize 800 600
SuiteTeardownTasks
CloseBrowser
TestSetupTasks
SetFindElementTimeout 15
SetWaitAfterAction 0
ClearBrowserData
TestTeardownTasks
RunKeywordIfTestFailed GetPageScreenshot
*** Test Cases ***
Simple Demonstration
NavigateToUrl ${TEST_URL}
ClickElement xpath=//input[@type='checkbox'][1]
WriteTextToField name=textField hello world!
ClickElement linkText=test link
ClickPopupOk
ClickElement id=myButton
ClickPopupCancel
RightClickOnElement xpath=//button[text()[contains(.,'Right click')]]
ElementTextContains id=my_text_div text appears from
SwitchToFrame myFrame
UnselectCheckbox tagName=input
SwitchToDefaultContext
DoubleClickOnElement partialLinkText=Double click
ElementTextEquals id=my_second_text_div another dynamic text element!
ClickElement id=mySecondButton
ElementTextNotContains id=my_text_div text appears from
WriteTextToField name=textField hello world for the second time!
RightClickOnElement xpath=//button[text()[contains(.,'Right click')]]
ElementTextContains id=forAll Right click me! dynamic
Sleep 3s
Simple Demonstration re-run
NavigateToUrl ${TEST_URL}
ClickElement xpath=//input[@type='checkbox'][1]
WriteTextToField name=textField hello world!
ClickElement linkText=test link
ClickPopupOk
ClickElement id=myButton
ClickPopupCancel
RightClickOnElement xpath=//button[text()[contains(.,'Right click')]]
ElementTextContains id=my_text_div text appears from
SwitchToFrame myFrame
UnselectCheckbox tagName=input
SwitchToDefaultContext
DoubleClickOnElement partialLinkText=Double click
ElementTextEquals id=my_second_text_div another dynamic text element!
ClickElement id=mySecondButton
ElementTextNotContains id=my_text_div text appears from
WriteTextToField name=textField hello world for the second time!
RightClickOnElement xpath=//button[text()[contains(.,'Right click')]]
ElementTextContains id=forAll Right click me! dynamic
Sleep 3s