From ea1228ecb2fbcbb63aa623edf38fe8d941bb433f Mon Sep 17 00:00:00 2001 From: Andrew Krug Date: Sun, 4 Dec 2016 21:29:05 -0500 Subject: [PATCH 1/2] fixing waffle badge and adding instructions for windows --- README.md | 16 +++++++++++++++- windows_install.bat | 9 +++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 windows_install.bat diff --git a/README.md b/README.md index 5c283ed..c6fc534 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Join the chat at https://gitter.im/lazycoderio/sample-java-jenkins](https://badges.gitter.im/lazycoderio/sample-java-jenkins.svg)](https://gitter.im/lazycoderio/sample-java-jenkins?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![codecov](https://codecov.io/gh/lazycoderio/Basic-Selenium-Java/branch/master/graph/badge.svg)](https://codecov.io/gh/lazycoderio/Basic-Selenium-Java) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/afdb9236cb2442faaa513c2db4114396)](https://www.codacy.com/app/andrew-m-krug/Basic-Selenium-Java?utm_source=github.com&utm_medium=referral&utm_content=lazycoderio/Basic-Selenium-Java&utm_campaign=Badge_Grade) [![Dependency Status](https://www.versioneye.com/user/projects/583b58fd4ef164003ff45522/badge.svg?style=flat-square)](https://www.versioneye.com/user/projects/583b58fd4ef164003ff45522) [![Build Status](https://travis-ci.org/lazycoderio/Basic-Selenium-Java.svg?branch=master)](https://travis-ci.org/lazycoderio/Basic-Selenium-Java) +[![Join the chat at https://gitter.im/lazycoderio/sample-java-jenkins](https://badges.gitter.im/lazycoderio/sample-java-jenkins.svg)](https://gitter.im/lazycoderio/sample-java-jenkins?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![codecov](https://codecov.io/gh/lazycoderio/Basic-Selenium-Java/branch/master/graph/badge.svg)](https://codecov.io/gh/lazycoderio/Basic-Selenium-Java) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/afdb9236cb2442faaa513c2db4114396)](https://www.codacy.com/app/andrew-m-krug/Basic-Selenium-Java?utm_source=github.com&utm_medium=referral&utm_content=lazycoderio/Basic-Selenium-Java&utm_campaign=Badge_Grade) [![Dependency Status](https://www.versioneye.com/user/projects/583b58fd4ef164003ff45522/badge.svg?style=flat-square)](https://www.versioneye.com/user/projects/583b58fd4ef164003ff45522) [![Build Status](https://travis-ci.org/lazycoderio/Basic-Selenium-Java.svg?branch=master)](https://travis-ci.org/lazycoderio/Basic-Selenium-Java) [![Stories in Ready](https://badge.waffle.io/lazycoderio/Basic-Selenium-Java.png?label=ready&title=Ready)](https://waffle.io/lazycoderio/Basic-Selenium-Java) # Using this Project This project is using the latest Selenium Bindings. @@ -15,6 +15,20 @@ Run these commands depending on your base OS. 4. Install Maven `brew install maven` 5. Run `./mac_install_browsers.sh` +### Windows + +> This is currently untested +1. Right-Click on `windows_install.bat` and select `Run as Administrator` + +#### Longer Instructions + +1. The script should install Chocolatey the Windows package manager. +2. Install latest versions of + a. Firefox + b. Chrome + c. PhantomJS +3. Selenium drivers for the above and the Edgedriver + ## Running Tests The following commands are instructions on how to run the tests diff --git a/windows_install.bat b/windows_install.bat new file mode 100644 index 0000000..2ee7df3 --- /dev/null +++ b/windows_install.bat @@ -0,0 +1,9 @@ +@echo off +title Setting up your machine for Selenium Testing! + +@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" + +choco install firefox +choco install googlechrome +choco install phantomjs +choco install selenium-all-drivers From 34295b1b1f062ba403818cb5f7044a01c3551293 Mon Sep 17 00:00:00 2001 From: Andrew Krug Date: Sun, 4 Dec 2016 21:30:45 -0500 Subject: [PATCH 2/2] fixes #9 --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index c6fc534..c9b9f71 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,11 @@ Run these commands depending on your base OS. ### Windows > This is currently untested + 1. Right-Click on `windows_install.bat` and select `Run as Administrator` +You may still need to install the Java JDK and Maven as well + #### Longer Instructions 1. The script should install Chocolatey the Windows package manager.