-
Open a browser
# start an instance of firefox with selenium-webdriver $browser_type = 'firefox' $host = 'http://localhost:4444/wd/hub'
$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => $browser_type);
| /* | |
| * To change this template, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package org.secondstack.db; | |
| import java.sql.Connection; | |
| import java.sql.DriverManager; | |
| import java.sql.SQLException; |
| /** | |
| * Convert the ResultSet to a List of Maps, where each Map represents a row with columnNames and columValues | |
| * @param rs | |
| * @return | |
| * @throws SQLException | |
| */ | |
| private List<Map<String, Object>> resultSetToList(ResultSet rs) throws SQLException { | |
| ResultSetMetaData md = rs.getMetaData(); | |
| int columns = md.getColumnCount(); | |
| List<Map<String, Object>> rows = new ArrayList<Map<String, Object>>(); |
| ############################## | |
| ## Java | |
| ############################## | |
| .mtj.tmp/ | |
| *.class | |
| *.jar | |
| *.war | |
| *.ear | |
| *.nar | |
| hs_err_pid* |
| # The folders below will be cached between builds | |
| # http://docs.gitlab.com/ce/ci/yaml/README.html#cache | |
| cache: | |
| paths: | |
| - node_modules/ | |
| - _site # or other arbitrary directory | |
| stages: | |
| - build | |
| - test |
make sure you are NOT installing the latest version. Install v7 here: https://developer.apple.com/download/more/
make sure the correct simulators are downloaded at xcode -> preferences -> components
NOTE: If you don't have the correct simulators downloaded then you will get the error: "Could not find a device to launch..."
| image: node:6.9.4 | |
| pipelines: | |
| branches: | |
| master: | |
| - step: | |
| script: | |
| - apt-get update; apt-get install -y gettext-base; | |
| - echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' > /etc/apt/sources.list.d/chrome.list | |
| - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - | |
| - set -x && apt-get update && apt-get install -y xvfb google-chrome-stable |