File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed
ui-tests/tst/software/aws/toolkits/jetbrains/uitests/fixtures Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,24 @@ fun IdeaFrame.awsExplorer(
19
19
val locator = byXpath(" //div[@accessiblename='AWS Toolkit Tool Window']" )
20
20
21
21
step(" AWS toolkit tool window" ) {
22
- try {
23
- find<ComponentFixture >(locator)
24
- } catch (e: Exception ) {
25
- step(" Open tool window" ) {
26
- // Click the tool window stripe
27
- find(ComponentFixture ::class .java, byXpath(" //div[@accessiblename='AWS Toolkit' and @class='StripeButton' and @text='AWS Toolkit']" )).click()
28
- find(locator, timeout)
22
+ repeat(5 ) {
23
+ try {
24
+ if (it == 0 ) {
25
+ find<ComponentFixture >(locator)
26
+ } else {
27
+ // longer timeout on subsequent tries
28
+ find<ComponentFixture >(locator, timeout)
29
+ }
30
+
31
+ return @repeat
32
+ } catch (e: Exception ) {
33
+ step(" Open tool window" ) {
34
+ // Click the tool window stripe
35
+ find<ComponentFixture >(byXpath(" //div[@accessiblename='AWS Toolkit' and @class='StripeButton' and @text='AWS Toolkit']" )).click()
36
+ }
29
37
}
30
38
}
39
+
31
40
find<ComponentFixture >(byXpath(" //div[@class='TabContainer']//div[@text='Explorer']" )).click()
32
41
val explorer = find<AwsExplorer >(byXpath(" //div[@class='ExplorerToolWindow']" ))
33
42
explorer.apply (function)
You can’t perform that action at this time.
0 commit comments