-
Notifications
You must be signed in to change notification settings - Fork 453
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
Multi line assertion not working in Node 14 #2190
Comments
Can you share the html snippet of the text that you are asserting please? |
Removing screenshot for security reasons |
screenshot does not help much. If you can share a sample html where this assertion is broken, I can try investigating this. |
Please find the sample html for investigation |
Hi @sriv , I have sent you the sample html a month ago . Please let me know if that helped. |
@advait012 it will be much easier if you share the example as a GitHub repo so that someone can comment on the source code, clone and checkout etc. |
@zabil , Due to security reason I cannot share the source code or Github repo of my project . Can't we leverage the sample html I have sent you and test the mutli assertion over it? |
You don't need to share the GitHub repo for your project. Please create a sample GitHub repository with a taiko script only replicating this issue so that someone can
There are better chances of getting help if it's easier to replicate. |
the sample provided is helpful, @advait012 you have a typo.. the html has this:
whereas you are asserting on Changing it to match the html's spelling works for me. |
What node version you using @sriv ? |
I tested this on Windows 10. |
Hi @sriv , Don't know why it is still failing on my end , I have used the following step to verify
|
What error do you see? Your code works fine for me with a new gauge+taiko project, and using the sample html you've provided above. Note that you have some redundant |
Describe the bug
When we updated node version from 10 to 14 in our project. Assertion for existence of text is not working properly.
await text("text content").exists() does not seems to be working fine
As you can see above , the text in the page is "Your organisation already has a paid account". which is written in two lines . When I put assertion as :-
await text("Your organisation already has a paid account").exists() , It is failing and giving me error as "Error Message: AssertionError: Element with text Your organization already has a paid account doesn't exist"
When I replace the line with "Your organisation already has" during assertion. It is able to locate and pass the existence.So looks like multiline assertion is not working for node 14
Note : When I am running the same test case in Node 10. It is working fine
Versions:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: