Selenium: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 65: Line 65:
  docker exec -it opera cat /etc/hosts
  docker exec -it opera cat /etc/hosts
  http://localhost:4444/wd/hub
  http://localhost:4444/wd/hub
|-
|colspan="3"|
----
|-
|colspan="3"|
sudo mkdir -p /opt/cli
sudo wget -c wget https://bitbucket.org/ariya\
  /phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2  -P /opt/cli/
sudo tar xvjf /opt/cli/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C /opt/cli/
sudo rm  -rf  /opt/cli/phantomjs-2.1.1-linux-x86_64.tar.bz2
|-
|colspan="3"|
----
|-
|colspan="3"|
sudo update-alternatives --install /usr/local/bin/phantomjs phantomjs\
  /opt/cli/phantomjs-2.1.1-linux-x86_64/bin/phantomjs 1980
phantomjs --version
|-
|colspan="3"|
----
|-
|colspan="3"|
sudo ln -s /opt/cli/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/
phantomjs --version
|}
|}


Line 85: Line 115:
* [https://hub.docker.com/r/selenium/standalone-chrome Docker Image <code>selenium/standalone-chrome</code>]
* [https://hub.docker.com/r/selenium/standalone-chrome Docker Image <code>selenium/standalone-chrome</code>]
* [https://hub.docker.com/r/selenium/standalone-opera Docker Image <code>selenium/standalone-opera</code>]
* [https://hub.docker.com/r/selenium/standalone-opera Docker Image <code>selenium/standalone-opera</code>]
* [https://www.vultr.com/docs/how-to-install-phantomjs-on-ubuntu-16-04/ Install PhantomJS on Ubuntu 16.04]
* [https://bonigarcia.github.io/selenium-jupiter/#quick-reference Selenium Jupiter Quick Reference]
* [https://bonigarcia.github.io/selenium-jupiter/#quick-reference Selenium Jupiter Quick Reference]
* [https://github.com/bonigarcia/selenium-jupiter Selenium Jupiter]
* [https://github.com/bonigarcia/selenium-jupiter Selenium Jupiter]

Latest revision as of 16:51, 30 May 2022

docker run --detach \
--publish 4444:4444 \
--hostname firefox \
--name firefox \
--shm-size 2g \
selenium/standalone-firefox:80.0

--OR--

docker run --detach \
--publish 4444:4444 \
--hostname firefox \
--name firefox \
--volume /dev/shm:/dev/shm \
selenium/standalone-firefox:80.0
docker exec -it firefox cat /etc/hosts
http://localhost:4444/wd/hub
docker run --detach \
--publish 4444:4444 \
--hostname chrome \
--name chrome \
--shm-size 2g \
selenium/standalone-chrome:85.0

--OR--

docker run --detach \
--publish 4444:4444 \
--hostname chrome \
--name chrome \
--volume /dev/shm:/dev/shm \
selenium/standalone-chrome:85.0
docker exec -it chrome cat /etc/hosts
http://localhost:4444/wd/hub
docker run --detach \
--publish 4444:4444 \
--hostname opera \
--name opera \
--shm-size 2g \
selenium/standalone-opera:71.0

--OR--

docker run --detach \
--publish 4444:4444 \
--hostname opera \
--name opera \
--volume /dev/shm:/dev/shm \
selenium/standalone-opera:71.0
docker exec -it opera cat /etc/hosts
http://localhost:4444/wd/hub

sudo mkdir -p /opt/cli
sudo wget -c wget https://bitbucket.org/ariya\
 /phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2  -P /opt/cli/

sudo tar xvjf /opt/cli/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C /opt/cli/
sudo rm  -rf  /opt/cli/phantomjs-2.1.1-linux-x86_64.tar.bz2

sudo update-alternatives --install /usr/local/bin/phantomjs phantomjs\
 /opt/cli/phantomjs-2.1.1-linux-x86_64/bin/phantomjs 1980

phantomjs --version

sudo ln -s /opt/cli/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/

phantomjs --version

References