Open Abhishek09yadav opened 4 months ago
AttributeError Traceback (most recent call last) Cell In[33], line 3 1 profile = webdriver.FirefoxProfile("C:\Users\monuy\AppData\Roaming\Mozilla\Firefox\Profiles\vap17bg9.naukri") 2 #Add your Root directory path ----> 3 driver = webdriver.Firefox(profile) 4 firstname='Abhishek' #Add your LastNAme 5 lastname='Yadav' #Add your FirstName
File C:\Python312\Lib\site-packages\selenium\webdriver\firefox\webdriver.py:60, in WebDriver.init(self, options, service, keep_alive) 57 options = options if options else Options() 59 finder = DriverFinder(self.service, options) ---> 60 if finder.get_browser_path(): 61 options.binary_location = finder.get_browser_path() 62 options.browser_version = None
File C:\Python312\Lib\site-packages\selenium\webdriver\common\driver_finder.py:47, in DriverFinder.get_browser_path(self) 46 def get_browser_path(self) -> str: ---> 47 return self._binary_paths()["browser_path"]
File C:\Python312\Lib\site-packages\selenium\webdriver\common\driver_finder.py:56, in DriverFinder._binary_paths(self) 53 if self._paths["driver_path"]: 54 return self._paths ---> 56 browser = self._options.capabilities["browserName"] 57 try: 58 path = self._service.path
AttributeError: 'FirefoxProfile' object has no attribute 'capabilities'
AttributeError Traceback (most recent call last) Cell In[33], line 3 1 profile = webdriver.FirefoxProfile("C:\Users\monuy\AppData\Roaming\Mozilla\Firefox\Profiles\vap17bg9.naukri") 2 #Add your Root directory path ----> 3 driver = webdriver.Firefox(profile) 4 firstname='Abhishek' #Add your LastNAme 5 lastname='Yadav' #Add your FirstName
File C:\Python312\Lib\site-packages\selenium\webdriver\firefox\webdriver.py:60, in WebDriver.init(self, options, service, keep_alive) 57 options = options if options else Options() 59 finder = DriverFinder(self.service, options) ---> 60 if finder.get_browser_path(): 61 options.binary_location = finder.get_browser_path() 62 options.browser_version = None
File C:\Python312\Lib\site-packages\selenium\webdriver\common\driver_finder.py:47, in DriverFinder.get_browser_path(self) 46 def get_browser_path(self) -> str: ---> 47 return self._binary_paths()["browser_path"]
AttributeError Traceback (most recent call last) Cell In[33], line 3 1 profile = webdriver.FirefoxProfile("C:\Users\monuy\AppData\Roaming\Mozilla\Firefox\Profiles\vap17bg9.naukri") 2 #Add your Root directory path ----> 3 driver = webdriver.Firefox(profile) 4 firstname='Abhishek' #Add your LastNAme 5 lastname='Yadav' #Add your FirstName
File C:\Python312\Lib\site-packages\selenium\webdriver\firefox\webdriver.py:60, in WebDriver.init(self, options, service, keep_alive) 57 options = options if options else Options() 59 finder = DriverFinder(self.service, options) ---> 60 if finder.get_browser_path(): 61 options.binary_location = finder.get_browser_path() 62 options.browser_version = None
File C:\Python312\Lib\site-packages\selenium\webdriver\common\driver_finder.py:47, in DriverFinder.get_browser_path(self) 46 def get_browser_path(self) -> str: ---> 47 return self._binary_paths()["browser_path"]
File C:\Python312\Lib\site-packages\selenium\webdriver\common\driver_finder.py:56, in DriverFinder._binary_paths(self) 53 if self._paths["driver_path"]: 54 return self._paths ---> 56 browser = self._options.capabilities["browserName"] 57 try: 58 path = self._service.path
AttributeError: 'FirefoxProfile' object has no attribute 'capabilities'