Comments (1)
Discussed in #18
Originally posted by Nikhilesh212 July 16, 2021
Hey, this is Nikhilesh from Viasat India. We are working on developing a video QoE for our network. We are using DANE to emulate Viasat like network, for that we need to integrate a chrome plugin with DANE, is there any way you could help us?
To use Google Chrome + ChromeDriver
You'll need to change the Docker image to install these rather than Firefox+Geckodriver. We'll need to change these lines:
Lines 22 to 36 in 95b1703
Here's an easy way of doing so:
# Install Google Chrome RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \ apt-get update && \ apt-get install ./google-chrome-stable_current_amd64.deb # Install ChromeDriver RUN wget https://chromedriver.storage.googleapis.com/$(curl https://chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip && \ unzip chromedriver_linux64.zip -d /usr/local/bin/(don't forget to run
make build
and set the.system.use_local_images
field totrue
in the config file so that the new Docker image will be used!)To use a Chrome extension
You'll need to download the extension as a
.crx
file and drop it in the same directory as your selenium script. Then in the script you can usedriver.add_extension(<path to extension .crx file>)to load in the extension.
We did this over at dane-tool/starter-scripts for a Firefox addon -- the addon file is in extensions/ and the streaming/endless-youtube.py script gets the absolute path to the addon then installs it. If you place the extension in the same directory then you can avoid the need for
.parent
stuff.Hope this helps.
Originally posted by @parkeraddison in #18 (comment)
from dane.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dane.