Adding local plugin/ Changing firefox to chrome in client script #18
-
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? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi Nikhilesh, To use Google Chrome + ChromeDriverYou'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 To use a Chrome extensionYou'll need to download the extension as a driver.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 Hope this helps. |
Beta Was this translation helpful? Give feedback.
Hi Nikhilesh,
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:
dane/docker/client/Dockerfile
Lines 22 to 36 in 95b1703