#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">
| require 'capybara' | |
| Capybara.register_driver :firefox do |app| | |
| Capybara::Selenium::Driver.new(app, :browser => :firefox) | |
| end | |
| Capybara.default_max_wait_time = 15 | |
| $browser = Capybara::Session.new(:firefox) | |
| $browser.visit("https://www.w3schools.com/code/tryit.asp?filename=GASWGTGYEHKK") |
| debug] [BaseDriver] Event 'newSessionRequested' logged at 1557334790631 (13:59:50 GMT-0300 (-03)) | |
| [Appium] Appium v1.13.0 creating new AndroidUiautomator2Driver (v1.33.1) session | |
| [Appium] Capabilities: | |
| [Appium] platformName: Android | |
| [Appium] deviceName: Nexus 5 | |
| [Appium] udid: emulator-5554 | |
| [Appium] automationName: uiautomator2 | |
| [Appium] appPackage: br.com.edeploy.gol.checkin.activities | |
| [Appium] appActivity: br.com.edeploy.gol.checkin.activities.MainActivity | |
| [Appium] autoGrantPermissions: true |
#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">
#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">
| -- Remove the history from | |
| rm -rf .git | |
| -- recreate the repos from the current content only | |
| git init | |
| git add . | |
| git commit -m "Initial commit" | |
| -- push to the github remote repos ensuring you overwrite history | |
| git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git |
| #!/bin/bash | |
| echo "removeing evaluation key" | |
| rm ~/.IntelliJIdea15/config/eval/idea15.evaluation.key | |
| echo "resetting evalsprt in options.xml" | |
| sed -i '/evlsprt/d' ~/.IntelliJIdea15/config/options/options.xml | |
| echo "resetting evalsprt in prefs.xml" | |
| sed -i '/evlsprt/d' ~/.java/.userPrefs/prefs.xml |
| <html> | |
| <head> | |
| <link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap.css" rel="stylesheet" /> | |
| <script src="http://code.jquery.com/jquery-1.7.2.min.js"></script> | |
| <script src="script.js"></script> | |
| <link rel="stylesheet" type="text/css" href="style.css"> | |
| </head> | |
| <body> | |
| <div id="tic-tac-toe"> | |
| <div class="span3 new_span"> |
| #Giant dictonary to hold key name and VK value | |
| VK_CODE = {'backspace':0x08, | |
| 'tab':0x09, | |
| 'clear':0x0C, | |
| 'enter':0x0D, | |
| 'shift':0x10, | |
| 'ctrl':0x11, | |
| 'alt':0x12, | |
| 'pause':0x13, | |
| 'caps_lock':0x14, |