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
import org.openqa.selenium.JavascriptExecutor; | |
import org.openqa.selenium.WebDriver; | |
public class SessionStorage { | |
private JavascriptExecutor js; | |
public SessionStorage(WebDriver driver) { | |
this.js = (JavascriptExecutor) driver; | |
} |
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
import org.openqa.selenium.JavascriptExecutor; | |
import org.openqa.selenium.WebDriver; | |
public class LocalStorage { | |
private JavascriptExecutor js; | |
public LocalStorage(WebDriver webDriver) { | |
this.js = (JavascriptExecutor) webDriver; | |
} |
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
package example; | |
import org.openqa.selenium.JavascriptExecutor; | |
import org.openqa.selenium.support.events.EventFiringWebDriver; | |
public class WaitUtil { | |
public static void checkPendingRequests(final String context, final EventFiringWebDriver driver) { | |
final int timeoutInNumberOfTries = 50; | |
try { |
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
Call angular.reloadWithDebugInfo(); in your browser debug console | |
Execute the following snippet to reveal all the elements: | |
var bindings = document.getElementsByClassName('ng-binding'); | |
for (var i = 0; i < bindings.length; ++i) { | |
var bindingName = angular.element(bindings[i]).data().$binding[0].exp ||angular.element(bindings[i]).data().$binding; | |
console.log(bindingName.toString()); | |
console.log(bindings[i]); | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>sample-hsac-project</groupId> | |
<artifactId>hsac-project</artifactId> | |
<version>1.0.0-SNAPSHOT</version> |
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
!***> Fixture code locations | |
|Import | | |
|nl.hsac.fitnesse.fixture | | |
|nl.hsac.fitnesse.fixture.slim | | |
|nl.hsac.fitnesse.fixture.slim.web| | |
*! | |
!***> Libraries | |
|Library | | |
|string fixture| |
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
exports.config = { | |
framework: 'jasmine2', | |
seleniumAddress: 'http://localhost:4444/wd/hub', | |
specs: './target/specs/**/*_spec.js', | |
baseUrl: 'http://demo.seleniuminaction.com', | |
getPageTimeout: 10000, | |
allScriptsTimeout: 10000, | |
capabilities: { | |
'browserName': 'chrome', |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "es6", | |
"module": "commonjs", | |
"moduleResolution": "node", | |
"outDir": "target/specs", | |
"types": ["jasmine", "node"] | |
}, | |
"exclude": [ | |
"node_modules" |
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
import {by, element} from 'protractor'; | |
export class SelectWrapper { | |
select: any; | |
constructor(select: any) { | |
this.select = element(select); | |
} | |
getOptions() { |