Closed tristanlins closed 1 year ago
i"ve the same issue when in run *.side with selnium-side-runner
Can confirm this issue: "wait for element visible" only works within the IDE but crashes when run by SIDE Runner. "wait for element present" works fine.
Did anyone find a workaround to this? I seem to be having the same problem, albeit it's running
await driver.wait(until.elementLocated(By.id(`accordionPersonalSavedReportAnchor`)), configuration.timeout);
for me...
I tried changing the .suites[0].timeout
to something giant, but it doesn't seem to have any effect.
Here's the error:
ElementNotInteractableError: element not interactable
(Session info: chrome=105.0.5195.102)
43 | });
44 | await driver.wait(until.elementLocated(By.id(`accordionPersonalSavedReportAnchor`)), configuration.timeout);
> 45 | await driver.findElement(By.id(`accordionPersonalSavedReportAnchor`)).then(element => {
| ^
46 | return element.click();
47 | });
48 | await driver.wait(until.elementLocated(By.linkText(`otherButton`)), configuration.timeout);
at Object.throwDecodedError (../../../usr/lib/node_modules/selenium-side-runner/node_modules/selenium-webdriver/lib/error.js:550:15)
at parseHttpResponse (../../../usr/lib/node_modules/selenium-side-runner/node_modules/selenium-webdriver/lib/http.js:560:13)
at Executor.execute (../../../usr/lib/node_modules/selenium-side-runner/node_modules/selenium-webdriver/lib/http.js:486:26)
at Driver.execute (../../../usr/lib/node_modules/selenium-side-runner/node_modules/selenium-webdriver/lib/webdriver.js:699:17)
at Object.<anonymous>.tests.Test1 (commons.js:45:3)
at Object.<anonymous> (DefaultSuite.test.js:11:5)
@j-applese3d - So, v3 is gonna get a store takedown in like 3 months anyway. I'd recommend trying v4 of the side runner
npm package: @seleniumhq/side-runner
Things work much better there. All and all I'd advocate for doing the following long term if you like using an IDE:
Oh, here's where you can download v4 of the IDE if you'd like:
https://github.com/SeleniumHQ/selenium-ide/releases/tag/4.0.0-alpha.3
It's still in Alpha, much is broken, and I generally only fix things if someone actually really cares about v4 of the IDE and they raise an issue here.
I should also mention that I do use it for work. I find the recording / playback and side-runner are really good for me, but I am not everyone. Just expect some jenk if you go for it.
Oh also, yes I don't have code signing certificates so it will say the developer is untrusted. To get those, I'd have to get a signature from somewhere in Selenium or the SFC. It may happen one day, but probably not as it would require acknowledgement that v4 of the IDE exists.
The binaries are generated using a fully automated process that is written here:
https://github.com/SeleniumHQ/selenium-ide/blob/trunk/.github/workflows/release.yml
Closing this, as wait for element visible is working pretty well as expected in v4
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
🐛 Bug Report
A "wait for element visible" command does not wait, when executed with the selenium-side-runner.
To Reproduce
Running the
Test Wait.side
in Selenium IDE works fine. Running with selenium-side-runner fails.Expected behavior
I'm not familiar with the selenium javascript api. But compared to the java api, this command:
is wrong. It should be
Project file reproducing this issue (highly encouraged)
Test Wait.zip
Environment
OS: Fedora 32 Selenium IDE Version: v3.17.0 Selenium SIDE Runner Version: 3.17.0 Node version: v14.15.3 Browser: Firefox Browser Version: 85