appium / appium/python-client

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

Open
#837 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.8k
Forks
570
Avg merge
1d 10h
Merged PRs (30d)
24

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with the Python client's webdriver.Remote construction and the subsequent session_id assignment shown in the reproduction. Check whether attaching to an existing Appium session is supported; completion should be a documented or supported way for Python to reuse the Java-created SessionID without requesting another session.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.