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

Outdated documentation for 'there is element * with regex' #196

Open
GrzegorzMatuszakTSH opened this issue Nov 20, 2019 · 0 comments
Open

Comments

@GrzegorzMatuszakTSH
Copy link

Hi!
I wanted to write test using regex.
When I looked in doc I found:

there is element ":elementName" with regex ":matcher"

https://thesoftwarehouse.github.io/Kakunin/docs/steps-elements#there-is-no-element-elementname-with-regex-matcher

Unfortunately this scenario doesn't work:

   ? Then there is element "body" with regex "<matcher>"
       Undefined. Implement with the following snippet:

         Then('there is element {string} with regex {string}', function (string, string2) {
           // Write code here that turns the phrase above into concrete actions
           return 'pending';
         });

Probably this is the correct version:

there is element "([^"]*)" with "([^"]*)" regex

Please update documentation/code :)

Version: 3.0.

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

No branches or pull requests

1 participant