WinAppDriver
WinAppDriver copied to clipboard
Failed to click on the Options available in word document using winappdriver
Opened the word document with following snippet and unable to perform operations like clicking on blank document or close or minimize etc.
After executing code getting no such element exception error
public static void setup() { try {
capabilities.setCapability("app", "C:\\Program Files\\Microsoft Office\\Office16\\winword.exe");
WinwordSession = new WindowsDriver(new URL("http://127.0.0.1:4723"), capabilities);
WinwordSession.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
}catch(Exception e){
e.printStackTrace();
}
}
@Test
public void Addition() throws InterruptedException
{
Thread.sleep(4000);
WinwordSession.findElementByName("Blank document").click();
}
}
Thanks in advance.
Hi @lokeshparcel,
You're most likely running into the splash screen - if this is the case, can you refer to the FAQ section here on how to handle this and report back?