Skip to content

How to give an existing SessionID when an object is instantiated so that it will not apply for a new SessionID? #837

Description

@suzhenyu006

The problem

I have a test scenario. I need to use Java and Python to test appium on a device. Java has applied for a SessionID, and Python cannot apply again, but Python does not apply for a SessionID and cannot get a driver object

Environment

  • Appium version (or git revision) that exhibits the issue:
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium:
  • Node.js version (unless using Appium.app|exe):
  • Mobile platform/version under test:
  • Real device or emulator/simulator:
  • Appium CLI or Appium.app|exe:

Details

If necessary, describe the problem you have been experiencing in more detail.

Link to Appium Logs

Code To reproduce issue

self.c = webdriver.Remote(command_executor = self.adb_remote_url + "/wd/hub", desired_capabilities=self.desired_caps)
self.c.session_id = self.session_id

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions