Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working for me please help #2

Open
Abhishek09yadav opened this issue May 15, 2024 · 0 comments
Open

not working for me please help #2

Abhishek09yadav opened this issue May 15, 2024 · 0 comments

Comments

@Abhishek09yadav
Copy link


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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant