You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Execute client function on electron process and save result into memory
7
+
* @param {string} functionKey - memory key of function
8
+
* @param {string} memoryKey - memory key to store result
9
+
* @example I execute '$fn' function and save result as 'result' // fn is function reference
10
+
* @example I execute '$js(async ({ app }) => app.getAppPath())' function and save result as 'scroll'
11
+
*/
12
+
When('I execute {value} function/script on electron app',asyncfunction(this: QavajsPlaywrightElectronWorld,fn: MemoryValue){
13
+
awaitthis.electron.evaluate(awaitfn.value());
14
+
});
15
+
16
+
/**
17
+
* Execute client function on electron process and save result into memory
18
+
* @param {string} functionKey - memory key of function
19
+
* @param {string} memoryKey - memory key to store result
20
+
* @example I execute '$fn' function and save result as 'result' // fn is function reference
21
+
* @example I execute '$js(async ({ app }) => app.getAppPath())' function on electron app and save result as 'result'
22
+
*/
23
+
When('I execute {value} function/script on electron app and save result as {value}',asyncfunction(this: QavajsPlaywrightElectronWorld,fn: MemoryValue,memoryKey: MemoryValue){
0 commit comments