Skip to content

Instantly share code, notes, and snippets.

View sbabcoc's full-sized avatar
💭
All I Really Need to Know I Learned in Kindergarten

Scott Babcock sbabcoc

💭
All I Really Need to Know I Learned in Kindergarten
View GitHub Profile
@sbabcoc
sbabcoc / htmlunit-remote.md
Last active June 29, 2024 06:31
HtmlUnit Remote is a Selenium 4 Grid extension that enables remote execution of HtmlUnitDriver sessions

HTMLUNIT REMOTE

The HtmlUnit Remote project implements a W3C WebDriver protocol wrapper for HtmlUnitDriver, which enables Selenium 4 Grid to supply remote sessions of this headless browser.

Background

To eliminate behavioral differences between local and remote configurations, the Selenium Foundation framework always acquires browser sessions from a Grid instance, managing a local grid instance when not configured to use an existing grid. Selenium 3 Grid could be configured to supply HtmlUnitDriver sessions, supported by special-case handling within the Node server itself. This handling was not carried over into Selenium 4 Grid, which was completely re-engineered with new architecture and vastly expanded capabilities.

The lack of HtmlUnitDriver support in Selenium 4 Grid necessitated reconfiguring the Selenium Foundation project u

@sbabcoc
sbabcoc / XCUITest page components.md
Last active February 1, 2024 01:08
XCUITest page components
layout title category author tags summary-image
post
XCUITest Automation: Page Components for iOS Test Automation
mobile
Scott Babcock
xcuitest
mobile
swift
/articles/xcuitest/XCUITest.jpg

Creating Stable, Maintainable User Interface Test Automation in Swift

@sbabcoc
sbabcoc / XCUITest page object models.md
Last active January 31, 2024 20:48
XCUITest page object models
layout title category author tags summary-image
post
XCUITest Automation: Page Object Models for iOS Test Automation
mobile
Scott Babcock
xcuitest
mobile
swift
/articles/xcuitest/XCUITest.jpg

Creating Stable, Maintainable User Interface Test Automation in Swift

@sbabcoc
sbabcoc / XCUITest element locator enums.md
Last active February 24, 2024 18:50
XCUITest element locator enums
layout title category author tags summary-image
post
XCUITest Automation: Encapsulating Element Locators in Swift Enumerations
mobile
Scott Babcock
xcuitest
mobile
swift
/articles/xcuitest/XCUITest.jpg

Creating Stable, Maintainable User Interface Test Automation in Swift

@sbabcoc
sbabcoc / gist:28f3b53ae2765444100ee6a183a939b2
Created September 10, 2023 04:07
Selenium build failure on Windows 10 Pro
C:\ProgramData\chocolatey\bin\bazelisk.exe test --tool_tag=ijwb:IDEA:community --curses=no --color=yes --progress_in_terminal_title=no --build_event_binary_file=C:\Users\scoba\AppData\Local\Temp\intellij-bep-e836bbbf-465c-43f6-b875-f68b0a8bc725 --nobuild_event_binary_file_path_conversion --test_filter=org.openqa.selenium.grid.node.config.NodeOptionsTest -- //java/test/org/openqa/selenium/grid/node/config:NodeOptionsTest
Testing started at 9:04 PM ...
Loading:
Loading:
Loading: 0 packages loaded
Analyzing: target //java/test/org/openqa/selenium/grid/node/config:NodeOptionsTest (0 packages loaded, 0 targets configured)
INFO: Analyzed target //java/test/org/openqa/selenium/grid/node/config:NodeOptionsTest (0 packages loaded, 0 targets configured).
INFO: Found 1 test target...
[0 / 95] [Prepa] BazelWorkspaceStatusAction stable-status.txt ... (3 actions, 0 running)
[9 / 126] [Prepa] BazelWorkspaceStatusAction stable-status.txt ... (8 actions, 6 running)
@sbabcoc
sbabcoc / BuildSeleniumOnWindows.md
Last active December 26, 2023 22:07
Building Selenium on Windows 10

Guide #1: http://jimevansmusic.blogspot.com/2020/04/setting-up-windows-development.html
Guide #2: https://gist.github.com/titusfortner/aec103e9b02709f771497fdb8b21154c

Set Up Command Line Environment

  • Launch Powershell as Administrator
  • Enable Developer Mode : reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
  • Enable UNC Path support: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor" /t REG_DWORD /f /v "DisableUNCCheck" /d "1"
  • Enable Long Path support: reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem" /t REG_DWORD /f /v "LongPathsEnabled" /d "1"
  • Install Microsoft Visual Studio 2022 Community Edition: