File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,8 @@ const clientPlaywrightVersion = cp.execSync('npx playwright --version').toString
40
40
* You can use all these details after your test has completed, to fetch logs or use any other Automate REST APIs
41
41
*/
42
42
const resp = await JSON . parse ( await page . evaluate ( _ => { } , `browserstack_executor: ${ JSON . stringify ( { action : 'getSessionDetails' } ) } ` ) ) ;
43
- const jsonObj = await JSON . parse ( resp ) ;
44
- console . log ( jsonObj . hashed_id ) ; // This gives the session ID of the running session
45
- console . log ( jsonObj ) ; // This prints the entire JSON response. You can use any/all of the response attributes the way you like.
43
+ console . log ( resp . hashed_id ) ; // This gives the session ID of the running session
44
+ console . log ( resp ) ; // This prints the entire JSON response. You can use any/all of the response attributes the way you like.
46
45
47
46
await browser . close ( ) ;
48
47
} ) ( ) ;
You can’t perform that action at this time.
0 commit comments