increase waiting time for current css selector

pull/2925/head
Joseph Izang 2 years ago
parent e0197d5cb5
commit 8e98e5adc5
  1. 2
      apps/remix-ide-e2e/src/commands/clickElementAtPosition.ts

@ -14,7 +14,7 @@ class ClickElement extends EventEmitter {
} }
function _clickElement (browser: NightwatchBrowser, cssSelector: string, index: number, forceSelectIfUnselected: boolean, cb: VoidFunction) { function _clickElement (browser: NightwatchBrowser, cssSelector: string, index: number, forceSelectIfUnselected: boolean, cb: VoidFunction) {
browser.waitForElementPresent(cssSelector) browser.waitForElementPresent(cssSelector, 5000)
.execute(function (cssSelector: string, index: number, forceSelectIfUnselected: boolean) { .execute(function (cssSelector: string, index: number, forceSelectIfUnselected: boolean) {
const elem = document.querySelectorAll(cssSelector)[index] as HTMLElement const elem = document.querySelectorAll(cssSelector)[index] as HTMLElement
if (forceSelectIfUnselected) { if (forceSelectIfUnselected) {

Loading…
Cancel
Save