

The method should return "The Maltese is a breed of dog in the toy group.".

Otherwise, the method should return null.įor example, if getLoadedData is called with a WebDriver instance with the following page loaded, provided here and below: ĭocument.getElementById("load-button").disabled = true ĭocument.getElementById("content").innerHTML = "The Maltese is a breed of dog in the toy group." ĭocument.getElementById("load-button").disabled = false The method should click the button with the id "load-button" and wait up to 1 second for the button to become enabled again. If the button gets re-enabled in 1 second, the method should return the content of the paragraph with the id "content" as soon as possible. One thing common to many pages that they want to test is dynamic loading of data, and they want to test if it's fast enough.įinish the getLoadedData method that accepts a WebDriver instance that has the desired page loaded. A pet wiki wants to add Selenium tests for their website. Jawa 8 Online Compiler Java 8, the latest release for Java, contains smart features, extensions, and bug fixers to improve development productivity.
