(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl |
const puppeteer = require('puppeteer'); | |
const { defineSupportCode } = require('cucumber') | |
defineSupportCode(({ Before, Given, When, Then }) => { | |
Before({ timeout: 60 * 1000 }, async function testCase() { | |
this.browser = await puppeteer.launch() | |
}) | |
Given('I am on google with puppeteer', { timeout: 60 * 1000 }, async function testCase() { | |
this.page = await this.browser.newPage() |
# uses xpath to check for a form element based on the label, | |
# instead of using a css selector w/ label_for | |
# name should be the complete name in the html page. | |
# meaning Title: and not Title | |
# find the label that is name. Get the "for" of the label | |
# uses the for to check for the input with that as an id | |
Then /^I should see a "([^\"]*)" for "([^\"]*)"$/ do |type, name| | |
case type |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Picking the right architecture = Picking the right battles + Managing trade-offs
package no.vegvesen.kjoretoy.registrering.register.web; | |
import javax.persistence.EntityManager; | |
import javax.persistence.PersistenceContext; | |
import javax.persistence.Table; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
import org.springframework.beans.factory.InitializingBean; |
Here is the list of Chrome Driver command line Arguments.
If you are using chrome Driver for Selenium WebDriver or Protractor or …. then these are a handy useful list of command line arguments that can be used.
You may use this to look at the usuage: https://code.google.com/p/chromium/codesearch#chromium/src/chromeos/chromeos_switches.cc
Run chromedriver –help
to see command line arguments for your version.