Navigate to a URL
The first and most important command you need is
I.goTo to open the page you want to test.
Previously, we navigated to
https://www.github.com, like so:
I.goTo("https://www.github.com")I.click("Sign in") I.fill("Email", "firstname.lastname@example.org") I.fill("Password", "supersecretpassword") I.click("Sign in") I.see("Incorrect username or password.")
Sometimes, we don't want to write the full url all the time, you can navigate to paths relatively like so:
When you are ready, click Next below.