Closed Maxianrodrigues closed 1 year ago
hey @Maxianrodrigues you can try this for your if else conditional in your test
let numOfElements = await I.grabNumberOfVisibleElements('p');
if (numOfElements > 0) {
/// do something
} else {
/// do something else
}
What are you trying to achieve?
I need to create a condition to perform a procedure if an alert appears and if it doesn't, follow the test
What do you get instead?
The test breaks when it enters the if
Details