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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
events
submit
"
https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/WebElement.html#submit()
"

driver
httpPostHandleResponse: (self baseElementURL , 'submit')
jsonData: Dictionary new
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ testSendKeys
| inputElement submitButton submittedValue |
self assert: self componentUnderTest inputFieldValue isNil.
inputElement := driver findElementByID: 'inputField'.
inputElement click.
inputElement sendKeys: 'foo' ,
(String with: BPKeys shift) , 'bar' ,
(String with: BPKeys shift) , 'baz' ,
(String with: BPKeys shift) , 'qux'.
inputElement sendKeys: 'quux'.
inputElement sendKeys: 'QU' , (String with: BPKeys shift) , 'UZna' , (String with: BPKeys shift) , 'rf'.
submitButton := driver findElementByID: 'submitButton'.
submitButton click.
submitButton submit.
submittedValue := self waitUntil: [ self componentUnderTest inputFieldValue ] is: [ :value | value notNil ]
checkEvery: (Duration milliseconds: 100) timeoutAfter: (Duration seconds: 5) with: [ nil ].
self assert: submittedValue equals: 'fooBARbazQUXquuxQUUZNArf'.
Expand Down
Loading