Project Description
The Selenium PowerShell eXtensions project is a port of the well-known Selenium WebDriver framework to PowerShell.

Project state version 0.5.0 (the functionality that is marked as having Unit test is ready):
FunctionalityImplemented asUnit testSample
start FFStart-SeFirefox++
start ChromeStart-SeChrome++
start IE 32-bitStart-SeInternetExplorer32+-
start IE 64-bitStart-SeInternetExplorer64+-
start HTMLDriverStart-SeHTMLDriver--
stop FFStop-SeFirefox++
stop ChromeStop-SeChrome++
stop IEStop-SeInternetExplorer++
stop HTMLDriverStop-SeHTMLDriver--
select a driverSelect-SeWebDriver -InstanceName--
reset test data[SePSX.CurrentData]::ResetData()in progress-
reset test dataReset-SeTestDatain progress-
driver.navigate().goToURL(string)Enter-SeURL -URL++
driver.navigate().forward()Invoke-SeNavigateForward+-
driver.navigate().back()Invoke-SeNavigateBack+-
driver.navigate().refresh()Invoke-SePageRefresh+-
driver.switchto().window(string)Switch-SeToWindow -WindowNamein progress-
driver.switchto().alert()Switch-SeToAlert+-
driver.switchto().activeElement()Switch-SeToActiveElementin progress-
driver.switchto().defaultContent()Switch-SeToDefaultContent+-
driver.switchto().frame(int)Switch-SeToFrame -FrameName+-
driver.switchto().frame(string)Switch-SeToFrame -FrameIndexin progress-
driver.switchto().frame(IWebElement)Switch-SeToFrame -FrameElementin progress-
driver.close()Close-SeWebDriverWindowin progress-
driver.manage().CookiesGet-SeWebDriverCookiesin progress-
driver.manage().WindowGet-SeWebDriverWindowin progress-
driver -> handle of the main windowRead-SeWebDriverNativeWindowHandle -MainWindowHandlein progress-
driver -> handles of all browser windowsRead-SeWebDriverNativeWindowHandlein progress-
driver.PageSourceRead-SeWebDriverPageSource+-
driver.TitleRead-SeWebDriverTitle+-
driver.UrlRead-SeWebDriverUrl+-
driver.manage().timeout(). ImplicitlyWait(System.TimeSpan)Set-SeWebDriverTimeout -ImplicitlyWaitTimeoutin progress-
driver.manage().timeout(). SetPageLoadTimeout(System.TimeSpan)Set-SeWebDriverTimeout -PageLoadTimeoutin progress-
driver.manage().timeout(). SetScriptTimeout(System.TimeSpan)Set-SeWebDriverTimeout -ScriptTimeoutin progress-
driver -> AutomationElementConvertTo-SeAutomationElementin progress-
findElement by.IdGet-SeWebElement -Id -First++
findElement by.ClassNameGet-SeWebElement -ClassName -First+-
findElement by.NameGet-SeWebElement -Name -First+-
findElement by.TagNameGet-SeWebElement -TagName -First+-
findElement by.LinkTextGet-SeWebElement -LinkText -First+-
findElement by.PartialLinkTextGet-SeWebElement -PartialLinkText -First+-
findElement by.CSSValueGet-SeWebElement -CssSelector -First+-
findElement by.XPathGet-SeWebElement -XPath -First+-
findElement via JSGet-SeWebElement -JavaScript -First--
findElements by.IdGet-SeWebElement -Id+-
findElements by.ClassNameGet-SeWebElement -ClassName+-
findElements by.NameGet-SeWebElement -Name--
findElements by.TagNameGet-SeWebElement -TagName+-
findElements by.LinkTextGet-SeWebElement -LinkText+-
findElements by.PartialLinkTextGet-SeWebElement -PartialLinkText+-
findElements by.CSSValueGet-SeWebElement -CssSelector--
findElements by.XPathGet-SeWebElement -XPathin progress-
findElements via JSGet-SeWebElement -JavaScript--
element.getParent()Get-SeWebElementParent+-
element.getAncestors()Get-SeWebElementAncestors+-
element.Clear()Clear-SeWebElement+-
element.Click()Invoke-SeWebElementClick+-
element.CSSValueRead-SeWebElementCSSValuein progress-
element.GetAtribute()Read-SeWebElementAttribute -AttributeName+-
element.DisplayedRead-SeWebElementDisplayed--
element.DisplayedWait-SeWebElementIsDisplayedin progress-
element.EnabledRead-SeWebElementEnabled+-
element.EnabledWait-SeWebElementIsEnabledin progress-
element.LocationRead-SeWebElementLocation--
element.SelectedRead-SeWebElementSelectedin progress-
element.SizeRead-SeWebElementSize--
element.TagNameRead-SeWebElementTagName+-
element.TextRead-SeWebElementTextin progress-
element.SendKeysSet-SeWebElementKeys+-
element.Submit()Submit-SeWebElementin progress-
select.FirstSelectedGet-SeSelection -FirstSelected+-
select.SelectedGet-SeSelection -Selected+-
select.OptionsGet-SeSelection -All+-
select.DeselectAll()Set-SeSelection -All -Deselect+-
select allSet-SeSelection -All+-
select.SelectByIndex(int)Set-SeSelection -Index+-
select.DeselectByIndex(int)Set-SeSelection -Index -Deselect+-
select.SelectByValue(string)Set-SeSelection -Value+-
select.DeselectByValue(string)Set-SeSelection -Value -Deselect+-
select.SelectByVisibleText(string)Set-SeSelection -VisibleText+-
select.DeselectByVisibleText(string)Set-SeSelection -VisibleText -Deselect+-
actions.MoveToElement(IWebElement)Move-SeCursorToWebElementin progress-
actions.Click(IWebElement)Invoke-SeWebElementClick -Singlein progress-
actions.DoubleClick(IWebElement)Invoke-SeWebElementClick -DoubleClickin progress-
actions.ClickAndHold(IWebElement)Invoke-SeWebElementClick -Holdin progress-
actions.ContextClick(IWebElement)Invoke-SeWebElementClick -Rightin progress-
actions.Click()Invoke-SeWebElementClick -Herein progress-
alert.Accept()Invoke-SeAlertAcceptin progress-
alert.Dismiss()Invoke-SeAlertDismissin progress-
alert.TextRead-SeAlertTextin progress-
alert.SendKeys(string)Set-SeAlertKeys -Textin progress-
PageFactory.InitElements()New-SePageObjectin progress-
JavaScriptExecutor.Execute(sting, string[])Invoke-SeJSExecutor -ScriptCode -ArgumentListin progress-


Source code is visible at github.

Last edited Jan 27, 2013 at 5:57 AM by xinliu, version 62