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

Feature/Issue: Support for Electron apps #24

Open
Yserz opened this issue Oct 15, 2015 · 0 comments
Open

Feature/Issue: Support for Electron apps #24

Yserz opened this issue Oct 15, 2015 · 0 comments

Comments

@Yserz
Copy link

Yserz commented Oct 15, 2015

Hey,

I'm trying to test an Electron covered webapp with the winappdriver. I'm aware that the winappdriver won't let me access the web elements inside of the Electron wrapper but I would like to access things like the menu bar, close, minimize and maximize buttons. I created a simple programm in Java to access a win 7 machine with a running instance of the winappdriver.

public static void main(String[] args) throws MalformedURLException {
        DesiredCapabilities caps = new DesiredCapabilities();
        WebDriver driver = new RemoteWebDriver(new URL("http://<IP>:4444/wd/hub"),caps);
        System.out.println(driver.getPageSource());
}

When I execute the code while the Electron app is in the foreground on the machine running the winappdriver I get the following error in the log:

[Verbose] WinAppDriver: Response (Status: BadRequest, Co
ntentType: text/plain):
System.Windows.Automation.ElementNotAvailableException: Das Zielelement entspricht einer Benutzeroberfläche, die nicht mehr verfügbar ist (z. B., weil das übergeordnete Fenster geschlossen wurde).

Translation: The target element is a UI which is not available anymore e.g. the parent window was closed

I'm able to get the page source for other apps like chrome etc.

Are there any plans to support Electron apps? Can you provide a workaround?

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