Saturday 14 May 2016

appium code for rotation

  • //Launch the application
  • driver.rotate(landscape);
  • //Perform some desired actions and again switch to portrait mode
  • driver.rotate(portrait);
  • //Continue the test
  • //Launch the application
  • driver.rotate(landscape);
  • //Perform some desired actions and again switch to portrait mode
  • driver.rotate(portrait);
  • //Continue the test
  • - See more at: http://findnerd.com/list/view/How-to-perform-the-screen-rotation-in-Appium-/12414/#sthash.9vr05rZG.dpuf
  • //Launch the application
  • driver.rotate(landscape);
  • //Perform some desired actions and again switch to portrait mode
  • driver.rotate(portrait);
  • //Continue the test
  • - See more at: http://findnerd.com/list/view/How-to-perform-the-screen-rotation-in-Appium-/12414/#sthash.9vr05rZG.dpuf
  • //Launch the application
  • driver.rotate(landscape);
  • //Perform some desired actions and again switch to portrait mode
  • driver.rotate(portrait);
  • //Continue the test
  • - See more at: http://findnerd.com/list/view/How-to-perform-the-screen-rotation-in-Appium-/12414/#sthash.151w8far.dpuf
  • //Launch the application
  • driver.rotate(landscape);
  • //Perform some desired actions and again switch to portrait mode
  • driver.rotate(portrait);
  • //Continue the test
  • - See more at: http://findnerd.com/list/view/How-to-perform-the-screen-rotation-in-Appium-/12414/#sthash.151w8far.dpuf

    No comments:

    Post a Comment