Web Driver Navigation Commands in Selenium – Python Selenium In Hindi

Python Selenium

Web Driver Navigation Commands in SeleniumPython Selenium In Hindis Post Me Ham Selenium Webdriver Navigation Commands Ko Dekhne Wale Hai Or Inke Example Bhi Dekhte Hai |

Yadi Aapne  HTML Full Course  And CSS Full Course And Python Full Course And PHP Full Course Nhi Read Kiya Hai To Aap Vah Bhi Read Kar Sakte Hai |

WebDriver Navigation Commands In Hindi

Navigation Commands Ka Matlab Hota Hai, Back And Forword , Agar Ise Ham Simple Way Me Kahe To Iska Matlab Hai , Aage Ya Piche Karna |

Man Ke Chaliye Hamne Pahle Google.com Open Kiya And Fir Uske Bad MasterPrograming.com Open Kiya, Tab Google.com Par Wapas Jane Ke Liye Navigation Commands In Python Ka Istemal Karenge |

Also Read – How To Run Tests On Chrome

Aap Upper Image Me Navigation Ko Dekh Sakte Hai, Ab Aap Samanjh Gaye Honge Ki Navigation Commands Kiya Hai , Ab Ham Ise Ek Program Ki Help Se Ise Understand Karne Wale Hai |

Navigation Commands:

  • back()
  • forward()

Ab Ham Ek Ek Karke In Commands Ko Check Karne Wale Hai, And Inke Examples Ke Sath Inke Output Bhi Dekhne Wale Hai |

Navigation Ko Back Karne ke Liye back() And Navigation Ko Aage Karne Ke Liye forword() Commands Ka Istemal Kiya Jata Hai |

Example:

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
driver = webdriver.Chrome(executable_path= "D:\\chromedriver_win32\\chromedriver.exe")  #create object

# get 
driver.get("https://www.google.com/") 
print(driver.title)
time.sleep(5)
driver.get("https://masterprograming.com/") 
print(driver.title)
driver.back()
print(driver.title)
driver.forward()
driver.quit()

Output:

Google
Home » Master Programming
Google

Aap Output Ko Dekh Sakte Hai, Sabse Pahle Ham Google Par Gaye Or Yaha Ja Kar Google Ka Title Capture Kiya Uske Bad Masterprograming Ko Gaye Waha Ja Kar MasterPrograming Ka Title Capture Kiya Fir back() Ko Run Karke Fir Google Par Aagye Or Fir Hamne Google Ka Title Ko Capture Karke Print Kara Diya |

Also Read:

Friends Mujhe Umeed Hai Ki Aapko WebDriver Navigation Commands Ke Bare Mai 100% Jankari Ho Gayi Hogi | Agar Aapko Learn Karne Main Dikkat Aa Rahi Hai To Aap Mere Se Contact Kar Sakte Hai |

Leave a Reply

Your email address will not be published. Required fields are marked *