Posts

Showing posts with the label android automation

Handle custom tags using WebDriver

Sometime while doing automation we have to identify the element which have custom tags like <g> <svg> etc. For this we normally use * that will identify all elements tags in case we have to identify only specified custom tag then we can use below example for this. < svg height = "600" width = "910" xmlns : xlink = "http://www.w3.org/1999/xlink" id = "svgcontent" overflow = "visible" x = "910" y = "600" viewBox = "0 0 910 600" > < g style = "pointer-events:all" > < text fill = "rgb(0,0,0)" font - family = "Sans-Serif" font - size = "13" id = "80-155-126" transform = "rotate(-90, 168, 126)" y = "126" x = "168" style = " pointer - events : inherit "> A100A </ text > </ g > </ svg > Following Xpath will work here ...

Useful Tips in Mobile Automation

  How to use ADB (Android Debug Bridge) over wifi | ...   How to know app package and activities information... Webdriver compare data/css between two pages How to Re-Sign an ios App from an External Develop... To know all devices connected to machines / simula... Automation Testing of Android app on device using ... Calabash ios installation steps Calabash-ios commands INSTALL IDEVICEINSTALLER ON MAC MACHINE MOBILE WEB/APPLICATION AUTOMATION INSTALLATION GUI... Easiest Way to Get the Crash Logs in ios   Blocking Internet for Specific Apps Business Models: How Does Mobile App Makes Money?   Projecting Android Screen on to Your PC Bandwidth Throttling Using Fiddler   ADB commands with examples Android Screencast: Android screen to Windows PC Limiting Internet Speed On Your Mobile Device (Ban...     Wireless ADB   Recording Android Device Screen using ADB   Securing Your Smartphones   Mobile Application Testing –...

How to use ADB (Android Debug Bridge) over WiFi | Android automation

Image
Whenever we work with Android mobile app automation we have to connect the device using USB cable. We can connect the device over Wi-Fi. To get rid of from the USB there is a super simple way! All you need is a USB cable (for the initial setup) and have both devices in the same network. This will work for non-rooted devices also. Precondition:  Your system and device must be in the same network. Android mobile must have developer option set to true. ADB (Android debug bridge) must be configure Android SDK installed. Step 1. Attach mobile via USB Step 2. Open then command terminal type  adb devices  and press enter It will confirm that your device is connected and able to recognize by android sdk. Step 3:   type: adb tcpip 5555 Step 4:To find the mobile ip type: adb shell ip - f inet addr show wlan0 Step 5: The ip address will be shown in second line like this: inet 192.168 . 1.233 / 24 brd 192.168 . 1.255 scope gl...

How to know app package and activities information without having apk | android app | Appium

Image
How to know app package and activities information without having apk | android app | Appium In Android app mobile automation,we need apk file of app but sometimes we have to perform action on inbuild app(pre installed) which come with device like call,sms etc.. for this we do not have apk file. Basically in android app automation we need app package information  and app activities. In case of apk it is easy to get above information with appium. But if we do not have apk and need the app package/activities information, we can use following command: Precondition:  1. Android mobile must have developer option set to true. 2. ADB (Android debug bridge) must be configure 3. Android SDK installed. Step1. Open then command terminal type adb devices  and press enter It will confirm that your device is connected and able to recognize by android sdk. Step2: Now in mobile, open the app of which you want to get app pkg info/activities. In your m...