Moved to https://github.com/elgalu/headless
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" ?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="html"/> | |
<xsl:template match="/"> | |
<xsl:text disable-output-escaping="yes"><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">]]></xsl:text> | |
<html> | |
<head> | |
<title> | |
Xunit Test Results - For: <xsl:value-of select="@name"/> | |
</title> |
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
# Within Mac VM | |
sudo -s | |
# Create user with id 1000 and group with id 1000 | |
dscl . -create /Groups/mygroup | |
dscl . -create /Groups/mygroup name mygroup | |
dscl . -create /Groups/mygroup passwd "clave" | |
dscl . -create /Groups/mygroup gid 1000 | |
dscl . -create /Users/myuser | |
dscl . -create /Users/myuser UserShell /bin/bash | |
dscl . -create /Users/myuser RealName "myuser" |
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
/** | |
* @name waitForUrlToChangeTo | |
* @description Wait until the URL changes to match a provided regex | |
* @param {RegExp} urlRegex wait until the URL changes to match this regex | |
* @returns {!webdriver.promise.Promise} Promise | |
*/ | |
function waitForUrlToChangeTo(urlRegex) { | |
var currentUrl; | |
return browser.getCurrentUrl().then(function storeCurrentUrl(url) { |
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
node node lib/cli.js spec/basicConf.js | |
Using the selenium server at http://satellite.dev:4555/wd/hub | |
[launcher] Running 1 instances of WebDriver....warning: more than one element found for locator by.binding("item.reusedBinding")- you may need to be more specific | |
...............................F................................................F......... | |
Failures: | |
1) protractor library should allow a mix of using protractor and using the driver directly | |
Message: | |
Expected 'http://portege.dev:8000/index.html' to match '#/form'. |
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
#!/bin/bash | |
unset VNCSERVERARGS | |
VNCSERVERS="" | |
[ -f /etc/headless/vncservers.conf ] && . /etc/headless/vncservers.conf | |
prog=$"VNC server" | |
start() { | |
. /lib/lsb/init-functions | |
REQ_USER=$2 |
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
browser.getCapabilities().then(function(s) { | |
var browserName, browserVersion; | |
var shortName, shortVersion; | |
var ie, ff, ch, sa; | |
var platform; | |
platform = s.caps_.platform; | |
browserName = s.caps_.browserName; | |
browserVersion = s.caps_.version; | |
shortVersion = browserVersion.split('.')[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
/** | |
* Dollar shortcuts for less typing, i.e. $model, $xpath, $linkText... | |
* | |
* @example | |
* var nameElm = $model('user.name'); | |
* // Equivalent to | |
* var nameElm = element(by.model('user.name')); | |
* | |
* @example | |
* var chainedElm = |
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
// An example configuration file. | |
exports.config = { | |
// Capabilities to be passed to the webdriver instance. | |
capabilities: { | |
browserName: 'chrome', | |
chromeOptions: { | |
prefs: { | |
intl: { accept_languages: "fr-FR" } | |
} | |
} |
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
$ node index.js ;echo $? | |
/home/user/Dropbox/dev-z/play/bstack/node_modules/browserstack-webdriver/lib/webdriver/promise.js:1702 | |
throw error; | |
^ | |
UnknownError: <html> | |
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head> | |
<body bgcolor="white"> | |
<center><h1>400 Bad Request</h1></center> | |
<center>The plain HTTP request was sent to HTTPS port</center> |
OlderNewer