spectron icon indicating copy to clipboard operation
spectron copied to clipboard

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

Open harishpatha opened this issue 3 years ago • 0 comments

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.

harishpatha avatar Apr 28 '21 07:04 harishpatha