History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SRC-356
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Nelson Sproul
Reporter: Artem Gorbunov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Selenium Remote Control

Wait class constructors

Created: 28/Sep/07 06:55 AM   Updated: 22/Mar/08 05:53 PM
Component/s: Client Driver - Java
Affects Version/s: 0.9.2
Fix Version/s: 1.0

Original Estimate: 2h Remaining Estimate: 2h Time Spent: Unknown


 Description  « Hide
Tests written for RC 0.9.0 couldn't be compiled with RC 0.9.2 due to incompatible changes in the Wait class.

Published API of the previous and new version:
public abstract class Wait {
    public Wait(String message);
    public Wait(String message, long timeoutInMilliseconds);
    public Wait(String message, long timeoutInMilliseconds, long intervalInMilliseconds);
}

Actual code in the new version:
public abstract class Wait {
    public void wait(String message);
    public void wait(String message, long timeoutInMilliseconds);
    public void wait(String message, long timeoutInMilliseconds, long intervalInMilliseconds);
}

 All   Comments   Work Log   Change History      Sort Order:
Artem Gorbunov - 03/Oct/07 06:03 AM
Here is an example that can't be compiled with the new version:

new Wait("Close button not found") {
    boolean until() {
        return selenium.isElementPresent("button_Close");
    }
};

Artem Gorbunov - 17/Feb/08 03:48 PM
Also reported in the documentation section.
http://jira.openqa.org/browse/SRC-424

Nelson Sproul - 22/Mar/08 05:53 PM
Revision 2214 adds new ctor conforming to doc.