python-client icon indicating copy to clipboard operation
python-client copied to clipboard

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

Open suzhenyu006 opened this issue 2 years ago • 1 comments

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

suzhenyu006 avatar Mar 08 '23 08:03 suzhenyu006

Perhaps this lib does not have the ability if the base selenium client did not have the feature

KazuCocoa avatar Mar 13 '23 17:03 KazuCocoa