spectron
spectron copied to clipboard
Unable to do any operations on electron app after the window gets loaded
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.