Posts

Inspect iOS app using Appium Inspector

Inspect iOS app using Appium Inspector { "platformName": "iOS", "platformVersion": "12.4", "deviceName": "iPhone XR", "app": "/Users/anandjois/Library/Developer/Xcode/DerivedData/WebDriverAgent-afgytpezzjndzsdsmwrlernecejw/Build/Products/Debug-iphonesimulator/IntegrationApp.app", "udid": "3A2B19EF-20BB-457D-A927-608F65E749AE" }  Desired Capabilities Documentation

Android Native element functions / classes Appium

Scroll on element // Scroll on the dropdown driver.findElementByAndroidUIAutomator( "new UiScrollable(new UiSelector()).scrollIntoView(text( \ "Argentina\"));" ) ; driver.findElementByAndroidUIAutomator( "new UiScrollable(new UiSelector()).scrollIntoView(text( \ "Argentina\"));" ) ; // if above does not work driver.findElement(MobileBy.AndroidUIAutomator( "new UiScrollable(new UiSelector()).scrollable( true ).instance(0)).scrollIntoView( new UiSelector().textMatches( \ "Argentina\"));))" )); driver.findElement(MobileBy.AndroidUIAutomator( "new UiScrollable(new UiSelector().scrollable( true ).instance(0)).scrollIntoView( new UiSelector().textMatches( \ "Argentina\").instance(0))" ) ) ; driver.findElement(By.xpath( "//span[contains(text(),'Argentina')]" )).click(); // toast message pop up message // Standard toast mes...

Mobile Web automation using Appium iOS

DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities .setCapability(MobileCapabilityType. BROWSER_NAME , "safari" ); capabilities .setCapability(MobileCapabilityType. DEVICE_NAME , "iPhone 7 Plus" ); capabilities .setCapability(MobileCapabilityType. PLATFORM_NAME , "iOS" ); capabilities .setCapability(MobileCapabilityType. PLATFORM_VERSION , "10.3" ); capabilities .setCapability(MobileCapabilityType. AUTOMATION_NAME , "XCUITest" ); driver = new IOSDriver ( new URL( "http://127.0.0.1:4723/wd/hub" ), capabilities ); driver .get( "https://1cover.com.au" ); driver .manage().timeouts().implicitlyWait(20, TimeUnit. SECONDS ); driver .quit();