Skip to content

Instantly share code, notes, and snippets.

View cnishina's full-sized avatar
👻
arctangent. ssssh.

Craig Nishina cnishina

👻
arctangent. ssssh.
View GitHub Profile
fit('with filter: should find existing contact "Craig Service"', () => {
let tbody = element(by.tagName('tbody'));
let trs = tbody.all(by.tagName('tr'));
let craigService = trs.filter((elem, index) => {
return elem.all(by.tagName('td')).get(1).getText().then(text => {
return text === 'Craig Service';
});
});
expect(craigService.count()).toBeGreaterThan(0);
expect(craigService.all(by.tagName('td')).get(2).getText()).toBe('craig.services@example.com');
@cnishina
cnishina / installing-pcp
Last active April 26, 2022 18:52
installing pcp for vector on ubuntu
# Install PCP from source to run [Vector](http://vectoross.io/)
#
# Why this gist?
#
# Instructions were reasonable except the vectoross just directed me to [pcp.io](http://pcp.io).
# The PCP instructions were to just install directly with `apt-get install pcp`. However, deep
# within the issues I found out that `pmwebd` which is being used by Vector is only installed
# from source. And that the list of installations of dependencies are from `./qa/admin/check-vm`.
# Also like the installation says, the QA labeled dependencies from that list do not have to
# be installed.
09:32:01.647 INFO - Executing: [find elements: By.cssSelector: #increment])
09:32:01.674 INFO - Done: [find elements: By.cssSelector: #increment]
09:32:01.682 INFO - Executing: [find child elements: 0 [[ChromeDriver: chrome on MAC (2a20e689e1e1b02e28ee1ed051080bbe)] -> css selector: #increment], By.cssSelector: .action])
09:32:01.703 INFO - Done: [find child elements: 0 [[ChromeDriver: chrome on MAC (2a20e689e1e1b02e28ee1ed051080bbe)] -> css selector: #increment], By.cssSelector: .action]
09:32:01.709 INFO - Executing: [click: 1 [[[[ChromeDriver: chrome on MAC (2a20e689e1e1b02e28ee1ed051080bbe)] -> css selector: #increment]] -> css selector: .action]])
09:32:01.742 INFO - Done: [click: 1 [[[[ChromeDriver: chrome on MAC (2a20e689e1e1b02e28ee1ed051080bbe)] -> css selector: #increment]] -> css selector: .action]]
09:31:59.242 INFO - Executing: [new session: Capabilities [{count=1, browserName=chrome, version=ANY}]])
09:31:59.254 INFO - Creating a new session for Capabilities [{count=1, browserName=chrome, version=ANY}]
Starting ChromeDriver 2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4) on port 7002
Only local connections are allowed.
09:32:00.320 INFO - Done: [new session: Capabilities [{count=1, browserName=chrome, version=ANY}]]
09:32:00.335 INFO - Executing: [set script timeout: 11000])
09:32:00.339 INFO - Done: [set script timeout: 11000]
@cnishina
cnishina / webdriver-manager-waiting-for-angular
Last active May 27, 2016 17:03
webdriver-manager log example
09:32:00.421 INFO - Executing: [get: data:text/html,<html></html>])
09:32:00.442 INFO - Done: [get: data:text/html,<html></html>]
09:32:00.454 INFO - Executing: [execute script: window.name = "NG_DEFER_BOOTSTRAP!" + window.name;window.location.replace("http://localhost:8081/ng2/#/async");, []])
09:32:01.191 INFO - Done: [execute script: window.name = "NG_DEFER_BOOTSTRAP!" + window.name;window.location.replace("http://localhost:8081/ng2/#/async");, []]
09:32:01.199 INFO - Executing: [execute script: return window.location.href;, []])
09:32:01.225 INFO - Done: [execute script: return window.location.href;, []]
09:32:01.234 INFO - Executing: [execute async script: try { return (function (attempts, asyncCallback) {
var callback = function(args) {
setTimeout(function() {
asyncCallback(args);