Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Jan 02, 2020 10:28

Working with your IDE and the Perfecto Lab in parallel when developing Appium/selenium scripts is now much simpler. You no longer need additional add-ons or plugins. Session sharing allows you to work interactively on the device in the Perfecto Lab while executing an Appium/Selenium script simultaneously from your favorite IDE. 

Now, you can open a device in the Perfecto Lab and share that session with your IDE. This is intended for script development or debugging.

To share the session ID:

  1. In the Perfecto Lab, open a device.

  2. Click the Copy Session ID button .

  3. Copy the session ID or capability code sample to the clipboard.

  4. Add the capability to your script in the IDE you are using.
    Now you can interact with the same device session via both the IDE script and the Perfecto Lab.
    When you use a new device or start a new Perfecto Lab session, you need a new session ID.

Session ID example
deviceSessionId Capability example
capabilities.setCapability("deviceSessionId", "john.miller@perfectomobile.com_Interactivesession_19-11-17_11_18_08_562");

The following video shows how to copy a session ID and include it in a script:


  • Before committing, you must remove this capability from the script code. Otherwise, your script will fail.

  • This feature only works only if you have one device open in the Perfecto Lab. If you have 2 or more devices open, your test must specify the device ID to use (same as you would do if running a test on a device without the device being open in the Perfecto Lab).

Related articles