Skip to content

[JS][BiDi] Add Script module commands and types#11847

Merged
harsha509 merged 5 commits intoSeleniumHQ:trunkfrom
TamsilAmani:js-bidi-script
Apr 10, 2023
Merged

[JS][BiDi] Add Script module commands and types#11847
harsha509 merged 5 commits intoSeleniumHQ:trunkfrom
TamsilAmani:js-bidi-script

Conversation

@TamsilAmani
Copy link
Copy Markdown
Contributor

Description

Add script module commands and types

Motivation and Context

Implement script module commands and types as described in https://w3c.github.io/webdriver-bidi/#module-script.
The majority of classes and interfaces are mapping the common data types as described in https://w3c.github.io/webdriver-bidi/#data-types.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@TamsilAmani
Copy link
Copy Markdown
Contributor Author

I suggest to add getter functions where ever possible instead of directly accessing the object's attributes. Is that okay?

Comment thread javascript/node/selenium-webdriver/bidi/evaluateResult.js Outdated
Comment thread javascript/node/selenium-webdriver/bidi/evaluateResult.js Outdated
Comment thread javascript/node/selenium-webdriver/bidi/protocolType.js Outdated
Comment thread javascript/node/selenium-webdriver/bidi/protocolValue.js Outdated
Comment thread javascript/node/selenium-webdriver/bidi/protocolValue.js Outdated
@TamsilAmani
Copy link
Copy Markdown
Contributor Author

Thank you for the review @harsha509. I have pushed the changes.

Copy link
Copy Markdown
Member

@harsha509 harsha509 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@harsha509 harsha509 merged commit 5028b24 into SeleniumHQ:trunk Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants