Вопрос

After getting geb to click a login button, I want to wait for the next page to load. The next page contains the following:

<th class="header">
   <div align="center">Welcome</div>
</th>

There isn't really any other content that allows me to test the page has loaded.

What should my waitFor expression look like?

$("input", value:"Login").click() // login action

// now wait for next page to load:
waitFor{ /* ?? */ }  // <-- how to locate the 'Welcome' text in /th/div/

Many thanks!

Это было полезно?

Решение

I suppose it should be waitFor{ $("div", text: "Welcome") }

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top