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 @@ -41,9 +41,8 @@ const expect = require('chai').expect;
41
41
* You can use all these details after your test has completed, to fetch logs or use any other Automate REST APIs
42
42
*/
43
43
const resp = await JSON . parse ( await page . evaluate ( _ => { } , `browserstack_executor: ${ JSON . stringify ( { action : 'getSessionDetails' } ) } ` ) ) ;
44
- const jsonObj = await JSON . parse ( resp ) ;
45
- console . log ( jsonObj . hashed_id ) ; // This gives the session ID of the running session
46
- console . log ( jsonObj ) ; // This prints the entire JSON response. You can use any/all of the response attributes the way you like.
44
+ console . log ( resp . hashed_id ) ; // This gives the session ID of the running session
45
+ console . log ( resp ) ; // This prints the entire JSON response. You can use any/all of the response attributes the way you like.
47
46
48
47
await browser . close ( ) ;
49
48
} ) ( ) ;
You can’t perform that action at this time.
0 commit comments