selenium-powershell icon indicating copy to clipboard operation
selenium-powershell copied to clipboard

Adding HTMLAgilityPack Integration

Open ZanattaMichael opened this issue 4 years ago • 2 comments

Adding the HTMLAgilityPack into the module to improve search and functionality.

Features Added:

  1. Get-SeChildElements - Fetches children HTML elements as Selenium Objects.
  2. Get-SeParentElement - Fetches the parent HTML Element as a Selenium object.
  3. Added WrappedHTMLAgilityPack Property to $Driver/$Element
  4. (Unreleated) Updated Find-SeElement to Search for Text Strings. $element = Find-SeElement -Driver $driver -Text 'management framework'

What is the HTML Agility Pack? (https://html-agility-pack.net/)

HAP is an HTML parser written in C# to read/write DOM and supports plain XPATH or XSLT.

ZanattaMichael avatar Sep 17 '21 23:09 ZanattaMichael

Any updates on this ?

darderik avatar Nov 16 '21 08:11 darderik

Hi There! I'm just following up on this PR to see if I need to make any changes.

Thanks!

Michael.

ZanattaMichael avatar Dec 06 '21 19:12 ZanattaMichael