Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#766 text api to accept exactMatch as option #1122

Merged
merged 8 commits into from
Mar 19, 2020

Conversation

saikrishna321
Copy link
Member

Fixes #766

Copy link
Member

@sriv sriv left a comment

Choose a reason for hiding this comment

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

/cc @zabil - the introduction of new parameter in text API will break backward compatibility.

@@ -2550,9 +2550,10 @@ module.exports.radioButton = (attrValuePairs, _options, ...args) => {
*/
module.exports.text = text;

function text(text, ...args) {
function text(text, options = {}, ...args) {
Copy link
Member

Choose a reason for hiding this comment

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

This will break existing functionality. Ex. currently one may have invocation such as text(selector, 'foo') and with this change foo will get assigned to option rather than args.

Another problem is that if someone used the new API and ran it against older taiko, it will not error out. For ex text(selector, {exactMatch: true}, 'foo') will result in args being [object Object],'foo'

Copy link
Member

Choose a reason for hiding this comment

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

I think instead of adding an option we should change the default behavior of text to only match exact. Partial matches are ok for other api's like click etc. And it's ok to revert text to exact matches.

This way there is no need to pass options

Copy link
Member

Choose a reason for hiding this comment

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

On further thought, this is tricky. For in the sample that you posted.

text API returns true for partial match text.

<div>Editable Demo</div>

TextAPI

text('demo').exists() // true
text('Editable').exists() // true
text('editable demo').exists() // true

exactMatch works on HTML boundary. But the HTML can be rendered in any way and look the same for example.

Editable <div>Demo</div>

How will the exact match option work in this case? I think this is the reasoning for the existing behavior.

So for this edge case. I recommend that it's explicitly handled as mentioned at #766 (comment)

Copy link
Member

Choose a reason for hiding this comment

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

Even reverting back text api to match only exact match will break backward compatibility. I feel actions that can take string as selectors like click can also accept option for partial match and the same has to be applied to proximity selectors too.

Copy link
Member Author

Choose a reason for hiding this comment

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

IMO I think all the API should accept option for exact match. As mentioned here #766 (comment) if the value() returns multiple results we need to again check if the required is present in the list and perform click or any action on the text or use proximity selectors. It's getting messy now.

I prefer failing fast.

Copy link
Member

Choose a reason for hiding this comment

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

IMO I think all the API should accept option for exact match.

What is the definition of an exact match? Like it's mentioned earlier. HTML may look different when rendered on the page.

Copy link
Member Author

Choose a reason for hiding this comment

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

text('Natural Expiry').exists() // Test Pass When the website also has the exact text.

text('Natural Expiry'). exists() // Should Fail When the html has only Expiry.

Current implementation will Pass the test as it does partial match.

I had a chat with @sriv and will fix the above mentioned problem which is for ex text(selector, {exactMatch: true}, 'foo')

Copy link
Member

Choose a reason for hiding this comment

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

historically we had a contains which did partial match and text which did exact match. We merged the two so now text does a first pass exact match now, and falls back to partial match.

I guess this issue is to tell taiko to do exact match only and not fallback to partial match. This might help prevent false positives.

Copy link
Member

Choose a reason for hiding this comment

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

What is the definition of an exact match? Like it's mentioned earlier. HTML may look different when rendered on the page.

With exact match we do look for text across element.

Text search works like below:
Check for exact match: matchTextNode or matchValueOrType or matchTextAcrossElements
else Check for contains: containsTextNode or containsValueOrType or containsTextAcrossElements

<p>Editable <div>Demo</div><p> will have exact match and will pick the parent element
wherein <p>Editable <div>Demo</div>Sample<p> will be matched by contains.
For text("Editable Demo").exists() will be true for both cases currently.
If we provide option to match only exact match second one will return false.

lib/taiko.js Outdated Show resolved Hide resolved
@sriv sriv merged commit 485c7d8 into getgauge:master Mar 19, 2020
@zabil zabil added the feature label Mar 24, 2020
nuclearglow pushed a commit to nuclearglow/taiko that referenced this pull request Apr 17, 2020
* getgauge#766 text api to accept exactMatch as option

* fix review comments

* use prepareParameters fn

Co-authored-by: Srikanth <srikanth.ddit@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>
NivedhaSenthil added a commit that referenced this pull request Apr 20, 2020
* Add a new FAQ page (#1120)

* Add FAQ file with general section

* Remove summary text

* Use summary tag for questions

* Add FAQ for firefox support and installation

* Add more FAQ and move to docs folder

* Add link to FAQ in the TOC

* Add link to Typescript and .npmrc info

Co-authored-by: Srikanth <srikanth.ddit@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* added experimental typescript support, updated docs, exposed typings through package.json, added package.json schema

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* switched to optional taiko types, removed types definition from package.json, updated README

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* fix jsdoc issue for textBox api, fixes 1123

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* removed Taiko prefix from the declarations, we use the declared module taiko already

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* #1083 - Interceptor Exact Match check before Reg Exp (#1085)

Co-authored-by: Zabil Cheriya Maliackal <zabil@users.noreply.github.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* switched ts to json type for syntax in README

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump commander from 4.1.1 to 5.0.0 (#1128)

Bumps [commander](https://github.com/tj/commander.js) from 4.1.1 to 5.0.0.
- [Release notes](https://github.com/tj/commander.js/releases)
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md)
- [Commits](tj/commander.js@v4.1.1...v5.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Srikanth <srikanth.ddit@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump rewire from 4.0.1 to 5.0.0 (#1124)

Bumps [rewire](https://github.com/jhnns/rewire) from 4.0.1 to 5.0.0.
- [Release notes](https://github.com/jhnns/rewire/releases)
- [Changelog](https://github.com/jhnns/rewire/blob/master/CHANGELOG.md)
- [Commits](jhnns/rewire@v4.0.1...v5.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Nivedha <nivedhasenthil@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Refactor tests to start and stop server from hooks (#1132)

Test failures are irrelevant

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Wait for server to start listening

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Fix waiting for loadEventFired (#1136)

- since in cases like new tab open `loadEventFired` can be missed before taiko makes a new connection hence wait for page's readyState to be complete rather

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump eslint-config-airbnb from 18.0.1 to 18.1.0 (#1126)

Bumps [eslint-config-airbnb](https://github.com/airbnb/javascript) from 18.0.1 to 18.1.0.
- [Release notes](https://github.com/airbnb/javascript/releases)
- [Commits](airbnb/javascript@eslint-config-airbnb-v18.0.1...eslint-config-airbnb-v18.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Srikanth <srikanth.ddit@gmail.com>
Co-authored-by: Nivedha <nivedhasenthil@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump acorn from 5.7.3 to 5.7.4 (#1131)

Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](acornjs/acorn@5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Configure http headers for a host when not present. #816 (#1135)

Co-authored-by: Nivedha <nivedhasenthil@gmail.com>
Co-authored-by: Vinay Shankar Shukla <vinaysh@thoughtworks.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Automate chromium update (#1130)

* #1119  Create update_chromium.yml

* #1119 update github token

* #1119 update time

* #1119 Add script to get version

* #1119 Add revision on commit msg and pr

* #1119 Fix message linting

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* #766 text api to accept exactMatch as option (#1122)

* #766 text api to accept exactMatch as option

* fix review comments

* use prepareParameters fn

Co-authored-by: Srikanth <srikanth.ddit@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* emit 'input' event on dropdown change, fixes #1127 (#1138)

* emit 'input' event on dropdown change, fixes #1127

* fix failing tests

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Remove unnecessary getDocument

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Refactor tests to open browser once

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump fs-extra from 8.1.0 to 9.0.0 (#1141)

Bumps [fs-extra](https://github.com/jprichardson/node-fs-extra) from 8.1.0 to 9.0.0.
- [Release notes](https://github.com/jprichardson/node-fs-extra/releases)
- [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md)
- [Commits](jprichardson/node-fs-extra@8.1.0...9.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Nivedha <nivedhasenthil@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump mocha from 7.1.0 to 7.1.1 (#1140)

Bumps [mocha](https://github.com/mochajs/mocha) from 7.1.0 to 7.1.1.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](mochajs/mocha@v7.1.0...v7.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Nivedha <nivedhasenthil@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump marked from 0.8.0 to 0.8.1 (#1139)

Bumps [marked](https://github.com/markedjs/marked) from 0.8.0 to 0.8.1.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Commits](markedjs/marked@v0.8.0...v0.8.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Nivedha <nivedhasenthil@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump eslint-config-prettier from 6.10.0 to 6.10.1 (#1145)

Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.10.0 to 6.10.1.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
- [Commits](prettier/eslint-config-prettier@v6.10.0...v6.10.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump marked from 0.8.1 to 0.8.2 (#1143)

Bumps [marked](https://github.com/markedjs/marked) from 0.8.1 to 0.8.2.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Commits](markedjs/marked@v0.8.1...v0.8.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump prettier from 1.19.1 to 2.0.1 (#1144)

Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.0.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](prettier/prettier@1.19.1...2.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Nivedha <nivedhasenthil@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Case insensitive selectors for radioButton, textBox and checkbox #1134 (#1137)

Co-authored-by: Zabil Cheriya Maliackal <zabil@users.noreply.github.com>
Co-authored-by: Srikanth <srikanth.ddit@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* added typing update to better reflect taiko API

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* minor corrections

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump marked from 0.8.0 to 0.8.1 (#1139)

Bumps [marked](https://github.com/markedjs/marked) from 0.8.0 to 0.8.1.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Commits](markedjs/marked@v0.8.0...v0.8.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Nivedha <nivedhasenthil@gmail.com>

* Bump marked from 0.8.1 to 0.8.2 (#1143)

Bumps [marked](https://github.com/markedjs/marked) from 0.8.1 to 0.8.2.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Commits](markedjs/marked@v0.8.1...v0.8.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump lint-staged from 10.0.8 to 10.0.9

Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.0.8 to 10.0.9.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](lint-staged/lint-staged@v10.0.8...v10.0.9)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump prettier from 2.0.1 to 2.0.2

Bumps [prettier](https://github.com/prettier/prettier) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](prettier/prettier@2.0.1...2.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Added .highlight command #1039

Add clearHightlights API
Changed method of highlighting, adding a taiko specific style for
highlighting.

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Added support for range API #1031

* #1031 Added support for range API

Co-authored-by: priyanupur <priya.seiji@gmail.com>

* Covered boundary cases

Co-authored-by: priyanupur <priya.seiji@gmail.com>

* fixed review comments

* Do not enforce type safetly on values and fixed tests

* added test with proximity selectors

* fix compile error

* handle case when min and max values are not present in the html

* added doc string

Co-authored-by: priyanupur <priya.seiji@gmail.com>
Co-authored-by: Vinay Shankar Shukla <vinaysh@thoughtworks.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Fix switchTo to accept regex (#1151)

* #1147 Fix switchTo to accept regex

- update empty string check
- add tests for regex switchTo
- update wait for readystate to timeout on navigation timeout instead of default.

* Bump up version to 1.0.7

* Revert "Bump up version to 1.0.7"

This reverts commit 3f0628a.

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump extract-zip from 1.6.7 to 1.7.0

Bumps [extract-zip](https://github.com/maxogden/extract-zip) from 1.6.7 to 1.7.0.
- [Release notes](https://github.com/maxogden/extract-zip/releases)
- [Commits](max-mapper/extract-zip@v1.6.7...v1.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Incognito Window API (#1150)

* #1142 deprecated openWindow and closeWindow API
Added new API openIncognitoWindow and closeIncognitoWindow

* run all tests

* Enable debugger

* check only for response on reconnect

* Increase mocha timeout

* run all tests

* wait for reconnect to finish

Co-authored-by: Vinay Shankar Shukla <vinaysh@thoughtworks.com>
Co-authored-by: Nivedha <nivedhasenthil@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Websocket issue (#1115)

* Handle WebSocket is not open: readyState 3 error

* Pass openBrowserArgs to openBrowser

* Check whether chrome process is alive or not before handling WebSocket is not open: readyState 3

* Reset client related refrences when browser crashes.

* Handle <WebSocket is not open: readyState 3> error in one place

* Refactored waitUntil helper.

     - Throw actual error on time out.
     - Avoid waiting on browser process crash error.

* bubble-up non timeout error.

* Increase mocha timeout to 6000 for verbose reporter test script

* Increase retry timeout for waitUntil tests.

* Fix openBrowser test

* Fix waitUntil helper test

* Handle chrome process exited error

* Create a wrapper around cdp api call to handle timeout.

* Revert "Create a wrapper around cdp api call to handle timeout."

This reverts commit 4309c95.

* Resolve promise when browser process is already killed

* Fixed browserAction FT

* Revert "Fixed browserAction FT"

This reverts commit 8095413.

* Create a wrapper around cdp api call to handle timeout.

* Find proximity elements rects when needed.

* Create proxies for missing CDP domain

Co-authored-by: Vinay Shankar Shukla <vinaysh@thoughtworks.com>
Co-authored-by: Nivedha <nivedhasenthil@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Update package.json and package-lock.json (#1154)

This is the result of the the commands

  npm update
  npm audit fix

To update dependencies and fix security updates especially
the warning

GHSA-7fhm-mqm4-2wp7

Co-authored-by: Nivedha <nivedhasenthil@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* added comment and fixed doc string (#1155)

* added comment and fixed doc string

* fix doc string example

* Update lib/taiko.js

Co-Authored-By: Zabil Cheriya Maliackal <zabil@users.noreply.github.com>

* Update lib/taiko.js

Co-Authored-By: Zabil Cheriya Maliackal <zabil@users.noreply.github.com>

* fixed review comments

* Update lib/taiko.js

Co-Authored-By: Zabil Cheriya Maliackal <zabil@users.noreply.github.com>

Co-authored-by: Zabil Cheriya Maliackal <zabil@users.noreply.github.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Add options doc string for text API (#1156)

* added options doc string for text API

* Update lib/taiko.js

Co-authored-by: Zabil Cheriya Maliackal <zabil@users.noreply.github.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump extract-zip from 1.7.0 to 2.0.0

Bumps [extract-zip](https://github.com/maxogden/extract-zip) from 1.7.0 to 2.0.0.
- [Release notes](https://github.com/maxogden/extract-zip/releases)
- [Commits](max-mapper/extract-zip@v1.7.0...v2.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump lint-staged from 10.0.9 to 10.0.10

Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.0.9 to 10.0.10.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](lint-staged/lint-staged@v10.0.9...v10.0.10)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump recast from 0.18.7 to 0.18.8

Bumps [recast](https://github.com/benjamn/recast) from 0.18.7 to 0.18.8.
- [Release notes](https://github.com/benjamn/recast/releases)
- [Commits](https://github.com/benjamn/recast/commits/v0.18.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump lint-staged from 10.0.10 to 10.1.0

Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.0.10 to 10.1.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](lint-staged/lint-staged@v10.0.10...v10.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump documentation from 12.1.4 to 12.2.0

Bumps [documentation](https://github.com/documentationjs/documentation) from 12.1.4 to 12.2.0.
- [Release notes](https://github.com/documentationjs/documentation/releases)
- [Changelog](https://github.com/documentationjs/documentation/blob/master/CHANGELOG.md)
- [Commits](documentationjs/documentation@v12.1.4...v12.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump lint-staged from 10.1.0 to 10.1.1

Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.1.0 to 10.1.1.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](lint-staged/lint-staged@v10.1.0...v10.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Fix beforeunload API (#1157)

* Fixed beforeunload API. #1093

       - Fixed existing API contract to only accept callback.
       - Wait for beforeunload popup handler to finish before closing the browser.

* Fixed javascript popup FTs. #1093

* Force close browser after 5 second. #1093

* Fixed typo in warning message

* Update beforeunload API documentation #1093

Co-authored-by: Srikanth <srikanth.ddit@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump handlebars from 4.7.3 to 4.7.4

Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.3 to 4.7.4.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](handlebars-lang/handlebars.js@v4.7.3...v4.7.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump handlebars from 4.7.4 to 4.7.5

Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.4 to 4.7.5.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](handlebars-lang/handlebars.js@v4.7.4...v4.7.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Remove documentation as a dependency (#1176)

Call npx to generate documentation
post install

Signed-off-by: Zabil Cheriya Maliackal <zabilcm@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Auto update chromium to stable version

Signed-off-by: Dharmendra Singh <dharmenn@thoughtworks.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump recast from 0.18.7 to 0.19.0

Bumps [recast](https://github.com/benjamn/recast) from 0.18.7 to 0.19.0.
- [Release notes](https://github.com/benjamn/recast/releases)
- [Commits](benjamn/recast@v0.18.7...v0.19.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump prettier from 2.0.2 to 2.0.3

Bumps [prettier](https://github.com/prettier/prettier) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](prettier/prettier@2.0.2...2.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump lint-staged from 10.0.9 to 10.1.2

Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.0.9 to 10.1.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](lint-staged/lint-staged@v10.0.9...v10.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump handlebars from 4.7.3 to 4.7.6

Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.3 to 4.7.6.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](handlebars-lang/handlebars.js@v4.7.3...v4.7.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* fixed test?

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Fix close browser (#1181)

* #818 Fix validation for browser session

Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

* #818 fix closeWindow

Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

* #818  Update validation error message

Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

* #818 update error messaging

Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

Co-authored-by: Srikanth <srikanth.ddit@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* #818 remove setting client to null

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump prettier from 2.0.3 to 2.0.4

Bumps [prettier](https://github.com/prettier/prettier) from 2.0.3 to 2.0.4.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](prettier/prettier@2.0.3...2.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* #1175 Disable preview to fix .code

Fixes #1175

Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump documentation from 12.2.0 to 12.3.0

Bumps [documentation](https://github.com/documentationjs/documentation) from 12.2.0 to 12.3.0.
- [Release notes](https://github.com/documentationjs/documentation/releases)
- [Changelog](https://github.com/documentationjs/documentation/blob/master/CHANGELOG.md)
- [Commits](documentationjs/documentation@v12.2.0...v12.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* remove permission types map (#1182)

* [WIP] #1134 Case insensitive selectors for radioButton

* [WIP] #1134 Case insensitive selectors for TextBox

* [WIP] #1134 Case insensitive selectors for checkbox

* remove permissions map, allow users to use CDP Permissions

Signed-off-by: sriv <srikanth.ddit@gmail.com>

Co-authored-by: Gabriel Peixinho <gabriel.peixinho@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump sinon from 9.0.1 to 9.0.2

Bumps [sinon](https://github.com/sinonjs/sinon) from 9.0.1 to 9.0.2.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sinonjs/sinon/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Add time field (#1172)

* #612 add time field

selector that supports input type date, datetime-local, month, time, week

Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

* Bump lint-staged from 10.0.10 to 10.1.0

Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.0.10 to 10.1.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](lint-staged/lint-staged@v10.0.10...v10.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

* Bump documentation from 12.1.4 to 12.2.0

Bumps [documentation](https://github.com/documentationjs/documentation) from 12.1.4 to 12.2.0.
- [Release notes](https://github.com/documentationjs/documentation/releases)
- [Changelog](https://github.com/documentationjs/documentation/blob/master/CHANGELOG.md)
- [Commits](documentationjs/documentation@v12.1.4...v12.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

* #612  add tests and update timeField

Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

* Bump lint-staged from 10.1.0 to 10.1.1

Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.1.0 to 10.1.1.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](lint-staged/lint-staged@v10.1.0...v10.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

* Fix beforeunload API (#1157)

* Fixed beforeunload API. #1093

       - Fixed existing API contract to only accept callback.
       - Wait for beforeunload popup handler to finish before closing the browser.

* Fixed javascript popup FTs. #1093

* Force close browser after 5 second. #1093

* Fixed typo in warning message

* Update beforeunload API documentation #1093

Co-authored-by: Srikanth <srikanth.ddit@gmail.com>
Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

* Make coresponding wrappers to use value wrapper

Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

* #612 update timeField to use date object to select

Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

* #612 wait for navigation and highlight element on action

Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

* #612 add tests and fixes

Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

* Update timeField.js

Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

* #612 fix min max validation and add tests

Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

* #612 add more tests and fix min max validation

Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

* #612  update docs

Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

* #612 Fix docs and test description

Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Dharmendra Singh <dharmenn@thoughtworks.com>
Co-authored-by: Srikanth <srikanth.ddit@gmail.com>
Co-authored-by: Zabil Cheriya Maliackal <zabil@users.noreply.github.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Fix npm audit report (#1188)

This is the fix of npm audit fix command

Signed-off-by: Zabil Cheriya Maliackal <zabilcm@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump husky from 4.2.3 to 4.2.5

Bumps [husky](https://github.com/typicode/husky) from 4.2.3 to 4.2.5.
- [Release notes](https://github.com/typicode/husky/releases)
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](typicode/husky@v4.2.3...v4.2.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump lint-staged from 10.1.2 to 10.1.3

Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.1.2 to 10.1.3.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](lint-staged/lint-staged@v10.1.2...v10.1.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* fix element screenshot with proximity selectors (#1187)

* fix element screenshot with proximity selectors

use isElement instead of Object

Signed-off-by: Sai <saikrishna321@yahoo.com>

* update patch version

Signed-off-by: saikrishna321 <saikrishna321@yahoo.com>

Co-authored-by: Dharmendra Singh <dharmenn@thoughtworks.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Bump eslint-plugin-prettier from 3.1.2 to 3.1.3

Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* fix screenshot for specific element with index (#1194)

* fix screenshot for specific element with index

Signed-off-by: saikrishna321 <saikrishna321@yahoo.com>

* use isSelector fn from helpers

Signed-off-by: saikrishna321 <saikrishna321@yahoo.com>

Co-authored-by: Dharmendra Singh <dharmenn@thoughtworks.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* added first try of a RelativeSearchElement

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* reordered typings

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* added more options and interfaces based on feedback

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* Update chromium to revision 756035 (#1195)

* Update chromium to revision 756035

* Add browser dependencies

Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

* Install dependencies only for linux

Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

* Install browser dependencies for FT

Signed-off-by: NivedhaSenthil <nivedhasenthil@gmail.com>

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: NivedhaSenthil <nivedhasenthil@gmail.com>
Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* updated new docs link to use docs.taiko.dev/#

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

* added missing options from feedback

Signed-off-by: Sven Vowé <sven.vowe.ext@dwpbank.de>

Co-authored-by: Zabil Cheriya Maliackal <zabil@users.noreply.github.com>
Co-authored-by: Srikanth <srikanth.ddit@gmail.com>
Co-authored-by: Sven Vowé <sven.vowe.ext@dwpbank.de>
Co-authored-by: Ed Wilson <4864094+ed0906@users.noreply.github.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Nivedha <nivedhasenthil@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dharmendra Singh <dharmenn@thoughtworks.com>
Co-authored-by: Vinay Shankar Shukla <vinaysh@thoughtworks.com>
Co-authored-by: Sai Krishna <saikrishna321@yahoo.com>
Co-authored-by: gabrielpeixinho <gabriel.peixinho@gmail.com>
Co-authored-by: priyanupur <priya.seiji@gmail.com>
Co-authored-by: gaugebot <getgauge@outlook.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

text API should return only exact match
4 participants