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
1 answer

why python appiumService cannot use address 0.0.0.0?

I am using Python AppiumService to start my appium server from appium.webdriver.appium_service import AppiumService service = AppiumService() args = [ "--address", "127.0.0.1", # this works #"--address", "0.0.0.0", # this works on cmd…
oldpride
  • 761
  • 7
  • 15
1
vote
1 answer

JSON value is converted to unicode - python

My current Python Appium test automation framework reads data from JSON file using the json.load() The value "Ελλάδα" stored in JSON is converted to "Ελλάδα" when json.load() method is called. Pleases point me to a solution were I can maintain…
1
vote
2 answers

In Appium Python, how to press key code by key name?

I am writing Python Appium code. The code needs to press the HOME button. Right now I have driver.press_keycode(3) where 3 is mapped to KEYCODE_HOME according to keycode mapping. Is there a way that I can refer KEYCODE_HOME in my code so that my…
oldpride
  • 761
  • 7
  • 15
1
vote
1 answer

I can't run 'appium -allow-cors'

I want to run appium inspector using my browser, you can see what appium I use here https://inspector.appiumpro.com/ and to using this method, I must be run appium -allow-cors in terminal. But, the system display this: How I can resolve this…
1
vote
2 answers

How to set timeout for chromedriver Appium

I am using python-appium client for my hybrid android application, how I can set timeout for exceptions, like NoSuchElement exception and etc., because if I switch to WebView and there is exception Appium python client don't raise exception and just…
1
vote
1 answer

Appium Invalid Session exception

I am working on automating testcases for a mobile application. Things were working fine but now suddenly I am getting the following exception Stacktrace:io.appium.uiautomator2.common.exceptions.NoSuchDriverException: The session identified by…
Umer Saeed
  • 63
  • 4
1
vote
0 answers

Appium + Python selenium.common.exceptions.WebDriverException: Message: Method is not implemented

In my python project I use Appium to prepare automation test for Android operation system. In my project I use Page Object Model + BDD. Below are files which I have. base_page.py class BasePage: def __init__(self, driver): self.driver =…
1
vote
1 answer

Pytest + Appium test framework

I'm very new to automation development, and currently starting to write an appium+pytest based Android app testing framework. I managed to run tests on a connected device using this code, that seems to use unittest: class demo(unittest.TestCase): …
Shen
  • 11
  • 2
1
vote
1 answer

PyQt5, Appium: how to retrieve widget's text?

I've been using the PyQt5 for a while, and want tests to be performed on the GUI, with Windows 10. The Appium seems to be a good option for the purpose. For now, I can access the widget by setting the accessbleName in the Qt Designer. However, how…
Woden
  • 1,054
  • 2
  • 13
  • 26
1
vote
3 answers

How to stay logged in between multiple tests in Appium?

I'm testing a website in Chrome using Python, Appium, Android Emulator and trying to figure out how to stay logged in between multiple tests. The most common answer to similar questions I found is to add --user-data-dir option so I wrote the…
mzg
  • 43
  • 2
  • 7
1
vote
1 answer

Getting 'ImportError: No module named appium'

I am using following piece of code in python: from appium import webdriver from os import path CUR_DIR = path.dirname(path.abspath(__file__)) APP = path.join(CUR_DIR, 'TheApp.app.zip') APPIUM = 'http://localhost:4723' CAPS = { 'platformName':…
1
vote
1 answer

(Appium-Python) Difference of "Element could not be located on the page using the given search parameters" & "Element does not exist in DOM anymore"

As above. Encountered these two issues. An element could not be located on the page using the given search parameters. The element does not exist in DOM anymore
1
vote
1 answer

An unknown server-side error occurred while processing the command Original error: Error executing adbExec

An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command 'C:\Users\German\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 3af689100106 install -g 'C:\Program…
1
vote
1 answer

How to get invisible page source in appium?

When i swipe to next page and get page_source , I can't get last page_source content That is I only can get current visible page_source But I want to scrape lots of page, get only visible page source is low efficient Any way to get invisible outside…
1
vote
2 answers

To mark test Pass or Fail on Browserstack Appium Python-behave

Please find the code below that I have added in environment.py file for after_scenario I do not get any error but neither are my tests marked with appropriate status on Browserstack def after_scenario(context, scenario): if scenario.status ==…