Image クラス
スクリーンショットや画像ファイルの読み込み、リサイズ、重ね合わせ、ピクセル比較、クリップボード連携など、テストで画像を扱うためのクラスです。
継承階層
SystemObject
  SeleniumImage

名前空間: Selenium
アセンブリ: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
構文
VB 使用例
Dim instance As Image

Image には次のメンバーが定義されています。

コンストラクター
  名前説明
公開メソッドImage(Bitmap)
Creates an image object from a bitmap
公開メソッドImage(MemoryStream)
Creates an image object from bytes.
ページ先頭
メソッド
  名前説明
公開メソッドCompareTo
Compare to the provided image
公開メソッドCopy
Copy the image to the Clipboard.
公開メソッドDispose
Empty the image ans release all the ressources.
公開メソッドEquals
Return true if images are the same.
(Overrides ObjectEquals(Object).)
公開メソッドGetBitmap
Returns the underlying Bitmap
公開メソッドGetHashCode
ハッシュコードを返します。
(Overrides ObjectGetHashCode.)
公開メソッドLoad
Load an image file
公開メソッドResize
Resizes the current image
公開メソッドSaveAs
Save the image to a file. Supported format: png, bmp, gif and jpg.
公開メソッドToExcel
Insert the image in an Excel sheet.
公開メソッドToString
Returns object description
(Overrides ObjectToString.)
ページ先頭
演算子
プロパティ
  名前説明
公開プロパティCRC
Returns the image CRC32 hash in hexadecimal.
公開プロパティDiffCount
Number of non matching pixels resulted from a comparison.
公開プロパティHeight
Image height.
公開プロパティWidth
Image width.
ページ先頭
Take a screenshot and save it in a file on the desktop :
driver.TakeScreenShoot().SaveAs "%USERPROFILE%\Desktop\capture_{yyyyMMdd-HHmmss}.png"
参照