Forum Discussion
Notebook Environment, Selenium installation
- 2 years ago
Hi Thomas,
I have been dealing with selenium installation in a notebook environment without success. In my case, I'm trying to scrap content from a website that involves authentication so I cannot use the provided solution of using Beautifulsoup. So I have to stick to selenium.
In that direction, I managed to provide the chromedriver, and make it executable but its execution failed due to the security constraints of the environment. So I found the following solution:
SOLUTION
- Using a remote selenium service via LambdaTest
# Sample code snippet:driver = webdriver.Remote(command_executor=f'https://{lambda_test_username}:{lambda_test_access_key}@hub.lambdatest.com/wd/hub',options=options)I hope this helps everyone whose solution has to be approached with selenium.Aminael
Hi Thomas,
I have been dealing with selenium installation in a notebook environment without success. In my case, I'm trying to scrap content from a website that involves authentication so I cannot use the provided solution of using Beautifulsoup. So I have to stick to selenium.
In that direction, I managed to provide the chromedriver, and make it executable but its execution failed due to the security constraints of the environment. So I found the following solution:
SOLUTION
- Using a remote selenium service via LambdaTest
- ThomasDealFind2 years agoRegular Visitor
Hello Aminael,
thank you for your response. It confort me with all the test I did.
My last resort was to try a report server and I am glad that you manage to did it.
I will try it myself anbd hope it work. thank you for the sample code.
It interesting to know that we can't handle authentication with Beautifulsoup. I am still a rookie in this field so at least I won't try this without Selenium.
Regards,
Thomas
- Anonymous2 years agoNot applicable
I'm hoping to do something similar but at present my 'options' varaible is coming from this import:
from selenium.webdriver.chrome.options import Optionswhich of course, fabric doesnt like.What are you using for options = options?