shruthibhatjm
shruthibhatjm
> Try with the below code: ` try { DesiredCapabilities appCapabilities = new DesiredCapabilities(); appCapabilities.setCapability("app", "Your APP"); appCapabilities.setCapability("platformName", "Windows"); appCapabilities.setCapability("deviceName", "WindowsPC"); session = new WindowsDriver(new URL(WindowsApplicationDriverUrl), appCapabilities); Thread.sleep(20000); session.findElementByName("Any element");//...
> Class name of your main window, you will get that in inspect.exe session.findElementByName("Any element"); I am talking about this line of code. Over here do we need to put...
can I use the name or class name of the splash screen?
desktopsession = new WindowsDriver(new URL(WindowsApplicationDriverUrl),capabilities); is it desktopsession of session? because you have used session in the other part
desktopsession should be initialized first right? and ("Any Element") can be an element on any screen like login screen too?
in try block, in this line of code session.findElementByName("Any element");// this will throw and exception