-
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);
| <!-- https://mvnrepository.com/artifact/org.reflections/reflections --> | |
| <dependency> | |
| <groupId>org.reflections</groupId> | |
| <artifactId>reflections</artifactId> | |
| <version>0.9.12</version> | |
| </dependency> |
| try { | |
| Class.forName(driver); | |
| Connection con = DriverManager.getConnection(url + db, user, pass); | |
| Statement stmt = con.createStatement(); | |
| ResultSet rs = stmt.executeQuery(query); | |
| ResultSetMetaData rsmd = rs.getMetaData(); | |
| List<String> columns = new ArrayList<String>(rsmd.getColumnCount()); | |
| for(int i = 1; i <= rsmd.getColumnCount(); i++){ | |
| columns.add(rsmd.getColumnName(i)); | |
| } |
| ############################## | |
| ## Java | |
| ############################## | |
| .mtj.tmp/ | |
| *.class | |
| *.jar | |
| *.war | |
| *.ear | |
| *.nar | |
| hs_err_pid* |