C# 클래스 OpenQA.Selenium.Chrome.ChromeExtension

Provides a mechanism to Add the WebDriver Extension
파일 보기 프로젝트 열기: epall/selenium 1 사용 예제들

공개 메소드들

메소드 설명
ChromeExtension ( ) : System

Initializes a new instance of the ChromeExtension class. Assumes that the directory exists and has the required

ChromeExtension ( string directory ) : System

Initializes a new instance of the ChromeExtension class. Assumes that the directory exists and has the required

FindChromeExtensionDir ( ) : string

Searches for the Chrome extension directory to use. Will first check the directory specified by the {@code webdriver.chrome.extensiondir} system property, and then will check the current classpath for {@code chrome-extension.zip}.

비공개 메소드들

메소드 설명
CheckExtensionForManifest ( string directory ) : string

Verifies that the given {@code directory} is a valid Chrome extension directory. Will check if the directory has the required {@code manifest.json} file. If not, it will check for the correct platform manifest and copy it over.

LoadExtension ( ) : string

메소드 상세

ChromeExtension() 공개 메소드

Initializes a new instance of the ChromeExtension class. Assumes that the directory exists and has the required
public ChromeExtension ( ) : System
리턴 System

ChromeExtension() 공개 메소드

Initializes a new instance of the ChromeExtension class. Assumes that the directory exists and has the required
public ChromeExtension ( string directory ) : System
directory string The directory to use as the Chrome extension.
리턴 System

FindChromeExtensionDir() 공개 정적인 메소드

Searches for the Chrome extension directory to use. Will first check the directory specified by the {@code webdriver.chrome.extensiondir} system property, and then will check the current classpath for {@code chrome-extension.zip}.
public static FindChromeExtensionDir ( ) : string
리턴 string