Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to do any operations on electron app after the window gets loaded #937

Open
harishpatha opened this issue Apr 28, 2021 · 0 comments

Comments

@harishpatha
Copy link

I have launched the electron app with spectronclient and performing some test operations on it.
Electron version : ^6.0.8
Spectron version : ^8.0.0

code:
app = new Application({
path: "C:\Users\<PATH_TO_APP>\electron.exe",
quitTimeout: 5000,
startTimeout: 10000,
waitTimeout: 10000
});
await app.start();
await app.client.waitUntilWindowLoaded();
await app.client.click(".//div[@Class = 'user-balance']");
await app.client.click(".//vn-menu-item[contains(.,'Settings')]");

This launches my application and do 1 or 2 clicks and then it stucks there and doesnt proceed further.
can you please help if anyone faced this issue before?

Note:i have tried client.selectWindow() and browserWindow().focus also. No luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant