|
@@ -203,6 +203,8 @@ app.post('/command', async (req, res) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ console.log("COMMAND RESULT:", commandResult);
|
|
|
+
|
|
|
// XXX videos are special, we have to magic up a guid etc for them
|
|
|
if (command == 'video' && commandResult) {
|
|
|
commandResult._guid = 'Video@' + uuidv4();
|
|
@@ -223,6 +225,10 @@ app.post('/command', async (req, res) => {
|
|
|
commandResult._guid = 'FetchResponse@' + uuidv4();
|
|
|
commandResult._type = 'FetchResponse';
|
|
|
}
|
|
|
+ if (commandResult && type == 'Page' && command == 'locator') {
|
|
|
+ commandResult._guid = 'Locator@' + uuidv4();
|
|
|
+ commandResult._type = 'Locator';
|
|
|
+ }
|
|
|
|
|
|
var toReturn = commandResult;
|
|
|
// XXX we have to duplicate this parameter so as not to confuse playwright when we change it to reflect the spec
|