How to check page title in Selenide using shouldHave assertion?
In 'Selenium' it will be the next code:
Assert.assertEquals(title(), "Your page title");
I didn't find any code samples in documentation, but the next code solved my problem:
$("title").shouldHave(attribute("text", "Your page title"));
Use Selenide.title() method to get page title text
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With