Skip to content

Instantly share code, notes, and snippets.

View tourdedave's full-sized avatar

Dave Piacente tourdedave

  • Applitools
  • Takoma Park, MD
View GitHub Profile
// 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

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)
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
}
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
namespace sandbox
{
[TestFixture]
class Class1
{
IWebDriver Driver;

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.

First Header Second Header
Content Cell Content Cell
Content Cell Content Cell
" 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
// 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) {