Skip to content

Commit

Permalink
Merge pull request #95 from /issues/79-execute-script-false-values
Browse files Browse the repository at this point in the history
fix: change execute script return value in session process
  • Loading branch information
poftadeh authored Dec 4, 2019
2 parents 5d7daac + c0d5a56 commit c115c63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Session/Session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,11 @@ class Session {
break;
case COMMANDS.EXECUTE_SCRIPT:
if (!this.browser.dom.window) throw new NoSuchWindow();
response = await this.executeScript(
const value: unknown = await this.executeScript(
parameters.script,
parameters.args,
);
response = { value };
break;
case COMMANDS.ELEMENT_SEND_KEYS:
await this.sendKeysToElement(
Expand Down

0 comments on commit c115c63

Please sign in to comment.