Course Content
Introduction to QA Automation Testing
Introduction to QA Automation Testing
Selenium - Page Navigation
Summary
Here we have some code from the previous chapter.
As a quick recall, this code configures the browser with the following options and launches a new instance of it. However it doesn't go to any specific URL.
There are two different ways of navigating to a URL. The first method is by using the get
method, which simply searches for the specified URL and displays the page.
The other method is to use the navigate
method.
The navigate
method provides a few more options as well. It lets us go to the previous and the next pages using next
and back
methods.
Moreover, it also provides a method called refresh
for refreshing the page.
The refresh() method can be fairly useful in the context of testing.
Thanks for your feedback!