diff --git a/_guides/waiting.md b/_guides/waiting.md index 8d5807ad..9d72945a 100644 --- a/_guides/waiting.md +++ b/_guides/waiting.md @@ -67,7 +67,7 @@ condition needs to be met. `#wait_until` will execute the block until a truthy r {% highlight ruby %} browser.wait_until { |b| b.title == "Foo" } -browser.window(title: "Foo")wait_while(&:exists?) +browser.window(title: "Foo").wait_while(&:exists?) browser.alert.wait_until { |a| a.text == "foo" } browser.button(name: 'submit').wait_until(&:enabled?) {% endhighlight %}