Showing posts with label Cordova. Show all posts
Showing posts with label Cordova. Show all posts

Tuesday, 15 April 2014

Appium for Apps developed using Cordova

We need to do two things differently(IMO) when we want to automate Cordova apps

1. Switch to web view

          for(String winHandle : driver.getWindowHandles()){
              driver.switchTo().window(winHandle);
          }

2. 'By.xpath' may not work always, use 'By.name'

Wednesday, 9 April 2014

Cordova build command WshShell.Exec file not found

In windows 7, when you try to execute Cordova build you might receive WshShell.Exec not found error, try executing Cordova commands from Visual Studio command prompt.