In Framework self.driver.quit is nOT working for Fire fox | Selenium Python Forum
K
kaukab Mushtaq Posted on 11/06/2020

Following code is workingwith Chrome , but NOT in Firefox, it goes to else condition , which means look browser == NULL

 

def QUIT(self):
    if(self.driver!=NULL):
    print("CLOSING BROWSER :")
    time.sleep(2)
     self.driver.quit()
     print("BROWSER IS CLOSED :")

#else:
#print("CAN NOT CLOSE BROWSER :")


S
Sejal Replied on 11/06/2020

Hey, 

May you please share your project so that the issue can be checked.


K
kaukab Mushtaq Replied on 17/06/2020

Its Model 24 Part 15. I think code is very simple, and is working for CHROME , so no need to share project, for small thing

 


Related Posts