Skip to content

Instantly share code, notes, and snippets.

View prat3ik's full-sized avatar
🔰
Git

Pratik Patel prat3ik

🔰
Git
  • Surat, INDIA
View GitHub Profile
@prat3ik
prat3ik / error_appium_inspector_sesson_log_for_ios.txt
Created March 26, 2018 12:40
Appium Inspector Session for IOS: Giving source xml with similar type of elements (<XCUIElementTypeOther name="AX error -25205">)
[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
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 / gist:dcda0b338797d03f21cd3e5de377967b
Created July 19, 2018 07:25
Appium is not able to get some UI element details
[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
@prat3ik
prat3ik / gist:5081316b537fbc01cac451e91f38e796
Created August 27, 2018 19:24
Appium get stuck on particular screen and continuously searching for element
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:694bdfd6f5400ac8f54bed0f2ce2f385
Created August 30, 2018 11:38
CloudTimer > IOS > Create Competition : Page Source
<?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
[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
** 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
iMacs-iMac-2:~ imac$ airflow webserver -p 8080
____________ _____________
____ |__( )_________ __/__ /________ __
____ /| |_ /__ ___/_ /_ __ /_ __ \_ | /| / /
___ ___ | / _ / _ __/ _ / / /_/ /_ |/ |/ /
_/_/ |_/_/ /_/ /_/ /_/ \____/____/|__/
[2020-01-23 16:43:28,576] {executor_loader.py:59} INFO - Using executor SequentialExecutor
[2020-01-23 16:43:28,576] {dagbag.py:415} INFO - Filling up the DagBag from /dev/null
Running the Gunicorn Server with:
Workers: 4 sync
iMacs-iMac-2:airflow imac$ airflow scheduler
____________ _____________
____ |__( )_________ __/__ /________ __
____ /| |_ /__ ___/_ /_ __ /_ __ \_ | /| / /
___ ___ | / _ / _ __/ _ / / /_/ /_ |/ |/ /
_/_/ |_/_/ /_/ /_/ /_/ \____/____/|__/
[2020-01-23 16:43:20,340] {executor_loader.py:59} INFO - Using executor SequentialExecutor
[2020-01-23 16:43:20,345] {scheduler_job.py:1460} INFO - Starting the scheduler
[2020-01-23 16:43:20,345] {scheduler_job.py:1467} INFO - Processing each file at most -1 times
[2020-01-23 16:43:20,345] {scheduler_job.py:1470} INFO - Searching for files in /Users/imac/airflow/dags