Questions tagged [python-appium]

Appium Python Client. An extension library for adding Selenium 3.0 draft and Mobile JSON Wire Protocol Specification draft functionality to the Python language bindings, for use with the mobile testing framework Appium.

Appium Python Client.

An extension library for adding Selenium 3.0 draft and Mobile JSON Wire Protocol Specification draft functionality to the Python language bindings, for use with the mobile testing framework Appium.

https://github.com/appium/python-client

295 questions
0
votes
1 answer

Appium problem with connect android emulator (adb.exe/settings_apk-debug.apk)

I installed all the necessary software for python-android coding: android studio (SDK Build Tools, Google USB Driver, Google WEb Driver and other) Appium Appium inspector But I have one problem with it: Original error: 'Command…
Dmitry
  • 1
0
votes
1 answer

How to click on context menu option appears after long press on Android app using appium python?

I am trying to automate long press action followed with clicking on the static shortcuts available in context menu. Details: language - python automation lib - appium android app - Youtube static shortcut - Subscriptions Sample Image of what I want…
workspace
  • 368
  • 1
  • 6
  • 16
0
votes
0 answers

How to convert the Appium-Python code from Sync to Async

from time import sleep import Asyncio as Asyncio from appium import webdriver from appium.webdriver.common.appiumby import AppiumBy desired_caps = { "app": "/home/ubuntu/mobile_automation/sample.apk", "platformName": "Android", …
0
votes
0 answers

Appium Python: Should we always put assert when doing a hard assertion?

I'm just confused and I almost always see we put an assert before a hard assertion. In Appium, is it always necessary to put assert? Both fails when the element being tested is not displayed: self.element().is_displayed() versus assert…
Faith Berroya
  • 177
  • 1
  • 9
0
votes
2 answers

How to find all elements with a dynamic content-desc using Appium?

My locator strategy is finding an element by its content-desc attribute. I have some text views on a screen that have this contest-desc: report_description_textview_X_lines, where X is a value between 0 to 3. How can I get all the elements that…
krisc
  • 95
  • 1
  • 10
0
votes
0 answers

How do I test an automatically truncated text view?

I have a container that holds a text view element. This text view element gets truncated automatically when it is long. In the UI, I can view it as truncated and it uses an ellipsis ("..."), but in Appium Inspector when you select the element it…
krisc
  • 95
  • 1
  • 10
0
votes
0 answers

Appium-python `**urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=4723): Max retries exceeded with url: /wd/hub/session

The problem The problem i'm facing here is im getting the following error [**urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=4723): Max retries exceeded with url: /wd/hub/session (Caused by…
Mohanraj
  • 79
  • 9
0
votes
0 answers

Appium cannot detect elements with .clearAndSetSemantics?

I’m a QA. Currently we’re having trouble with our setup when we encountered elements using Jetpack Compose. I looked into our application code and noticed that elements that has .clearAndSetSemantics is not seen in Appium or in Appium Inspector, but…
0
votes
0 answers

Appium Original error: command 'shell pm clear com.android.settings' exited with code 255

I try to access to Android.settings page to connect Wifi, but it always failed with this error Encountered internal error running command: Error executing adbExec. Original error: 'Command 'D:\android_sdk\platform-tools\adb.exe -P 5037 -s HA1K9J4H…
0
votes
1 answer

Appium - Find Element by Image

I need some help to code in python with Appium to find element by image and click on the image. If someone has a sample working code please share. I tried following code: import base64 from appium.webdriver.common.mobileby import MobileBy with…
0
votes
1 answer

How do I check that an element does not exist, using Python and Appium?

Please see a snippet of what I am working with. Below is my step definition file, home_step.py @Then('the screen is verified') def step_impl(context): context.app.home_page.check_element_nonexistent('Some Tab') Below is my page objects file,…
krisc
  • 95
  • 1
  • 10
0
votes
0 answers

Appium-python: Scrolling scrolls the window but not placing the specified element to the centre of the screen

I'm automating the android native app. I have a set of cards and each card has a set of information. To access the card, I'm using android_uiautomator to scroll, it is able to find the element by text but it is not moving the card to the centre…
0
votes
2 answers

Appium + Python(pytest) Parallel Testing Using Parameterization Problem

I am writing through Google Translate, so the sentence may not be smooth. sorry. I'm using appium,pytest to create mobile test automation. Using the "Devices" dictionary I want to freely control the parallel test. During parallel testing, to…
0
votes
1 answer

In Appium, is it possible to check that an app's dark mode feature is enabled?

In the app, I am able to go to Settings and turn on the Dark Mode feature. I want to check that this feature is working and write a test validating that the app went into Dark Mode successfully.
krisc
  • 95
  • 1
  • 10
0
votes
0 answers

Can we run appium test scripts through flask server on locally connected device

I am trying to run my appium scripts on button click in a html template, but unfortunately I have searched everywhere but still I found no solution. My html template is inside a templates folder in the flask project directory and I am taking path as…