-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
repository/Parasol-Core.package/BPWebDriverTestCase.class/instance/waitUntil.ifTimeout..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
misc. | ||
waitUntil: aCondition ifTimeout: timeoutBlock | ||
|
||
^ self waitUntil: aCondition ifTimeout: timeoutBlock times100MsToWait: 50 |
9 changes: 9 additions & 0 deletions
9
...-Core.package/BPWebDriverTestCase.class/instance/waitUntil.ifTimeout.times100MsToWait..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
misc. | ||
waitUntil: aCondition ifTimeout: timeoutBlock times100MsToWait: times | ||
|
||
| delay100ms | | ||
delay100ms := Delay forMilliseconds: 100. | ||
times timesRepeat: [ | ||
aCondition value ifTrue: [ ^ true ] | ||
ifFalse: [ delay100ms wait ] ]. | ||
^ timeoutBlock value |
10 changes: 10 additions & 0 deletions
10
...Core.package/BPWebDriverTestCase.class/instance/waitUntilNoBPNoSuchElementExceptionIn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
misc. | ||
waitUntilNoBPNoSuchElementExceptionIn: aBlock | ||
|
||
| delay100ms | | ||
delay100ms := Delay forMilliseconds: 100. | ||
30 timesRepeat: [ | ||
[ ^ aBlock value ] | ||
on: BPNoSuchElementException | ||
do: [ :exc | delay100ms wait ] ]. | ||
^ self error: 'Timeout waiting for element to be available' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SystemOrganization addCategory: #'Parasol-Core'! | ||
self packageOrganizer ensurePackage: #'Parasol-Core' withTags: #()! |