You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To clarify @xupea comment, I have put a code sample below.
Use await (await app.client.$("#test")).getText() where app refers to the Spectron Application and #test refers to the element in the DOM with id test (<h1 id="test">Hello World</h1>).
Hi,
Currently i am facing an issue with Spectron in combination with Mocha.
When i try to get element text using spectron in test case i am facing error "no such element".
Sample.html
main.js
package.json
"devDependencies": {
"electron": "^13.1.6",
"mocha": "^9.0.2",
"spectron": "^15.0.0"
}
SampleTest.js
Error
Can you help me regarding this ?
Is it problem in my implementation ?
The text was updated successfully, but these errors were encountered: