Skip to content

Instantly share code, notes, and snippets.

View titusfortner's full-sized avatar

Titus Fortner titusfortner

View GitHub Profile
@titusfortner
titusfortner / BuildSeleniumOnWindows.md
Created July 18, 2023 21:51 — forked from sbabcoc/BuildSeleniumOnWindows.md
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"
  • Install Microsoft Visual Studio 2022 Community Edition:
  • Download Visual Studio Professional 17.5.1 from https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-history
package com.saucedemo.selenium;
import org.junit.jupiter.api.TestInfo;
import org.junit.jupiter.api.extension.ExtensionContext;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.api.extension.TestWatcher;
import org.openqa.selenium.MutableCapabilities;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.ie.InternetExplorerOptions;
import org.openqa.selenium.remote.RemoteWebDriver;
SAFARIDRIVER(1) BSD General Commands Manual SAFARIDRIVER(1)
NAME
safaridriver -- Safari WebDriver REST API service
SYNOPSIS
safaridriver -p port [-h | --help] [--version] [--enable] [--diagnose]
DESCRIPTION
The safaridriver utility is used to launch an HTTP server that implements the Selenium WebDriver