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
When a user using closeTab api with a page title then taiko should intelligently figures out the tab as per the title and close it. If taiko did not get the valid page title to close then it should tell the user that "provided page title does not exists" or "kindly enter the valid page title "
Actual behavior
For an example "Google.com" correct page tile is "Google".
If we perform clostTab with the wrong title then it shows the below user message:
> closeTab("google")
✔ Closed all tabs with URL google
Note: There is no page title in the current active browser with the title 'google'
In taiko document section there is no example of closeTab with the page title.
Steps to reproduce
> openBrowser()
> goto("Google.com")
> title()
value: 'Google'
> closeTab("google")
✔ Closed all tabs with URL google
Tested the above issue,
currently If taiko did not get the valid page title to closeTab then its throwing ✘ Error: No target with given URL/Title found., run .trace for more info. which is a valid user message to rectify the url/page title.
and closeTab with page title example has been added to taiko document section.
Hence this issue has been verified and found fixed.
Expected behavior
When a user using
closeTab
api with a page title then taiko should intelligently figures out the tab as per the title and close it. If taiko did not get the valid page title to close then it should tell the user that "providedpage title
does not exists" or "kindly enter the validpage title
"Actual behavior
For an example "Google.com" correct page tile is "Google".
If we perform
clostTab
with the wrong title then it shows the below user message:Note: There is no page title in the current active browser with the title 'google'
In taiko document section there is no example of
closeTab
with thepage title
.Steps to reproduce
Versions
The text was updated successfully, but these errors were encountered: