All Projects → adamdriscoll → Selenium Powershell

adamdriscoll / Selenium Powershell

Licence: mit
PowerShell module to run a Selenium WebDriver.

Programming Languages

powershell
5483 projects

Labels

Projects that are alternatives of or similar to Selenium Powershell

SEU-NewCourseElection-Helper
东南大学抢课助手。适配2021版选课系统。脚本仅用于捡漏,虽然理论上也可以抢课,但至少,我自己是不敢尝试的😋。本脚本仅供 SEU er 学习交流使用,出啥问题的话俺一概不负责任
Stars: ✭ 19 (-93.43%)
Mutual labels:  selenium
Dorknet
Selenium powered Python script to automate searching for vulnerable web apps.
Stars: ✭ 256 (-11.42%)
Mutual labels:  selenium
Tor Browser Selenium
Tor Browser automation with Selenium.
Stars: ✭ 267 (-7.61%)
Mutual labels:  selenium
Automated-Whatsapp
Automated WhatsApp replies using selenium module in Python
Stars: ✭ 23 (-92.04%)
Mutual labels:  selenium
WhatsApp-Scraping
Python script to get WhatsApp iformation frrom WhatsApp Web
Stars: ✭ 76 (-73.7%)
Mutual labels:  selenium
Pywhatsapp
Python Automation using selenium & Scheduling of messages and media
Stars: ✭ 257 (-11.07%)
Mutual labels:  selenium
difido-reports
This project aims to provide a generic implementation for HTML test reports.
Stars: ✭ 38 (-86.85%)
Mutual labels:  selenium
Testcontainers Python
Stars: ✭ 269 (-6.92%)
Mutual labels:  selenium
schedule-tweet
Schedules tweets using TweetDeck
Stars: ✭ 14 (-95.16%)
Mutual labels:  selenium
The Endorser
An OSINT tool that allows you to draw out relationships between people on LinkedIn via endorsements/skills.
Stars: ✭ 269 (-6.92%)
Mutual labels:  selenium
sahagin-java
Sahagin generates highly readable Selenium/Appium test report from your test code.
Stars: ✭ 26 (-91%)
Mutual labels:  selenium
TestLeafSeleniumTraining
This is public repository for Selenium Learners at TestLeaf
Stars: ✭ 80 (-72.32%)
Mutual labels:  selenium
Poium
Selenium/appium-based Page Objects test library
Stars: ✭ 261 (-9.69%)
Mutual labels:  selenium
Instagram-Scraper-2021
Scrape Instagram content and stories anonymously, using a new technique based on the har file (No Token + No public API).
Stars: ✭ 57 (-80.28%)
Mutual labels:  selenium
Playwright Go
Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.
Stars: ✭ 272 (-5.88%)
Mutual labels:  selenium
pluralsight scrapper
A course downloader/scrapper for https://www.pluralsight.com
Stars: ✭ 39 (-86.51%)
Mutual labels:  selenium
Htmlelements
Html Elements is a Java framework providing easy-to-use way of interaction with web-page elements in web-page tests.
Stars: ✭ 258 (-10.73%)
Mutual labels:  selenium
Rselenium
An R client for Selenium Remote WebDriver
Stars: ✭ 278 (-3.81%)
Mutual labels:  selenium
Selenium Document
a document with regard to selenium
Stars: ✭ 274 (-5.19%)
Mutual labels:  selenium
Ggr
A lightweight load balancer used to create big Selenium clusters
Stars: ✭ 268 (-7.27%)
Mutual labels:  selenium

Selenium PowerShell Module

The Selenium PowerShell module allows you to automate browser interaction using the Selenium API. You can navigate to pages, find elements, click buttons, enter text and even take screenshots.

Looking for Maintainers

I haven't been able to able to keep up with the issues on this repo. If you are interested in becoming a maintainer, please let me know. - Adam

About

  • Wraps the C# WebDriver for Selenium
  • Easily execute web-based tests
  • Works well with Pester

Build Status

Installation

Note: Firefox's Latest Gecko Driver on Windows requires Microsoft Visual Studio Redistributables for the binary to run get themHere

Install-Module Selenium

OR

Import-Module "{FullPath}\selenium-powershell\Selenium.psd1"

Usage

Note: in order to use a specific driver you will need to have the brower of the driver installed on your system. For example if you use Start-SeChrome you will need to have either a Chrome or Chromium browser installed

Start a Browser Driver

# Start a driver for a browser of your choise (Chrome/Firefox/Edge/InternetExplorer)
# To start a Firefox Driver
$Driver = Start-SeFirefox 

# To start a Chrome Driver
$Driver = Start-SeChrome

# To start an Edge Driver
$Driver = Start-SeEdge

Navigate to a URL

$Driver = Start-SeFirefox 
Enter-SeUrl https://www.poshud.com -Driver $Driver

Find an Element

$Driver = Start-SeFirefox 
Enter-SeUrl https://www.poshud.com -Driver $Driver
$Element = Find-SeElement -Driver $Driver -Id "myControl"

Click on an Element/Button

$Driver = Start-SeFirefox 
Enter-SeUrl https://www.poshud.com -Driver $Driver
$Element = Find-SeElement -Driver $Driver -Id "btnSend"
Invoke-SeClick -Element $Element

Send Keystrokes

$Driver = Start-SeFirefox 
Enter-SeUrl https://www.poshud.com -Driver $Driver
$Element = Find-SeElement -Driver $Driver -Id "txtEmail"
Send-SeKeys -Element $Element -Keys "[email protected]"

Run Chrome with options

# Run Chrome in Headless mode 
$Driver = Start-SeChrome -Headless

# Run Chrome in incognito mode
$Driver = Start-SeChrome -Incognito

# Run Chrome with alternative download folder
$Driver = Start-SeChrome -DefaultDownloadPath C:\Temp

# Run Chrome and go to a URL in one command
$Driver = Start-SeChrome -StartURL 'https://www.google.com/ncr'

# Run Chrome with multiple Arguments
$Driver = Start-SeChrome -Arguments @('Incognito','start-maximized')

# Run Chrome with an existing profile.
# The default profile paths are as follows:
# Windows: C:\Users\<username>\AppData\Local\Google\Chrome\User Data
# Linux: /home/<username>/.config/google-chrome
# MacOS: /Users/<username>/Library/Application Support/Google/Chrome
$Driver = Start-SeChrome -ProfileDirectoryPath '/home/<username>/.config/google-chrome'

Find and Wait for an element

$Driver = Start-SeChrome
Enter-SeUrl 'https://www.google.com/ncr' -Driver $Driver

# Please note that with the -Wait parameter only one element can be returned at a time.
Find-SeElement -Driver $d -Wait -Timeout 10 -Css input[name='q'] 
Find-SeElement -Driver $d -Wait -Timeout 10 -Name q 

Maintainers

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].