镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

webdriver.Remote is missing #476

Closed
Closed

Description

@AfflerZero

According to Appium API doc:
http://appium.io/docs/en/commands/session/create/index.html

I am supposed to use webdriver.Remote etc:

desired_caps = desired_caps = {
'platformName': 'Android',
'platformVersion': '7.0',
'deviceName': 'Android Emulator',
'automationName': 'UiAutomator2',
'app': PATH('/path/to/app')
}
self.driver = webdriver.Remote('http://127.0.0.1:4723', desired_caps)

However, its missing from appium.webdriver is webdriver.RemoteCommand the replacement?

Activity

  1. KazuCocoa commented on Dec 18, 2019

    @KazuCocoa
    Member

    How did you import the module?

    It should be like this https://github.com/appium/python-client#usage

    from appium import webdriver
    ...
    self.driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
    
  2. AfflerZero commented on Dec 18, 2019

    @AfflerZero
    Author

    I made a mistake I acciently put

    from appium.webdriver import webdriver

    Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions