Automated e2e testing of electron application on Windows


#1

Is there a recommended way on how to automate e2e testing on Windows? For example, I want to verify that the tray icon shows up after app launch, or verify that a toast notification has been shown with certain message.

I’ve looked at the selenium and web driver documentation and they seem to focus on verifying the web app behavior itself, which is not what I need.
http://electron.atom.io/docs/v0.30.0/tutorial/using-selenium-and-webdriver/47


#2

I’m confused. Electron is a web app framework. You say you want to do end-to-end testing of a web app (since that’s what one builds with Electron). So isn’t verifying the web app behavior exactly what you want to be doing?


#3

Let me rephrase - I do want to verify web app behavior (which the web driver will do), but I also want to verify the Windows behavior that electron interacts with. Ex. verifying tray and menu items.


#4

Ah ok, thanks for explaining.


#5

I’m in the same boat. Have tested our app’s web part using Selenium webdriver. However, we also have a few native features, like menu bars that need automated testing on Windows and Mac. Any update or information on that topic shall be highly appreciated.


#6

@Siddjo Have you got any solution for interacting with native elements ?


#7

I am trying to open electron app on windows to automate tests using webdriver(c#). Can someone please help me or give any pointer.