Comments (7)
Also there are no options for launching app using bundleid and udid on iOS devices
from robotframework-appiumlibrary.
@extr3mal thanks for your suggestion , I will check that~
from robotframework-appiumlibrary.
To enable backgrounding just add in _applicationmanagement.py following code :
def background_app(self,time):
"""
Background the app
"""
self._current_application().background_app(time)
To enable udid and bundle id it will require reconstructing of open_application method inside same file . I hard coded my code inside of it so it can launch apps from real device but that method isn't good because it does not fit all possible usage cases
def open_application(self, remote_url, platform_name, platform_version, device_name, automation_name=None, app_package=None, app_activity=None, alias=None, udid=None, bundleid=None):
"""Opens a new application to given Appium server.
| *Option* | *Man.* | *Description* |
| remote_url | Yes | Appium server url |
| platform_name | Yes | platform name, either "iOS" or "Android" |
| platform_version | Yes | platform version, the mobile OS version you want |
| device_name | Yes | Device name, the kind of device you want, like "iPhone Simulator" |
| app | Yes | Android/iOS application path |
| automation_name | no | "Selendroid" if you want to use Selendroid, otherwise, this can be omitted |
| app_package | no | Android application package name |
| app_activity | no | Android application activity name |
| udid | no | iOS Real Device UDID |
| bundleid | no | iOS Application Bundle ID |
Examples:
| Open Application | http://localhost:4723/wd/hub | iOS | 7.0 | iPhone Simulator | your.app |
| Open Application | http://localhost:4723/wd/hub | Android | 4.2 | emulator:5554 | OrangeDemoApp.apk | Selendroid | com.test.orangedemo | .MainActivity |
"""
desired_caps = {}
desired_caps['platformName'] = platform_name
desired_caps['platformVersion'] = platform_version
desired_caps['deviceName'] = device_name
#desired_caps['app'] = app
desired_caps['automationName'] = automation_name
# desired_caps['browserName'] = ''
desired_caps['appPackage'] = app_package
desired_caps['androidActivity'] = app_activity
desired_caps['udid'] = udid
desired_caps['bundleid'] = bundleid
desired_caps['takesScreenshot'] = 'true'
Hope my code suggestions wil help you somehow
from robotframework-appiumlibrary.
it's fine
Could you send me a pull request for these?
On 2014Äê7ÔÂ29ÈÕ, at 18:53, extr3mal [email protected] wrote:
To enable backgrounding just add in _applicationmanagement.py following code :
def background_app(self,time):
"""
Background the app
"""
self._current_application().background_app(time)To enable udid and bundle id it will require reconstructing of open_application method inside same file . I hard coded my code inside of it so it can launch apps from real device but that method isn't good because it does not fit all possible usage cases
def open_application(self, remote_url, platform_name, platform_version, device_name, automation_name=None, app_package=None, app_activity=None, alias=None, udid=None, bundleid=None):
"""Opens a new application to given Appium server.| *Option* | *Man.* | *Description* | | remote_url | Yes | Appium server url | | platform_name | Yes | platform name, either "iOS" or "Android" | | platform_version | Yes | platform version, the mobile OS version you want | | device_name | Yes | Device name, the kind of device you want, like "iPhone Simulator" | | app | Yes | Android/iOS application path | | automation_name | no | "Selendroid" if you want to use Selendroid, otherwise, this can be omitted | | app_package | no | Android application package name | | app_activity | no | Android application activity name | | udid | no | iOS Real Device UDID | | bundleid | no | iOS Application Bundle ID | Examples: | Open Application | http://localhost:4723/wd/hub | iOS | 7.0 | iPhone Simulator | your.app | | Open Application | http://localhost:4723/wd/hub | Android | 4.2 | emulator:5554 | OrangeDemoApp.apk | Selendroid | com.test.orangedemo | .MainActivity | """ desired_caps = {} desired_caps['platformName'] = platform_name desired_caps['platformVersion'] = platform_version desired_caps['deviceName'] = device_name #desired_caps['app'] = app desired_caps['automationName'] = automation_name # desired_caps['browserName'] = '' desired_caps['appPackage'] = app_package desired_caps['androidActivity'] = app_activity desired_caps['udid'] = udid desired_caps['bundleid'] = bundleid desired_caps['takesScreenshot'] = 'true'
¡ª
Reply to this email directly or view it on GitHub.
from robotframework-appiumlibrary.
i can but there is an architecture problem with conection opener it must be remade to fit all usage cases
from robotframework-appiumlibrary.
Also reset keyword shows me strange notice
20140730 13:31:03.969 : FAIL : WebDriverException: Message: u'Not yet implemented. Please help us: http://appium.io/get-involved.html'
from robotframework-appiumlibrary.
fixed above, close
from robotframework-appiumlibrary.
Related Issues (20)
- Attach screenshot to xunit.xml for Azure DevOps
- No WebView Context in "Get Contexts" result HOT 1
- Open Application not working with Selenium 4.10+ (unexpected keyword argument 'desired_capabilities') HOT 2
- iOS Automation execution doesn't start, Fails at xcodebuild error 70 HOT 3
- swipe_by_percent Function does not work properly with IOS HOT 1
- Appium keyword 'start activity' does not work anymore
- Unable to input text for edit text using Jetpack compose HOT 1
- gives an error for xpath" (//div[contains(@class,'no-result-contact-info')]/p)[1]" InvalidArgumentException: HOT 3
- Can't locate elements with extra space in the value when using accessibility_id
- Start Screen Recording : AttributeError: 'WebDriver' object has no attribute 'desired_capabilities' HOT 4
- Swipe By Percent error: AttributeError: 'WebDriver' object has no attribute 'desired_capabilities'
- Input URL is missing the two slashes // after https:
- Appium-Python-Client 4.0.0 breaks this package. HOT 5
- Unable to interract with alerts on iOS simulator since xcuitest v6 HOT 1
- Failed to import allium.webdriver.common.touch-action after installing latest version of Appium-Python-Client (4.0.0) HOT 3
- Swipe/scroll keywords are not working with appiumlibrary when appium server updated to 2.5.1 HOT 2
- getting Error "ModuleNotFoundError: No module named 'appium.webdriver.common.touch_action' " during launch application HOT 2
- WebDriverException: Message: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource HOT 1
- ModuleNotFoundError: No module named 'appium.webdriver.common.touch_action' HOT 2
- Appium Swipe does not work in Mac HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robotframework-appiumlibrary.