0

Selenium webdriver の待機機能について助けが必要です。
「進行中のポップアップ」が消えるのを待つ次のコードがあります。数秒だけ待ってスクリプトを終了するようです。他のオプションを教えてください。

public static void ProcessingData() throws Exception {
    WebDriverWait wait1 = new WebDriverWait( driver , 180 ); 


    wait1.until(ExpectedConditions.invisibilityOfElementLocated(By.xpath("//div[@class='dijitDialogPaneContent']/div/p/b[contains(text()='Processing ...']")));
}
4

2 に答える 2

1

I'd take a closer look at your xpath selector... you are providing

...b[contains(text()='Processing ...']

If you know that the text is equal to processing, then you should use

...b[text()='Processing ...'].

If you know that the text CONTAINS Processing ... then you should use,

...b[contains(text(), 'Processing ...']

于 2013-01-07T15:10:51.487 に答える
1

タイムアウトを に設定しました180。これは180 ミリ秒です。あなたはおそらく180を意味しますか?を使用します180000

于 2013-01-07T14:18:08.340 に答える