C# Class Selenium.Extensions.DialogHelper

Helps with file dialog interactions.
Show file Open project: Jayman1305/Selenium.Extensions

Public Methods

Method Description
SelectFiles ( IntPtr dialogHandle, string dialogTitle, string directory ) : void

Interacts with the dialog to select the specified files and return.

Private Methods

Method Description
ListItemSelect ( AutomationElement listItemElement, bool addToSelection ) : void

Sets the focus to a list and selects a string item in that list.

This deselects any currently selected items. To add the item to the current selection in a multiselect list, use AddToSelection instead of Select.

Method Details

SelectFiles() public static method

Interacts with the dialog to select the specified files and return.
public static SelectFiles ( IntPtr dialogHandle, string dialogTitle, string directory ) : void
dialogHandle System.IntPtr /// The dialog handle. ///
dialogTitle string The dialog window title.
directory string /// The directory. ///
return void