seralexger / selenium-capturetraffic Goto Github PK
View Code? Open in Web Editor NEWSimple class to capture http and https traffic using Selenium and Browsermob proxy
Simple class to capture http and https traffic using Selenium and Browsermob proxy
Hi there,
I tried and the script failed.
[root@shell selenium-capturetraffic]# python3.6 capture_example.py
Traceback (most recent call last):
File "capture_example.py", line 15, in
sniffer = CaptureTraffic()
File "/root/xpto/selenium-capturetraffic/capturetraffic.py", line 38, in init
self.start_session()
File "/root/xpto/selenium-capturetraffic/capturetraffic.py", line 79, in start_session
self.start_driver()
File "/root/xpto/selenium-capturetraffic/capturetraffic.py", line 69, in start_driver
self.driver = webdriver.Firefox(options=options, firefox_profile=profile, executable_path='utils/geckodriver')
File "/usr/lib/python3.6/site-packages/selenium/webdriver/firefox/webdriver.py", line 167, in init
keep_alive=True)
File "/usr/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 156, in init
self.start_session(capabilities, browser_profile)
File "/usr/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 251, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 320, in execute
self.error_handler.check_response(response)
File "/usr/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities
[root@shell selenium-capturetraffic]
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.