public class BrowserApplication extends Window
メモ:
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
BrowserApplication(JtfObjectHandle handle,
Desktop desktop)
JtfObjectHandle を持つ新しい BrowserApplication を作成します。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
clearCache()
ブラウザーのキャッシュをクリアします。
|
void |
clearCache(int option)
ブラウザーのキャッシュをクリアします。
|
void |
closeOtherTabs()
アクティブなタブ以外のすべてのタブを閉じます。
|
BrowserWindow |
closeTab()
指定したタブを閉じます。
|
BrowserWindow |
closeTab(int tabIndex)
指定したタブを閉じます。
|
BrowserWindow |
closeTab(ItemIdentifier tab)
指定したタブを閉じます。
|
BrowserWindow |
closeTab(String tabText)
指定したタブを閉じます。
|
boolean |
existsTab(int tabIndex)
タブが存在する場合に true、それ以外は false を返します。
|
boolean |
existsTab(ItemIdentifier tab)
タブが存在する場合に true、それ以外は false を返します。
|
boolean |
existsTab(String tabText)
タブが存在する場合に true、それ以外は false を返します。
|
BrowserWindow |
getActiveTab()
非推奨です。
Silk Test 2011 以降では、代わりに
GetSelectedTab メソッドを使用してください。 |
BrowserWindow |
getSelectedTab()
現在選択されているタブを返します。
|
int |
getSelectedTabIndex()
アクティブなタブのインデックスを返します。
|
String |
getSelectedTabName()
アクティブなタブの名前を返します。
|
int |
getTabCount()
開いているタブの数を返します。
|
void |
navigate(String url)
現在アクティブなタブ/ウィンドウで指定した URL に移動します。
|
BrowserWindow |
openTab()
新しいタブを開き、指定した URL に移動します。
|
BrowserWindow |
openTab(String url)
新しいタブを開き、指定した URL に移動します。
|
BrowserWindow |
selectTab(int tabIndex)
指定したタブを選択します。
|
BrowserWindow |
selectTab(ItemIdentifier tab)
指定したタブを選択します。
|
BrowserWindow |
selectTab(String tabText)
指定したタブを選択します。
|
close, closeSynchron, closeSynchron, getApplication, getCloseWindows, getFocus, getNextCloseWindow, getWindowState, isActive, maximize, minimize, move, restore, setActive, sizegetHorizontalBar, getVerticalBar, openContextMenu, openContextMenuclick, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getBackground, getFont, getForeground, getNativeHandle, isEnabled, isFocused, isVisible, mouseMove, mouseMove, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setBackground, setEnabled, setFocus, setFont, setForeground, setVisible, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeyscaptureBitmap, 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, waitForPropertyequals, 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, toStringprotected BrowserApplication(JtfObjectHandle handle, Desktop desktop)
handle - BrowserApplication を識別するハンドルdesktop - このオブジェクトが存在するデスクトップpublic void clearCache()
このメソッドは Internet Explorer でのみサポートされています。
public void clearCache(int option)
このメソッドは Internet Explorer でのみサポートされています。
option - 0: すべて削除。 1: インターネット一時ファイルの削除。 3: Cookie の削除。public void closeOtherTabs()
public BrowserWindow closeTab()
public BrowserWindow closeTab(ItemIdentifier tab)
tab - 閉じるタブ。 タブ名には、ワイルドカード '*' および '?' を含むことができます。public BrowserWindow closeTab(String tabText)
tabText - 閉じるタブ。 タブ名には、ワイルドカード '*' および '?' を含むことができます。public BrowserWindow closeTab(int tabIndex)
tabIndex - 閉じるタブ。 タブ名には、ワイルドカード '*' および '?' を含むことができます。public boolean existsTab(ItemIdentifier tab)
tab - タブの場所を決定する項目識別子public boolean existsTab(String tabText)
tabText - タブの場所を決定する項目識別子public boolean existsTab(int tabIndex)
tabIndex - タブの場所を決定する項目識別子public BrowserWindow getActiveTab()
GetSelectedTab メソッドを使用してください。public BrowserWindow getSelectedTab()
public int getSelectedTabIndex()
public String getSelectedTabName()
public int getTabCount()
public void navigate(String url)
url - 移動する URLpublic BrowserWindow openTab()
public BrowserWindow openTab(String url)
url - 新しいタブで移動する URLpublic BrowserWindow selectTab(ItemIdentifier tab)
tab - 選択するタブ。 タブ名には、ワイルドカード '*' および '?' を含むことができます。public BrowserWindow selectTab(String tabText)
tabText - 選択するタブ。 タブ名には、ワイルドカード '*' および '?' を含むことができます。public BrowserWindow selectTab(int tabIndex)
tabIndex - 選択するタブ。 タブ名には、ワイルドカード '*' および '?' を含むことができます。Copyright 2009-2012 Micro Focus. All Rights Reserved.