This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return String.format( | |
"[qa-id='%s[%d]'] [qa-class~='%s']," + | |
"[qa-id='%s[%d]'] [data-qa-class~='%s']," + | |
"[data-qa-id='%s[%d]'] [qa-class~='%s']," + | |
"[data-qa-id='%s[%d]'] [data-qa-class~='%s']," + | |
"[qa-class~='%s']:nth-of-type(%d) [qa-class~='%s']," + | |
"[qa-class~='%s']:nth-of-type(%d) [data-qa-class~='%s']," + | |
"[data-qa-class~='%s']:nth-of-type(%d) [qa-class~='%s']," + | |
"[data-qa-class~='%s']:nth-of-type(%d) [data-qa-class~='%s']," + | |
"[qa-class~='%s']:nth-child(%d) [qa-class~='%s']," + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:var n=prompt('Enter the username to check');if(n){location.href="https://github.com/seleniumhq/selenium/commits?author="+n} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rails_helper' | |
LOG_NAME = 'spec' | |
LOG_FILE = "#{Rails.root}/log/spec.log" | |
describe 'DashboardLogger' do | |
let(:logger) { DashboardLogger.new LOG_NAME } | |
before(:each) { | |
begin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git fetch origin | |
$ git cherry-pick -s c168370237300fa9ce4babd8817654bf8a4aca3c | |
$ git pull --rebase origin master | |
$ git log | |
$ git push origin master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::io; | |
fn main() { | |
println!("What's your name?"); | |
let mut name = String::new(); | |
io::stdin().read_line(&mut name) | |
.ok() | |
.expect("Failed to read line"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./go //java/client/test/org/openqa/selenium/remote:client-tests:run offline=true haltonerror=false haltonfailure=false log=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[:hello, :test].each do |m| | |
define_method m do | |
puts 'these methods were created dynamically' | |
end | |
end | |
hello() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a super class, that all your tests will be based off of. | |
@Config( | |
url = "about:blank", | |
browser = Browser.CHROME | |
) | |
public class AutomationTest extends Locomotive { | |
public AutomationTest() { | |
baseUrl = TestEnvironment.getUrl(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The perennial gun-control debate in America did not begin here. | |
The same arguments for and against were made in the 1920s in the chaos of Germany’s Weimar Republic, which opted for gun registration. | |
Law-abiding persons complied with the law, but the Communists and Nazis committing acts of political violence did not. | |
In 1931, Weimar authorities discovered plans for a Nazi takeover in which Jews would be denied food and persons refusing to surrender their guns within 24 hours would be executed. They were written by Werner Best, a future Gestapo official. | |
In reaction to such threats, the government authorized the registration of all firearms and the confiscation thereof, if required for “public safety.” | |
The interior minister warned that the records must not fall into the hands of any extremist group. | |
In 1933, the ultimate extremist group, led by Adolf Hitler, seized power and used the records to identify, disarm, and attack political opponents and Jews. Constitutional rights were suspended, and mass sear |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Open 2 terminals. | |
# TERMINAL 1: | |
$ cd /path/to/selenium | |
$ ls | |
selenium-server-standalone.jar | |
$ java -jar selenium-server-standalone.jar -role hub | |
# TERMINAL 2: | |
$ cd /path/to/selenium |