Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions atest/acceptance/keywords/click_element_modifier.robot
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ Initialize Page
Element Text Should Be output initial output

Close Popup Window
Select Window myName timeout=5s
Switch Window myName timeout=5s
Close Window
Select Window MAIN timeout=5s
Switch Window MAIN timeout=5s
6 changes: 3 additions & 3 deletions atest/acceptance/keywords/implicit_wait.robot
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Browser Open With Implicit Wait And Test Wating
Implicit Wait And New Window
${old_value} = Set Selenium Implicit Wait 3
Execute Javascript window.open("about:blank")
Select Window NEW
Switch Window NEW
${start_time} = Get Current Date result_format=epoch exclude_millis=yes
Run Keyword And Ignore Error Wait Until Page Contains Element //not_here 1
${end_time} = Get Current Date result_format=epoch exclude_millis=yes
Expand All @@ -25,8 +25,8 @@ Implicit Wait And New Window
Implicit Wait And Back To Main Window
${old_value} = Set Selenium Implicit Wait 3
Execute Javascript window.open("about:blank")
Select Window NEW
Select Window MAIN
Switch Window NEW
Switch Window MAIN
${start_time} = Get Current Date result_format=epoch exclude_millis=yes
Run Keyword And Ignore Error Wait Until Page Contains Element //not_here 1
${end_time} = Get Current Date result_format=epoch exclude_millis=yes
Expand Down
4 changes: 2 additions & 2 deletions atest/acceptance/keywords/navigation.robot
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ Target Opens in New Window
Cannot Be Executed in IE
Click Link Target opens in new window
Wait Until Keyword Succeeds 5 1 Wait Until Window Is Open
Select Window ${INDEX TITLE}
Switch Window ${INDEX TITLE}
Verify Location Is "index.html"
[Teardown] Run Keyword If Test Passed Run Keywords Close Window Select Window
[Teardown] Run Keyword If Test Passed Run Keywords Close Window Switch Window

*** Keywords ***
Wait Until Window Is Open
Expand Down
44 changes: 22 additions & 22 deletions atest/acceptance/windows.robot
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ Get Window Titles With Non ASCII Title
${exp_titles}= Create List Click link to show a popup window äää
Click Link my popup
Wait Until New Window Is Open
${parent} = Select Window Original
${parent} = Switch Window Original
Click Element unicode
${titles} = Get Window Titles
Should Be Equal ${titles} ${exp_titles}
[Teardown] Select Window ${parent}
[Teardown] Switch Window ${parent}

Get Title
${title} = Get Title
Expand Down Expand Up @@ -126,85 +126,85 @@ Select Window By Handle
Cannot Be Executed in IE
Click Link my popup
Wait Until New Window Is Open
${parent}= Select Window Original
${parent}= Switch Window Original
Title Should Be Original
${child}= Select Window ${parent}
${child}= Switch Window ${parent}
Title Should Be Click link to show a popup window
Select Window ${child}
Switch Window ${child}
Close Window
${FromWindow}= Select Window ${parent}
${FromWindow}= Switch Window ${parent}
Title Should Be Click link to show a popup window
Should Be True ${FromWindow} == None

Select Window With Delay By Title
[Tags] Known Issue Internet Explorer
Click Button id:MyButton
Select Window Original timeout=5
Switch Window Original timeout=5
Title Should Be Original
Close Window
Select Window main
Switch Window main
Title Should Be Click link to show a popup window

Select Window With Delay By Title And Window Not Found
[Tags] Known Issue Internet Explorer
Click Button id:MyButton
Run Keyword And Expect Error
... No window matching handle, name, title or URL 'Original' found.
... Select Window Original timeout=0.2
[Teardown] Select Window main
... Switch Window Original timeout=0.2
[Teardown] Switch Window main

Select Popup Window By Excluded List
[Tags] Known Issue Internet Explorer
Cannot Be Executed in IE
@{excluded_handle_list}= Get Window Handles
Click Link my popup
${parent}= Select Window ${excluded_handle_list} timeout=5
${parent}= Switch Window ${excluded_handle_list} timeout=5
Title Should Be Original
Close Window
Select Window ${parent}
Switch Window ${parent}
Title Should Be Click link to show a popup window

Select Popup Window With Delay By Excluded List
[Tags] Known Issue Internet Explorer
@{excluded_handle_list}= Get Window Handles
Click Button id:MyButton
Select Window ${excluded_handle_list} timeout=5
Switch Window ${excluded_handle_list} timeout=5
Title Should Be Original
Close Window
Select Window main
Switch Window main
Title Should Be Click link to show a popup window

Select Window By Special Locator
[Tags] Known Issue Internet Explorer
Cannot Be Executed in IE
${start}= Select Window current
${start}= Switch Window current
Click Link my popup
${parent}= Select Window new timeout=5
${parent}= Switch Window new timeout=5
Title Should Be Original
Should Be True '${start}' == '${parent}'
Close Window
Select Window main
Switch Window main
Title Should Be Click link to show a popup window

Select Window With Delay By Special Locator
[Tags] Known Issue Internet Explorer
Click Button id:MyButton
Select Window new timeout=5
Switch Window new timeout=5
Title Should Be Original
Close Window
Select Window main
Switch Window main
Title Should Be Click link to show a popup window

*** Keywords ***
Open Popup Window, Select It And Verify
[Arguments] ${window_id}
Click Link my popup
Select Window ${window_id} timeout=5
Switch Window ${window_id} timeout=5
Title should Be Original

Select Main Window And Verify
Close Window
Select Window main timeout=5
Switch Window main timeout=5
Title Should Be Click link to show a popup window

Do Action In Popup Window And Verify
Expand All @@ -213,7 +213,7 @@ Do Action In Popup Window And Verify

Close Popup Window And Select Main Window By Title
Close Window
Select Window title=Click link to show a popup window
Switch Window title=Click link to show a popup window

Wait Until New Window Is Open
Wait Until Keyword Succeeds 5 1 New Windows Should Be Open
Expand Down