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
0 answers

appium python - how to dump details of an element?

StackOverflow friends, I'd like to find a programmatical way to dump a selected element in Appium Python. The current solution from StackOverflow is to use element.get_attribute('outerHTML') but this only works in WebView Context. Nowadays most…
oldpride
  • 761
  • 7
  • 15
0
votes
2 answers

How can i do a validation in a QA script to check if a element is not present

I'm working on writing a test automation script for a android app. I'm using python to write the code and using Appium server to run these tests and using Appium UI inspector to identify elements. I'm testing on a action and, after performing this…
0
votes
0 answers

Finding and element by ID with appium

i've just started using appium with python and i'm a bit confused about getting and element by ID. In the appium inspector, i have this elementID Following appium's documentation, i tried this fin = driver.find_elements( …
José Carlos
  • 626
  • 3
  • 23
0
votes
1 answer

Appium-python-client, find element function

im new to the appium library and I'm facing issues with the methods to locate elements in an android app, the two methods in question are: 1- driver.find_element_by_id 2- driver.find_element #desired_cap defined above driver =…
0
votes
0 answers

appium ERROR when install the apk applicaton with driver.install_app("xxx.apk"). An unknown server-side error

I am trying to install an apk on the Android Studio Emulator, I am seeing some errors when I use the driver.install_app("xxx.apk"), it is complaining about the INSUFFICIENT STORAGE. But when I check the Android emulator, it does has sufficient…
bbq123
  • 43
  • 8
0
votes
1 answer

Appium Android-Taking more than 2 minutes to find/click on a mobile element on a real device

I'm new to Appium and was designing a simple testcase to find an element and to click on a mobile element. I used real devices(Android) instead of emulators. It took about 2 mins or more to find the element and click on the element. As choosing…
0
votes
0 answers

Appium python Not install web driver

from appium import webdriver desired_caps = {} desired_caps['platformName'] = 'Android' desired_caps['platformVersion'] = '12' desired_caps['deviceName'] = 'Galaxy M21' desired_caps['waitForAppLaunch'] =…
0
votes
1 answer

How to find a sibling element for an element stored in an array using Appium for python?

I declared an array of elements using this method: checkboxes = self.driver.find_elements(AppiumBy.XPATH, '//XCUIElementTypeButton[@name="Square"]') How do I find the sibling element to the first element in the array? This siblingElement =…
kevin
  • 37
  • 5
  • 21
0
votes
0 answers

How to know if my mobile device is registered on VoLTE(Voice over LTE) or not using ADB command?

I have tried the adb command adb shell settings get global volte_vt_enabled But getting the output as "null" though volte is already enabled and successfully registered on my device. Do we have any other command to identify the volte registration…
0
votes
1 answer

How to close all the apps open in an Android device with Python in Appium?

My device has a small RAM capacity and when too many apps are open, it starts to slow down and disturbs the execution of my script. So I would like to close all the apps open on my smartphone before running my automation script. So my idea was to…
Gauthier Buttez
  • 1,005
  • 1
  • 16
  • 40
0
votes
0 answers

How to close an app open with start_activity() with Python in Appium?

I am using Python 3.10 and Appium to automate a real Android device. I open the main app I want to automate with some desired capabilities. Then I use: driver.start_activity('PACKAGE_NAME','ACTIVITY_NAME') to start other apps I need. My device has…
Gauthier Buttez
  • 1,005
  • 1
  • 16
  • 40
0
votes
0 answers

Not getting SKIPPED test-cases in cucumber html report

I'm using "cucumber-html-reporter" for my Appium, Pytest-BDD automation. For some reason, I'm not getting skipped test cases in my html report. Below is my report generation script var reporter = require('cucumber-html-reporter'); var date = new…
ArunBharath
  • 143
  • 2
  • 17
0
votes
1 answer

How to Fix Importing Appium Libary Module Not Found in VS Code because Python Path

I just learned Automation Testing using Robot Framework in Python. I have error where in VS Code can't find python path library. I imported AppiumLibrary but the VS Code can't define them. And when I run my testcase, i found the error based in the…
0
votes
2 answers

Issues allowing Appium Desktop and Appium Inspector connect to Xcode iOS simulator

I was trying to set up Appium to automate iOS app actions on an Xcode iPhone 8 simulator. I was unsure of how to allow the Appium desktop server to interact with the simulator. I saw that I had to set certain capabilities and based on some…
Desc
  • 1
0
votes
1 answer

Getting TypeError: 'str' object is not callable in below code. I am not calling any inbuilt str

Below is my Appium code to invoke the Settings def invoke android(self) caps = { "platformName": "Android", "platformVersion": "11.0", "deviceName": "Pixel 5 Emulator", "appPackage": "com.android.settings", "appActivity":…
Ramesh
  • 13
  • 1
  • 3