GithubHelp home page GithubHelp logo

sepowershell's Introduction

Selenium Powershell Integration

This project has for purpose to let Powershell code interact with Web pages through Google Chrome.

Once the ChromeDriver object is instanciated, it can almost be used like the C# version of Selenium.
As it remains Powershell, some changes should still be done.

An exemple on how to start is provide in the test.ps1 file.

Prerequisites

You need to make sure the Selenium folder is present in the project.
This project only uses Google Chrome but other browsers could be used. Any Drivers could be add in .\Selenium\Drivers\.

To let the WebDriver.dll recognize the *driver.exe you have two choices:

  • Choose a folder and install the chromedriver inside + add it in the environment PATH of the system
  • Fill the $seleniumConfigPath variable

Driver compatibility

Please make sure that you version of the ChromeDriver and the version of the chrome Installed locally is equal
Please check the following link if you encounter this kind of error.

Exception calling ".ctor" with "1" argument(s): "session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 120.0.6099.217 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe (SessionNotCreated)"
At C:\Users\ohay\Documents\projets\Powershell\Selenium\test.ps1:15 char:1
+ $chromeDriver = [OpenQA.Selenium.Chrome.ChromeDriver]::new("C:\Users\ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : InvalidOperationException

sepowershell's People

Contributors

h0livier avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.