WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

Failed to click on the Options available in word document using winappdriver

Open lokeshparcel opened this issue 8 years ago • 1 comments

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.

lokeshparcel avatar Aug 07 '18 10:08 lokeshparcel

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?

hassanuz avatar Aug 07 '18 22:08 hassanuz