Python Selenium Web Driver Navigation Command

This is our third article in Python Selenium, in this article we are going to learn about Selenium Web Driver Navigation Command in Python. so using Selenium Navigation Command we are able to open a web page URL, navigate to other web page by clicking any element, Back, Forward and Refresh web page using browser’s history. also you can read the previous articles about Python Selenium in the below links.

 

 

Python Selenium Articles

1: Python Selenium Introduction & Installation 

2: Python Selenium Web Elements Introduction

 

 

 

So now this is the complete code for Python Selenium Web Driver Navigation Command

 

 

 

In this code we have opened a browser, basically we are using Chrome browser, but you can use another browsers also. we have already talked that how you can add Python Selenium Web Drivers for Chrome And FireFox browsers Python Selenium Introduction & Installation .

 

 

 

So now we are going to open Google search page using this code

 

 

 

In here we are going to find the search text input name, because we want to interact with google search text field, basically after opening of the google website, we want to write Python keyword and search that keyword. you can read the article about web elements in python selenium Python Selenium Web Elements Introduction.

 

 

 

You can use this code for navigating back, forward and refreshing.

 

 

 

 

 

Also you can watch the complete video for this article

 

Subscribe and Get Free Video Courses & Articles in your Email

 

Share via
Copy link
Powered by Social Snap
×