C# Class OpenQA.Selenium.Internal.ResourceUtilities

Encapsulates methods for finding and extracting WebDriver resources.
ファイルを表示 Open project: asynchrony/Selenium2

Public Methods

Method Description
GetResourceStream ( string fileName, string resourceId ) : Stream

Gets a Stream that contains the resource to use.

The GetResourceStream method searches for the specified resource using the following algorithm:

In the same directory as the calling assembly. In the full path specified by the fileName argument. Inside the calling assembly as an embedded resource.

Method Details

GetResourceStream() public static method

Gets a Stream that contains the resource to use.
The GetResourceStream method searches for the specified resource using the following algorithm:

In the same directory as the calling assembly. In the full path specified by the fileName argument. Inside the calling assembly as an embedded resource.

Thrown if neither the file nor the embedded resource can be found.
public static GetResourceStream ( string fileName, string resourceId ) : Stream
fileName string A file name in the file system containing the resource to use.
resourceId string A string representing the resource name embedded in the /// executing assembly, if it is not found in the file system.
return Stream