Browser
The Browser class is part of the AppTest library, and is provided as an argument to app tests. The passed instance can be used to read data from and set it in the current browser document, and to make it navigate to other pages.
Public API
- navigateTo(url)
navigate the browser to a new page (should be used last in a test).
- clickLink(link)
navigate the browser to a new page, using a link's href (link is a DOM element).
- getElementsByText(text)
return all elements that have 'text' (and only 'text') as their text content.
- getText(el)
return the flattened text of a DOM element.
