#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">
| for DOTFILE in `find ~/code/dotfiles/aliases` | |
| do | |
| [ -f $DOTFILE ] && source $DOTFILE | |
| done |
#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">
| // XPATH | |
| driver.findElement(By.xpath("//*[contains(text(),'Component')]/../../tr[3]/td[2]/a")); | |
| driver.findElement(By.cssSelector("td>input[type='submit']")); | |
| driver.findElement(By.xpath("//*[@type='submit']/../../td[2]/input")); |
| { | |
| "color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme", | |
| "font_size": 10.2, | |
| "tab_size":2, | |
| "translate_tabs_to_spaces": false, | |
| "highlight_line": true, | |
| "line_padding_bottom": 1, | |
| "line_padding_top": 1, | |
| "fade_fold_buttons": false, | |
| "bold_folder_labels": true |
| #output 20150423154623 | |
| timestamp=Time.now.inspect[0..18].tr("-: ","") | |
| puts timestamp |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!--suppress ALL --> | |
| <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>Project</groupId> | |
| <artifactId>Project</artifactId> |
| export LC_ALL=en_US.UTF-8 | |
| export LANG=en_US.UTF-8 |
| String fileName="/data/files_to_upload_text.txt"; | |
| File file = new File ( ResourceManager.class.getResource(fileName).toURI() ); | |
| String absoluteFilePath = file.getAbsolutePath(); | |
| fileUploadButton.sendKeys(absoluteFilePath); |