Skip to content

Commit c05b591

Browse files
author
ci-bot
committed
fix E2E
1 parent ec96022 commit c05b591

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

apps/remix-ide-e2e/src/commands/createContract.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ function createContract (browser: NightwatchBrowser, inputParams: string, callba
1818
browser.setValue('.udapp_contractActionsContainerSingle > input', inputParams, function () {
1919
browser
2020
.pause(1000) // wait to get the button enabled
21-
.waitForElementVisible('.udapp_contractActionsContainerSingle > div')
22-
.click('.udapp_contractActionsContainerSingle > div').pause(500).perform(function () { callback() })
21+
.waitForElementVisible('.udapp_contractActionsContainerSingle button')
22+
.click('.udapp_contractActionsContainerSingle button').pause(500).perform(function () { callback() })
2323
})
2424
} else {
2525
browser
26-
.click('.udapp_contractActionsContainerSingle > div')
26+
.waitForElementVisible('.udapp_contractActionsContainerSingle button')
27+
.click('.udapp_contractActionsContainerSingle button')
2728
.pause(500)
2829
.perform(function () { callback() })
2930
}

0 commit comments

Comments
 (0)