Appium FAQs

1. OK button is disabled in Create New Android Virtual Device? (or) Unable to create Android AVD because of Target and CPU/ABI settings?
Open Android SDK Manager, ensure API SDK Platform is installed. If you are on proxy to connect to internet, then set the proxy setting in Android SDK Manager -> Tools -> Options and then try installing software.

2. How to view website in mobile view in Desktop firefox browser?
Install User Agent Switcher add-on in firefox browser.

3. How to identify an element using text property?
You need to use By.name as below.
driver.findElement(By.name("Postpaid")).click();

4. Where can I download USB drivers for different vendors?
https://developer.android.com/studio/run/oem-usb.html

5. How to switch the context using Appium?
driver.getContext()
Set<String> handles=driver.getContextHandles();
for(String handle : handles)
{
    System.out.println(handle);
}
driver.context("WEB_VIEW");
Note: setWebContentsDebuggingEnabled static method to be called to enable WebView debugging.

No comments:

Post a Comment