lundi 5 septembre 2016

Geb: How to check title containing another text

I am using Spock and Geb for test automation. I need to check if the title contains a specific test as a sub-string. I used below:

static at = {title.contains("発 片道航空券の航空券検索結果 ")}

But contains(..) method is shown as deprecated? How can I do this checking?

Aucun commentaire:

Enregistrer un commentaire