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

Last updated: Oct 31, 2019 13:14

Sharing interactive device session with an IDE script. 

You can open a device and share that session with your IDE. This is intended for script development or debugging.

Step-by-step guide

  1. In the Perfecto Lab, open a device.
  2. Click More link and select Session ID.

  3. From the Session ID form, 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", "B8DA4E1494C08BA5A4AFB8B5E7D8729A");


  • 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).