Skip to content

Instantly share code, notes, and snippets.

Dave Haeffner tourdedave

Block or report user

Report or block tourdedave

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View asdf.spec.js
// Generated by Selenium IDE
const assert = require('assert')
const geckodriver = require('geckodriver')
const { Builder, By, Key, until } = require('selenium-webdriver')
const { ConsoleLogHandler, Target, Eyes, Configuration, VisualGridRunner, BrowserType, DeviceName, ScreenOrientation } = require('@applitools/eyes-selenium')
describe('asdf', function() {
let driver
let vars
let eyes
View building-ie-driver-3.x.md

Building IEDriver

https://github.com/SeleniumHQ/selenium#requirements

Here are some additional details re: requirements for building IEDriver:

  • Visual Studio (e.g., 2019)
  • MSVC v141 - VS 2017 C++ x64/x86 build tools
  • C++ ATL for v141 build tools (x86 & x64)
  • Windows SDK (e.g., Windows 8.1)
View ie.enableFullPageScreenshot.js
const { Builder } = require('selenium-webdriver')
const fs = require('fs')
const path = require('path')
async function run() {
const driver = await new Builder()
.withCapabilities({
'se:ieOptions': {
'ie.enableFullPageScreenshot': false
}
View Class1.cs
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
namespace sandbox
{
[TestFixture]
class Class1
{
IWebDriver Driver;
View bio.md

Dave Haeffner is the writer of Elemental Selenium -- a free, once weekly Selenium tip newsletter that's read by thousands of testing professionals.

He's also the creator and maintainer of the-internet (an open-source web app that's perfect for writing automated tests against), author of The Selenium Guidebook, and an active member of the Selenium project.

As a Software Developer at Applitools he works full-time as a maintainer of Selenium IDE.

He's helped numerous companies successfully implement automated acceptance testing; including The Motley Fool, ManTech International, Sittercity, and Animoto. He's also spoken at numerous conferences and meet-ups around the world about automated functional testing.

View gist:aa03a05e89abd44fad73096478160b66
First Header Second Header
Content Cell Content Cell
Content Cell Content Cell
View se-copyright
View .vimrc
" be iMproved, required
set nocompatible
" Set utf8 as standard encoding and en_US as the standard language
set encoding=utf8
" set leader key
let mapleader = ","
" customize characters
View overloaded-explicit-wait.java
// in Base Page Object
public Boolean isDisplayed(By locator) {
try {
return find(locator).isDisplayed();
} catch (org.openqa.selenium.NoSuchElementException exception) {
return false;
}
}
public Boolean isDisplayed(By locator, Integer timeout) {
You can’t perform that action at this time.