I have a MAC OSX native application. Some of the screens in this application is using Webviews.
My specific requirement is to automate this view using Selenium.
Questions that I have:
- Is it really possible to use Webdriver to automate the Webviews in a native MAC OSX hybrid application?
- If yes, can someone give an example script?
- If it's possible to automate, how to identify the elements on this Webview?
I also tried with appium-for-mac for automating, but failed. (Seems like its a known issue as per: This post
My current setting for the webdriver setup is:
private WebDriver buildDriverInstance(String appiumForMacURL){
URL remoteAddress = null ;
try {
remoteAddress = new URL(appiumForMacURL);
} catch (MalformedURLException e) {
e.printStackTrace();
}
DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
desiredCapabilities.setCapability("platform","Mac");
WebDriver driver;
driver = new RemoteWebDriver(remoteAddress,desiredCapabilities);
return driver;
}
Any direction in this regard?