English 中文(简体)
特定指挥的二级规定时间
原标题:Selenium 2 set timeout for specific commands

我有一个指挥<条码>网络驱动器。 我想减少这一具体指挥的时间,但并没有找到办法。 如何做?

如果可能的话,我会把时间定在零,但随后在发出警报后又回到违约状态。

<>Update>

这为 Sel核心功能,即使用:

    try {
        // TODO PERFORMANCE PROBLEM BECAUSE OF TIMEOUT IF NO ALERT EXISTS
        Alert alert = webDriver.switchTo().alert();

        // check if alert exists
        if(alert != null) {
            String alertText = alert.getText();

            // TODO alert handling
            log.info("Alert detected: {}", alertText);
        }
    } catch (Exception e) {
        // timeout if alert does not exist
    }
最佳回答

如果看不出这种方法的总结,我就不得不作一gues。 我的猜测是,在等待报警或某些其他职能时,你把此事总结下来,直到该网页装上或文件上。 准备就绪。 无论怎样阻止文字,都应加以核查,在辩论和通过方法进行申请。 如果你想增加一些法典,我或许能够帮助你。

页: 1 页: 1

您这样做的唯一途径是扩大Selenium名称空间的警戒等级。 我猜测,它使用某种形式的 j印,转而发出警告,你应该能够说明第一次审判失败。 我可以给你任何具体的法典,因为我找不到警报班的来源。

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签