Simple Test With Descendant SelectorsΒΆ

# examples/test/google-search-query-literal.yml
config:
  browser: chrome
  url: https://www.google.com

"verify Google is open":
  assertions:
    - $page.url is "https://www.google.com"
    - $page.title is "Google"

"query 'example'":
  actions:
    - set $"form" >> $"[name=q]" to "example"
    - click $"form" >> $"input[type=submit]"

  assertions:
    - $page.title is "example - Google Search"