Using the .url() Method to Navigate
The most straightforward way to navigate to a specific URL with WebdriverIO is by using the
.url() method available to the browser object. This method takes a single argument: the URL to navigate to. When the method is called, WebdriverIO will instruct the browser to navigate to the specified URL, just as if a user had manually entered the URL in the browser's address bar.
In this code snippet, we use the
.url() method to navigate to the Wikipedia Language Selection Page.
Here is an example test that uses the above code snippet.
Leave a reply
Your email address will not be published. Required fields are marked*