public class BrowserWindow extends BrowserObject
修飾子 | コンストラクタと説明 |
---|---|
protected |
BrowserWindow(JtfObjectHandle handle,
Desktop desktop)
JtfObjectHandle を持つ新しい BrowserWindow を作成します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
acceptAlert()
OK を押して JavaScript 警告を承認します。
|
void |
acceptAlert(String promptInput)
OK を押して JavaScript 警告を承認します。
|
void |
back()
履歴の "戻る" エントリに移動します。
|
void |
close()
モーダル ブラウザー ダイアログ、ブラウザーのタブ、または最後のタブの場合は (または IE6 の場合) ブラウザー自身を閉じます。
|
void |
dismissAlert()
JavaScript 警告を解除します。
|
void |
executeJavaScript(String code)
トップ レベル ドキュメントのコンテキストで JavaScript コードを評価します。
|
void |
forward()
履歴の "進む" エントリに移動します。
|
String |
getAlertText()
JavaScript 警告のメッセージ テキストを取得します。
|
int |
getBrowserMajorVersion()
ブラウザーのメジャー バージョン番号を返します。
|
Rect |
getHtmlRect()
BrowserWindow の矩形領域を HTML ピクセルで取得します。
|
String |
getUrl()
メイン ドキュメントの URL を返します。
|
String |
getUserAgent()
ブラウザーのユーザー エージェント文字列を返します。
|
boolean |
isAlertPresent()
JavaScript 警告が開いている場合に true を返します。
|
void |
navigate(String url)
メイン ドキュメントを URL に移動します。
|
void |
reload()
ブラウザーの再読み込みボタンの動作と同様に、メイン ドキュメントを再読み込みします。
|
void |
reload(boolean bypassCache)
ブラウザーの再読み込みボタンの動作と同様に、メイン ドキュメントを再読み込みします。
|
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, isVisible, mouseMove, mouseMove, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setFocus, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getText, getValue, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForProperty
equals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toString
protected BrowserWindow(JtfObjectHandle handle, Desktop desktop)
handle
- BrowserWindow を識別するハンドルdesktop
- このオブジェクトが存在するデスクトップpublic void acceptAlert()
public void acceptAlert(String promptInput)
promptInput
- JavaScript 警告に入力が求められている場合、このテキストが警告に渡されますpublic void back()
public void close()
public void dismissAlert()
public void executeJavaScript(String code)
code
- 評価する JavaScript コードpublic void forward()
public String getAlertText()
public int getBrowserMajorVersion()
public Rect getHtmlRect()
public String getUrl()
public String getUserAgent()
public boolean isAlertPresent()
public void navigate(String url)
url
- 移動する URLpublic void reload()
public void reload(boolean bypassCache)
bypassCache
- キャッシュを通さない場合は true を設定します。 Windows Internet Explorer や Mozilla Firefox で Ctrl+F5 を押した場合と同様の処理となります。 Google Chrome を使用している場合は、このパラメーターを設定しても効果はありません。Copyright 2009-2012 Micro Focus. All Rights Reserved.