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
@Test | |
public void loginTest() { | |
//Open browser | |
driver.get("https://demo.applitools.com/loginBefore.html"); | |
//Click on the Login button | |
driver.findElement(By.id("log-in")).click(); | |
//Start the test | |
eyes.open(driver, "Login App", "Login Page Test"); |
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
@Test | |
public void loginTest() { | |
//Open browser | |
driver.get("https://demo.applitools.com/loginBefore.html"); | |
//Click on the Login button | |
driver.findElement(By.id("log-in")).click(); | |
//Assert the error text | |
assertEquals("Please enter username and password", |
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
//---------------------------------------------------------------------- | |
//CASE 1: Test Login page (BEFORE): | |
//----------------------------------------------------------------------- | |
//Lots of code to test a simple login page | |
@Test | |
public void loginTest() { | |
//Open browser | |
driver.get("https://demo.applitools.com/loginBefore.html"); | |
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
# Note: This is just an example in Ruby. This shows how to print and also how to call that method. | |
# Feel free to change it to your language and framework needs | |
# Execute example: $ rspec hackathon.rb -f documentation | |
require 'rspec' | |
# A Helper to print the test result in the following format: | |
# Task: <Task Number>, Test Name: <Test Name>, DOM Id:: <id>, Browser: <Browser>, Viewport: <Width x Height>, Device<Device type>, Status: <Pass | Fail> | |
# |
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
//Note: This is just an example in .Net C#. This shows how to print and also how to call that method. | |
//Feel free to change it to your language and framework needs | |
using NUnit.Framework; | |
using OpenQA.Selenium; | |
using System.IO; | |
namespace HackathonReport3 | |
{ | |
[TestFixture()] |
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
# Note: This is just an example in Python. This shows how to print and also how to call that method. | |
# Feel free to change it to your language and framework needs | |
import softest | |
# Get the browser, viewport and device info from a variable like below or from a file or environment variable. | |
browser = "Firefox" | |
viewport = "1200X700" | |
device = "Laptop" |
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
//Note: This is just an example in JavaScript. This shows how to print and also how to call that method. | |
//Feel free to change it to your language and framework needs | |
const fs = require('fs'); | |
// Get the browser, viewport and device info from a variable like below or from a file or environment variable. | |
const browser = "Firefox"; | |
const viewport = "1200x700"; | |
const device = "Laptop"; |
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
//Note: This is just an example in Java. This shows how to print and also how to call that method. | |
//Feel free to change it to your language and framework needs | |
// Get the browser, viewport and device info from a variable like below or from a file or environment variable. | |
public static String browser = "Firefox"; | |
public static String viewport = "1200X700"; | |
public static String device = "Laptop"; | |
/** |
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
arning Resolution field "[email protected]" is incompatible with requested version "react@^15.6.2" | |
warning Resolution field "[email protected]" is incompatible with requested version "react-dom@^15.6.2" | |
warning Resolution field "[email protected]" is incompatible with requested version "react@^15.4.1" | |
warning Resolution field "[email protected]" is incompatible with requested version "react@^15.0.2" | |
warning Resolution field "[email protected]" is incompatible with requested version "react-dom@^15.0.2" | |
[2/4] 🚚 Fetching packages... | |
[3/4] 🔗 Linking dependencies... | |
warning "firebase > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0". | |
warning "firebase > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0". | |
warning "firebase > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0". |
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
{ | |
"segments": { | |
"left": [ | |
{ | |
"function": "powerline.segments.shell.mode" | |
}, | |
{ | |
"function": "powerline.segments.common.net.hostname", | |
"priority": 10 | |
}, |
NewerOlder