Your Privacy
We use cookies to give you a better experience in Alchemy Help Center
You can learn more about what kind of cookies we use, why, and how from our Privacy Policy. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings in our cookie banner to change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer. For more details, check out our Privacy Policy link below.
View Privacy Policy
Strictly Necessary Cookies
These cookies are necessary for the website to function and cannot be switched off in our systems, but do not store any person information. They are usually set in response to your actions that triggers a request for services, such as setting your privacy preferences, logging in or filling forms. You can change your browser settings to alert you about these cookies, but some parts of the Website may not work.
View Cookies
I have recorded a step to verify that an element is present on the webpage, but I want to validate the opposite (negative) case instead. How can I invert the step result to check if the element is not present?
0 Votes
TheBugScout posted 4 months ago Best Answer
Alchemy provides the 'Invert Result' checkbox to invert the result of the step. You can simply do this by clicking the EYE icon on the step and then selecting the Invert Result checkbox.
Doing so will invert the result of the step, meaning if you want to verify that an element is not visible, you can record a test to verify that it is visible and then invert the result of that step by checking the Invert Result checkbox, which will verify that the element is not visible.
Thanks!
0 Votes
1 Comments
TheBugScout posted 4 months ago Answer
Alchemy provides the 'Invert Result' checkbox to invert the result of the step. You can simply do this by clicking the EYE icon on the step and then selecting the Invert Result checkbox.
Doing so will invert the result of the step, meaning if you want to verify that an element is not visible, you can record a test to verify that it is visible and then invert the result of that step by checking the Invert Result checkbox, which will verify that the element is not visible.
Thanks!
0 Votes
Login or Sign up to post a comment