How to Install iOS App without USB Cable with the help of same wifi 1)For first time need to Connect Device via USB cable 2)Start XCode ->Window->Devices and Simulators 3)Select/click on our device which is visible at left side 4)Then Tick the option connect via wifi 5)Device will be connected via same wifi . Next time no need to connect with USB Cable
How to Install iOS App without USB Cable with the help of same wifi
How to Install Android App without USB Cable with the help of same wifi
How to Install Android App without USB Cable with the help of same wifi 1)For first time need to Connect Device via USB cable 2)Start ADB Server ex adb start-server 3)Find Connected devices ex adb devices 4)Run following command "adb tcpip 5555" and wait till complete processing 5)Run "adb shell netcfg" Then find out IP address of device ex. 192.168.0.123 6)Then Run "adb connect 192.168.0.123:5555". 8)Device will be connected via same wifi . Next time no need to connect with USB Cable We can connect the same device with multiple computers using the same Port Number Also, We can connect multiple devices with a single computer C:\>adb connect 192.168.0.128:6666 //Device 1 C:\>adb connect 192.168.0.115:7777 //Device 2 The above two devices will get into Android Studio
How to set up Selenium Grid envirnoment
Selenium Grid Configuration Launch Hub java -jar selenium-server-standalone-3.141.59.jar -role hub Register Node java -jar selenium-server-standalone-3.141.59.jar -role webdriver -hub http://192.168.0.114:4444/grid/register -port 5556 Register Node with specific browser java -jar selenium-server-standalone-3.141.59.jar -role webdriver -hub http://192.168.0.114:4444/grid/register -port 5556 -browser browserName=firefox Register Node with multiple browsers java -jar selenium-server-standalone-3.141.59.jar -role webdriver -hub http://192.168.0.114:4444/grid/register -port 5556 -browser browserName=firefox -browser browserName=chrome Register Node with multiple browser and IE java -jar selenium-server-standalone-3.141.59.jar -role webdriver -hub http://192.168.0.114:4444/grid/register -port 5556 -browser browserName=iexplore -browser browserName=chrome Register Node with multiple instance of same browser java -jar selenium-server-standalone-3.141.59.jar -role webdriver -hub http://192.168.0.114:4444/grid/register -port 5556 -browser browserName=iexplore -browser browserName=chrome -browser browserName=firefox -browser browserName=firefox Register Node with multiple instances of same browser java -jar selenium-server-standalone-3.141.59.jar -role webdriver -hub http://192.168.0.114:4444/grid/register -port 5556 -browser browserName=firefox,maxInstances=4 Register Node with multiple instances of different browsers java -jar selenium-server-standalone-3.141.59.jar -role webdriver -hub http://192.168.0.114:4444/grid/register -port 5556 -browser browserName=firefox,maxInstances=4 -browser browserName=chrome,maxInstances=3 -browser browserName=iexplore,maxInstances=2 To set session java -jar selenium-server-standalone-3.141.59.jar -role hub -maxSession 10 We can start two node in same machine Run two times cmd and register nodes cmd1 java -jar selenium-server-standalone-3.141.59.jar -role webdriver -hub http://192.168.0.114:4444/grid/register -port 5556 -browser browserName=firefox,maxInstances=4 -browser browserName=chrome,maxInstances=3 -browser browserName=iexplore,maxInstances=2 cmd2 Just change Port Name java -jar selenium-server-standalone-3.141.59.jar -role webdriver -hub http://192.168.0.114:4444/grid/register -port 5557 -browser browserName=firefox,maxInstances=2 -browser browserName=chrome,maxInstances=6 -browser browserName=iexplore,maxInstances=8 Selenium Node : Configure drivers Chrome java -Dwebdriver.chrome.driver=C:\Webdrivers\chromedriver.exe -jar selenium-server-standalone-3.141.59.jar -role webdriver -hub http://192.168.0.114:4444/grid/register -port 5556 -browser browserName=chrome Chrome+ie java -Dwebdriver.chrome.driver=C:\Webdrivers\chromedriver.exe -Dwebdriver.ie.driver=C:\Webdrivers\IEDriverServer.exe -jar selenium-server-standalone-3.141.59.jar -role webdriver -hub http://192.168.0.114:4444/grid/register -port 5556 -browser browserName=chrome -browser browserName=iexplore Chrome+ie+Edge java -Dwebdriver.chrome.driver=C:\Webdrivers\chromedriver.exe -Dwebdriver.ie.driver=C:\Webdrivers\IEDriverServer.exe -Dwebdriver.edge.driver=C:\Webdrivers\MicrosoftWebDriver.exe -jar selenium-server-standalone-3.141.59.jar -role webdriver -hub http://192.168.0.114:4444/grid/register -port 5556 -browser browserName=chrome -browser browserName=iexplore -browser browserName=edge Chrome+ie+Edge+Firefox java -Dwebdriver.chrome.driver=C:\Webdrivers\chromedriver.exe -Dwebdriver.ie.driver=C:\Webdrivers\IEDriverServer.exe -Dwebdriver.edge.driver=C:\Webdrivers\MicrosoftWebDriver.exe -Dwebdriver.firefox.driver=C:\Webdrivers\geckodriver.exe -jar selenium-server-standalone-3.141.59.jar -role webdriver -hub http://192.168.0.114:4444/grid/register -port 5556 -browser browserName=chrome -browser browserName=iexplore -browser browserName=edge -browser browserName=firefox How to create Maven Project Install Maven 1)Download Maven "http://maven.apache.org/download.cgi" "apache-maven-3.6.0-bin.zip" file and extract it 2)Keep Extracted folder in C drive 3)Set Envirnoment varibles MAVEN_HOME with directory path ex "C:\apache-maven-3.3.9"and Path variable ex "%M2_HOME%\bin" 4)Checl Maven installed properly or not cmd->mvn -version Create Project in Eclipse 1)File->New->Other->Maven-)click on maven project->next->next->provide group id ex "DemoProject" and artifact id ex "demo" then click on finish 2)Maven project will be created 3)Add all dependancies into POM.xml file To check "https://mvnrepository.com/artifact/org.testng/testng/6.14.3" and search dependency ex. selenium java and copy paste maven code into pom.xml file ex.Use of Maven :- No need to main jar files org.testng testng 6.14.3 test
Conditions to Inspect WebView Elements
Conditions to Inspect WebView Elements We can use Chrome DevTools to debug and inspect WebView content in Android applications. 1)It requires Android version 4.4 or later i.e. API level >=19. 2)WebView debugging should be enabled; developer must enable ‘setWebContentsDebuggingEnabled’ flag in the WebView class. This flag enables debugging of web contents (HTML / CSS / JavaScript) loaded into any WebViews of app. 3)Chrome browser with version 32 or greater to be installed on desktop and Android device and DESKTOP_ANDROID_CHROME_BROWSER_VERSION >= ANDROID_DEVICE _CHROME_BROWSER_VERSION 4)In addition to this, Appium during automation recognize the WebView context only if webview debugging is enabled from within app. We can inspect webview on LOLLIPOP / KITKAT Android devices. 5)Appium also uses Selendroid under the hood for webview support on devices older than 4.4. To use this feature of appium, it is mandatory to specify “automationName” as “selendroid” in desired capabilities passed to Appium server. If our hybrid app under test is build in such a way that it supports minimum Android version 4.0.4 (API Level 14) and max Android version 4.3 (API level 18) then we can inspect webview elements and execute our automation tests using selendroid mode of appium.
Inspect Android Mobile Web Elements
Inspect Android Mobile Web Elements You want to use the Chrome ADB plug-in to find Android mobile web elements. 1. Go to Settings ➤ About Phone and tap “Build number” seven times (Android 4.2 or above); then return to the previous screen and find “Developer options” 2. Tap “Developer options” and click On in the developer settings. (You will get an alert to allow the developer settings; just click the OK button.) Make sure the “USB debugging” option is checked 3. Connect your Android device to your computer (you should have installed the USB driver for your device). After connecting, you will get an alert on your device to allow USB debugging; just tap OK. 4. Download and install the Chrome ADB plug-in from https:// chrome.google.com/webstore/detail/adb/dpngiggdglpdnj doaefidgiigpemgage?hl=en-GB Make sure you have installed Chrome version 32 or newer. 5. Open Chrome on your computer and click the ADB plugin icon, which is in the top-right corner, and click View Inspection Targets 6. Open Chrome on your device and navigate to the desired URL (Google.com). 7. Go to chrome://inspect/#devices . This page will display all the connected devices along with open tabs and web views. Make sure “Discover USB devices” is selected. Now click the “inspect” link to open the developer tools 8. You will get the screen shown in Figure . Now click the screencast icon in the top-right corner to display your device screen. You are all set to find elements with the Chrome ADB plug-in. 9. Here you will find the ID of an element using the Chrome ADB plug-in remotely, with an example of the Google search page. a. Navigate to https://www.google.com on your mobile Chrome browser. b. Click the Inspect link from the ADB plug-in of your computer’s Chrome browser. c. Click the inspect element icon and mouse over the search box. How It Works USB debugging should be enabled on the device so that it is recognized by a computer as a connected device. The Chrome ADB plug-in allows you to view all the connected devices and web views. Select the device/web view and click Inspect to view mobile web elements and their properties.
Subscribe to:
Posts (Atom)