Hi All,
I need your help on the below scenario. Any help will be highly
appreciated. I am using cucumber with capybara and selenium.
In my scenario I want to verify some text displayed in the application.
The text to be verified is “Passwords can contain only letters [a–z],
numbers [0–9], periods [.], underscores [] or hyphens [-]." Please try
again. But when I ran the test it gave me an error.
I tried again by passing “Passwords can contain only letters [a”
In this scenario it ran successfully but after that when I append “-” to
it and passed “Passwords can contain only letters [a-” then it again
failed saying it cannot find the text specified.
When I saw the console window for the returned results it displayed the
text returned from the application as "Passwords can contain only
letters [a\u2013z], numbers [0\u20139], periods [.], underscores [] or
hyphens [-]. Please try again.”
Please help me on how to pass this message from my keyword file. Please
let me know if some information is required from my side.
Thanks in Advance,
Namit