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
1
vote
2 answers

Appium [ iOS Native app ] - How to Scroll to a specific element/object using Java?

I want to scroll to a specific element which is not visible on the screen currently but it is down on the page somewhere, for which I have to scroll down. So dr.scrollTo() is not working and I have tried jsExecutor.executeScript("mobile: scroll",…
harry
  • 43
  • 1
  • 6
1
vote
0 answers

Appium - Getting started on Mac OS

I have problems setting up an Appium test framework on Mac OS. My system settings are: Mac OS (El Capitan) xCode 7.2.1 Appium GUI 1.4.13 python 2.7.10 First question: Does the Appium GUI offer everything? So do I still need an selenium webdriver…
Steve Murdock
  • 709
  • 1
  • 10
  • 20
1
vote
1 answer

mobile scroll command is not working in appium 1.5 for iOS application

Today I updated my appium to 1.5 everything is running fine except the mobile: scrollTo command. el = getattr(driver, 'find_element_by_' + locator_type)(locator_path) driver.execute_script("mobile: scrollTo", {"element": el.id}) this code is not…
python
  • 4,403
  • 13
  • 56
  • 103
1
vote
1 answer

Appium Android UI testing - how to verify the style attribute of an element?

I would like to verify the style of an element i.e. the color of the text shown in a textview. Whether it is black or blue ex. textColor or textSize. This information is not listed in the uiautomatorviewer. I can get the text using…
deb
  • 21
  • 1
  • 6
1
vote
3 answers

Appium tries to launch app on simulator instead of real device

appium : 1.4.13 xcode : 7.1 ios: 9.1 desired_caps = dict() desired_caps['platformName'] = 'iOS' desired_caps['platformVersion'] = '9.1' desired_caps['deviceName'] = 'iPhone 6' desired_caps['app'] =…
user2661518
  • 2,677
  • 9
  • 42
  • 79
1
vote
0 answers

launching appium server through python script gives error

I am launching appium server through terminal by command appium and in another terminal I run my test suite python test.py This works fine. But if launch through python script I get error between 2 tests def setup(self): …
user2661518
  • 2,677
  • 9
  • 42
  • 79
0
votes
0 answers

How to know if Appium is running with Python or Windows command?

ENVIRONMENT: Pyhon 10 Windows11 I have some issues with my appium python code. I suspect Appium server was not running. I am searching a way (in Python or with a Windows command) to know if Appium server is running fine. I searched for a solution…
Gauthier Buttez
  • 1,005
  • 1
  • 16
  • 40
0
votes
1 answer

Appium Robot Framework: EditText randomly not filled

I'm testing an Android App and sometimes I can fill a field and sometimes not This is the error: InvalidElementStateException: Message: Cannot set the element to '1'. Did you interact with the correct element? Actually I'm using Input Text and…
0
votes
1 answer

How is appium inspector able to make interactive image from screenshot and page source

I am trying to understand how exactly is the appium inspector (webview) able to show an interactive phone screem that i can click button on or move to other screens with, as I see that the calls that is makes to the appium server are just getting…
Kraken
  • 23,393
  • 37
  • 102
  • 162
0
votes
1 answer

Getting error while launching iOS app on Appium Inspector

I have configured everything on my macbook to launch iOS app through appium inspector. I have successfully installed web driver agent application on my device as shown in screenshot below Below are my Desired capabilites for iOS device: While…
Noman
  • 15
  • 6
0
votes
1 answer

selenium.common.exceptions.WebDriverException: Message: Authorization required

Was trying to run the python API automation through DriverScript.py but getting the error as : PS C:\Users\Shibin.R\Downloads\retail-east-connectedcustomer-main\retail-east-connectedcustomer-main> python DriverScript.py Traceback (most recent call…
0
votes
0 answers

Appium test failing due to element ID not being located, but element does indeed exists

I've created an Appium test in Python which recreates signing into a mobile application. I was able to successfully run my test using the ACCESSIBILITY_ID element, but I know this is not something all developers add even though it should be done.…
0
votes
0 answers

Cannot add 2 key values to desired_caps for specific test function. Appium python

I have a fixture of connection driver to appium server @pytest.fixture(scope='module') def appium_driver(request): base_desired_caps = { "platformName": "Android", "deviceName": "emulator-5554" } desired_caps =…
0
votes
0 answers

How to upload an pdf document from emulator storage to android app's upload section using appium python

I'm developing an automation for an android mobile app using Appium and Python in emulator. that app have document upload functionality. I'm able to upload the files into the Emulator storage using adb push command but cannot upload the file which…
0
votes
1 answer

Browserstack python sdk is throwing type error in init file of its own libary

I am trying to run the automation in local using browserStack. I am using python and appium for this. I am getting the below error. I am unable to understnad what I need to change. Appium server v1.22.3 Browserstack python sdk version…