Skip to content

Instantly share code, notes, and snippets.

🔰
Git

Pratik Patel prat3ik

🔰
Git
Block or report user

Report or block prat3ik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View xcode build of webdriver agent project
** TEST BUILD SUCCEEDED **
Testing started on 'iPhone6'
2019-03-01 17:38:07.923 xcodebuild[14921:100807] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/imac/Library/Developer/Xcode/DerivedData/WebDriverAgent-cvqckynzuuktkogfpkkkgyompmoj/Logs/Test/Test-WebDriverAgentRunner-2019.03.01_17-37-48-+0530.xcresult/2_Test/Diagnostics/WebDriverAgentRunner-85E60E9A-4983-436E-B722-C6A43781E561/WebDriverAgentRunner-F5CE9237-47FC-4E10-B472-B81D24AF4F48/Session-WebDriverAgentRunner-2019-03-01_173807-5EhnAp.log
2019-03-01 17:38:07.923 xcodebuild[14921:100802] [MT] IDETestOperationsObserverDebug: (7E9379AD-4CDC-435C-B2F3-781C716642F0) Beginning test session WebDriverAgentRunner-7E9379AD-4CDC-435C-B2F3-781C716642F0 at 2019-03-01 17:38:07.923 with Xcode 10B61 on target 📱<DVTiOSDevice (0x7fe4b4dd2db0), iPhone6, iPhone, 12.1.2 (16C101), badded265a19dea8b1258392e6bf649a1ffc60ec> {
deviceSerialNumber: DNPQ46QXG5MP
identifier: badded265a19dea8b1258392e6bf649a1ffc60ec
View Application is being reopend with Appium
[Appium] Welcome to Appium v1.11.0-beta.3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"firstMatch":[{"appium:app":"Settings","appium:showXcodeLog":"true","appium:automationName":"XCuiTest","appium:udid":"badded265a19dea8b1258392e6bf649a1ffc60ec","appium:deviceName":"iPhone6","appium:platformVersion":"12.1","platformName":"iOS"}]},"desiredCapabilities":{"deviceName":"iPhone6","udid":"badded265a19dea8b1258392e6bf649a1ffc60ec","platformName":"iOS","app":"Settings","platformVersion":"12.1","showXcodeLog":"true","automationName":"XCuiTest"}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"deviceName":"iPhone6","udid":"badded265a19dea8b1258392e6bf649a1ffc60ec","platformName":"iOS","app":"Settings","platformVersion":"12.1","showXcodeLog":"true","automationName":"XCuiTest"},null,{"firstMatch":[{"appium:app":"Settings","appium:showXcodeLog":"true","appium:automationName":"XCuiTest","appium:udid":"badded265a19dea8b1258392e
@prat3ik
prat3ik / gist:694bdfd6f5400ac8f54bed0f2ce2f385
Created Aug 30, 2018
CloudTimer > IOS > Create Competition : Page Source
View gist:694bdfd6f5400ac8f54bed0f2ce2f385
<?xml version="1.0" encoding="UTF-8"?><AppiumAUT><XCUIElementTypeApplication type="XCUIElementTypeApplication" name="CloudTimer Test" label="CloudTimer Test" enabled="true" visible="true" x="0" y="0" width="375" height="812">
<XCUIElementTypeWindow type="XCUIElementTypeWindow" enabled="true" visible="true" x="0" y="0" width="375" height="812">
<XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="true" x="0" y="0" width="375" height="812">
<XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="true" x="0" y="0" width="375" height="812">
<XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="true" x="0" y="0" width="375" height="812">
<XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="true" x="0" y="0" width="375" height="812">
<XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="true" x="0" y="0" width="375" height="84">
<XCUIElementTypeButton type="XCUI
@prat3ik
prat3ik / gist:5081316b537fbc01cac451e91f38e796
Created Aug 27, 2018
Appium get stuck on particular screen and continuously searching for element
View gist:5081316b537fbc01cac451e91f38e796
The server is running
[W3C] Calling AppiumDriver.findElement() with args: ["id","com.sweep6.cloudtimer.qa:id/action_logout","b0d4a4c8-e96e-4c60-9c80-ce1088ee14f7"]
[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[BaseDriver] Waiting up to 10000 ms for condition
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/e60c9983-f68c-475d-9490-4e13ff91ad63/element] with body: {"strategy":"id","selector":"com.sweep6.cloudtimer.qa:id/action_logout","context":"","multiple":false}
[JSONWP Proxy] Got response with status 200: {"sessionId":"e60c9983-f68c-475d-9490-4e13ff91ad63","status":0,"value":{"ELEMENT":"6fb4ca11-f85c-4b63-8243-fc49f3c5478e"}}
[W3C] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"6fb4ca11-f85c-4b63-8243-fc49f3c5478e"}
[HTTP] <-- POST /wd/hub/session/b0d4a4c8-e96e-4c60-9c80-ce1088ee14f7/element 200 35 ms - 88
@prat3ik
prat3ik / gist:dcda0b338797d03f21cd3e5de377967b
Created Jul 19, 2018
Appium is not able to get some UI element details
View gist:dcda0b338797d03f21cd3e5de377967b
[Appium] Welcome to Appium v1.7.2
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/sessions {}
[MJSONWP] Calling AppiumDriver.getSessions() with args: []
[MJSONWP] Responding to client with driver.getSessions() result: []
[HTTP] <-- GET /wd/hub/sessions 200 8 ms - 29
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"C:\\Users\\Pratik\\Downloads\\musical-ly-7-5-1.apk","appActivity":"com.ss.android.ugc.aweme.splash.SplashActivity","appPackage":"com.zhiliaoapp.musically","automationName":"uiautomator2","deviceName":"c4e3f3cd","platformName":"Android","platformVersion":"8.0","newCommandTimeout":0,"connectHardwareKeyboard":true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"C:\\Users\\Pratik\\Downloads\\musical-ly-7-5-1.apk","appActivity":"com.ss.android.ugc.aweme.splash.SplashActivity","appPackage":"com.zhiliaoapp.musically","automationName":"uiautomator2","deviceName":"c4e3f3cd","platformName":"Android","platformVersion":"8.0","newCom
View gist:eab1f0427a04304256b238aba22158e5
import time
from time import sleep
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import Select
from selenium.webdriver.support.ui import WebDriverWait
from selenium.common.exceptions import NoSuchElementException
from appium.webdriver.common.touch_action import TouchAction
from selenium.webdriver.support import expected_conditions as EC
@prat3ik
prat3ik / error_appium_inspector_sesson_log_for_ios.txt
Created Mar 26, 2018
Appium Inspector Session for IOS: Giving source xml with similar type of elements (<XCUIElementTypeOther name="AX error -25205">)
View error_appium_inspector_sesson_log_for_ios.txt
[Appium] Welcome to Appium v1.7.1
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/sessions {}
[MJSONWP] Calling AppiumDriver.getSessions() with args: []
[MJSONWP] Responding to client with driver.getSessions() result: []
[HTTP] <-- GET /wd/hub/sessions 200 15 ms - 40
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/harry/Downloads/Sing! 6.3.5.ipa","deviceName":"Tim iPhone","fullReset":false,"noReset":true,"platformName":"iOS","platformVersion":"10.0.2","udid":"badded265a19dea8b1258392e6bf649a1ffc60ec","newCommandTimeout":0,"connectHardwareKeyboard":true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/harry/Downloads/Sing! 6.3.5.ipa","deviceName":"Tim iPhone","fullReset":false,"noReset":true,"platformName":"iOS","platformVersion":"10.0.2","udid":"badded265a19dea8b1258392e6bf649a1ffc60ec","newCommandTimeout":0,"connectHardwareKeyboard":true},null,null]
[BaseDriver] Event 'newSessionRequested' logged at 1522067389846 (0
You can’t perform that action at this time.