Python Selenium In Hindi – How to Run Tests on Chrome

Python Selenium

Python Selenium In HindiHow to Run Tests on Chrome – Is Post Main Ham Chrome Me Ek Website Ko Open Karne Wale 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 |

How to Run Tests on Chrome in Hindi

Is Post Me Ek Simple Code Ko Write Karke MasterPrograming.com Website Ko Open Karne Wale Hai And Iske Liye Ham Ek Automate Code Likhenge Or Understand Karenge Ki Ye Code Kaise kaam Kar Raha Hai |

Example:

from selenium import webdriver
driver = webdriver.Chrome(executable_path= "D:\\chromedriver_win32\\chromedriver.exe")
driver.get("https://masterprograming.com/")

Yaha Par Hamne Sabse Pahle Line 1 Par selenium me se webdriver import kiya hai And Line 2 Me Hamne Ek Variable driver And Us Variable me Hamne Chrome Driver Ka Path Diya Hai And Usme Ek Object driver banaya Hai. Line 3 me driver.get() Me Ek Website Ka Link Diya Hai |

Output:

Aap Upper Dekh Sakte Hai Ki Hamne Upper Diye Code Ko Jaise Hi Run Kiya , Uske Bad Automatically Chrome Open Ho Kar driver.get(“masterprograming.com”) ko Open Kar Diya Hai |

Also Read:

Friends Mujhe Umeed Hai Ki Aapko Run Tests on Chrome 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 *