Skip to content
Merged
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
33 changes: 33 additions & 0 deletions atest/acceptance/keywords/timeout_with_alert.robot
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
*** Settings ***
Documentation This tests the RF conversion than alters
Suite Setup Set Global Timeout 1 second
Test Setup Go To Page "javascript/alert.html"
Suite Teardown Restore Global Timeout
Resource ../resource.robot

*** Test Cases ***
Handle Alert Different Timeouts Types Str None
Click Link Click Me!
Handle Alert ACCEPT None
Alert Should Not Be Present

Handle Alert Different Timeouts Types Object None
Click Link Click Me!
Handle Alert ACCEPT ${None}
Alert Should Not Be Present

Handle Alert Different Timeouts Types Str Int
[Documentation] This tests the RF conversion than alters
Click Link Click Me!
Handle Alert ACCEPT 3
Alert Should Not Be Present

Handle Alert Different Timeouts Types Str Float
Click Link Click Me!
Handle Alert ACCEPT 2.0
Alert Should Not Be Present

Handle Alert Different Timeouts Types Float Object
Click Link Click Me!
Handle Alert ACCEPT ${3.0}
Alert Should Not Be Present