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
2
votes
2 answers

WebDriverWait.until.expected_conditions.presence_of_element_located not waiting for reloaded DOM

I have an app with 2 buttons. Button A takes the app to a new page with no buttons, then returns to the page with 2 buttons. My automated test is meant to click on Button A, wait while the app heads to the new pages and returns, then click on Button…
Dummie1138
  • 61
  • 1
  • 7
2
votes
0 answers

How to test Android TalkBack Accessibility using Appium?

I am using Appium with the Python API to do automated testing for Android Apps. Now I would like to do some automated testing of the TalkBack accessibility feature of the App. I managed to activate the Accessibility Service during the test by…
schoenk
  • 824
  • 3
  • 13
  • 31
2
votes
1 answer

Search for an element immediately

I want to search for an element in an android application page which has a count down animation, so the searching for the element does not finish until the count down ends. Is there any way Appium does not wait and return immediate results?
Iman
  • 2,224
  • 15
  • 35
2
votes
0 answers

How do I scroll a page until element is fully visible (not overlapped by anything) in mobile Appium tests?

I'm writing a test that should scroll down a page until the Activate card button is visible to the user, and then tap to it. The problem Appium's driver is_displayed returns true when an element is visible in the viewport. Since our app has…
Ivan Fateev
  • 1,032
  • 1
  • 10
  • 26
2
votes
1 answer

Is there a way to retrieve information from a ui element that has the property IsControlElement = False? (Python + Appium + WinAppDriver)

Greetings and salutations! I'm working on a UI automation project for a windows desktop app (FrameworkId: Win32) Stack: Python (3.7) + Appium (1.15.1) + WinAppDriver (v1.1). I have identified an element using Inspect.exe, but when I try to code,…
2
votes
1 answer

Passing WebDriver's Browser instance to JavaScript in Appium

I am testing an Android Phone application which is based on Hybrid Application Canvas, most of the functionalities i have to test are Canvas based and only way i have is to use JavaScript to be called from Python Scripts. Before executing…
Pawankumar Dubey
  • 387
  • 1
  • 6
  • 21
2
votes
3 answers

Appium - Design page object to reuse same function with iOS and Android

I'm currently using page objects in my Appium and Python project to run the tests only on the iOS platform. Now I need to implement the same tests for Android (the app is the same). I know the locators are different for each platform, but the…
Rafael C.
  • 2,245
  • 4
  • 29
  • 45
2
votes
0 answers

How to terminate Appium session when stopping program in PyCharm debugger

I'm using behave with Appium in a PyCharm debugger to debug an app. I am calling behave from Python using this code: rc = run_behave(config=myconfig, runner_class=MyBehaveRunner) How can I intercept the debugger's [STOP] button/signal and call…
simpleuser
  • 1,617
  • 25
  • 36
2
votes
1 answer

How to store the result of a python function in robot framework and display it in Reports?

I am testing an app that uses Bluetooth, I have a python function that connects it to a server and displays some strings. I want to store that strings in variable and compare it with it other strings. I have stored the results in the result…
2
votes
3 answers

What Are Some Best Practices When Asserting iOS Elements Are Displayed?

I'm trying to write my first UI Automation test for an iOS app with Appium/Python. I find that when I list 10 assertions like the one below, I get very inconsistent results ... sometimes it passes, but it usually fails the third assertion, sometimes…
rHenderson
  • 608
  • 6
  • 13
2
votes
0 answers

Change status from fail to skip if specific exception occurred

I'm running hundreds of tests on real phones using pytest and appium. Once in a time I'm getting few appium specific errors which are marking tests as failed but nothing was really checked. This errors are like…
dejvidq
  • 21
  • 1
  • 4
2
votes
2 answers

Cloud testing services for Appium / Python?

We need a cloud service to run automated tests written in Python on top of Behave BDD / Appium environment. 1 - What are some good options in the market for cloud automated tests and reporting? 2 - We used App Center with Xamarin.UITests before but…
2
votes
1 answer

Using Appium / Python, how can I check if the Keyboard is showing or not?

I have seen the Appium doc for IsKeyboardShown method in this link: http://appium.io/docs/en/commands/device/keys/is-keyboard-shown/ And it says # Not supported for Python Maybe there could be a workaround? Thanks
2
votes
2 answers

Appium server not detecting the device connected through wifi

did adb tcpip 5555 and adb connect ipaddress . The adb devices show the device. But when i run the appium server, its showing no android device connected. The appium python code is desired_caps = {} desired_caps['platformName'] =…
bakarin
  • 622
  • 5
  • 17
2
votes
2 answers

How to make python function use values from dictionary based on environment variables?

I'm automating testing on iOS & Android devices with pytest and Appium. Consider the following: some_locator: { 'iOS': ('MobileBy.ACCESSIBILITY_ID', 'some_id'), 'Android': ('MobileBy.ID', 'another_id') } def foo(): …
bvrch
  • 53
  • 5
1
2
3
19 20