I'm trying to check if element exists on the page or not with isExisting() webdriverio method, but it doesnt return anything when element is not exists and works properly and returns true if it does with the following code:
How can I write it properly? Webdriverio docs says that isExisting() method is sync and returning a promise. Sorry for creating an issue but I cannot find any answers or workarounds for this.
I'm trying to check if element exists on the page or not with
isExisting()
webdriverio method, but it doesnt return anything when element is not exists and works properly and returns true if it does with the following code:How can I write it properly? Webdriverio docs says that
isExisting()
method is sync and returning a promise. Sorry for creating an issue but I cannot find any answers or workarounds for this.