diff --git a/apps/remix-ide-e2e/src/commands/addFile.ts b/apps/remix-ide-e2e/src/commands/addFile.ts index d4d4b585b0b..4421381c100 100644 --- a/apps/remix-ide-e2e/src/commands/addFile.ts +++ b/apps/remix-ide-e2e/src/commands/addFile.ts @@ -43,8 +43,7 @@ function addFile(browser: NightwatchBrowser, name: string, content: NightwatchCo done() }) } else { - // browser.click('span[data-id="fileExplorerNewFilecreateNewFile"]') - browser.click('#fileExplorerMenuContainer > span#createNewFile') + browser.click('*[data-id="fileExplorerNewFilecreateNewFile"]') .waitForElementContainsText('*[data-id$="/blank"]', '', 60000) .sendKeys('*[data-id$="/blank"] .remixui_items', name) .sendKeys('*[data-id$="/blank"] .remixui_items', browser.Keys.ENTER)