Ranjeet Maurya
Ranjeet Maurya

Reputation: 1

Cucumber Not able to see the element generated by javascript

I am testing an application using cucumber with capybara.

The page which I am testing has one textfield and whenever we change value textfield, the update link comes with jQuery or javascript.

I am changing the value in textbox using capybara through cucumber step. I next step when I am searching for that link it is saying that no link with id, text and name.

Upvotes: 0

Views: 477

Answers (1)

Jon M
Jon M

Reputation: 11705

You will need to add the @javascript tag to the scenario, to make it run in a browser which supports Javascript. Otherwise the default behaviour is to run without Javascript support, so the script which adds the link to the page will never get executed.

Upvotes: 1

Related Questions