Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
change script to handle jquery found no js-loader in firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed May 13, 2015
1 parent 5cd12a2 commit 9745c4f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -302,7 +302,7 @@ private void waitForLoaders() {
public boolean apply(WebDriver input) {
// Find all elements with class name js-loader, or return []
String script = "return (typeof $ == 'undefined') ? [] : " +
"$('.js-loader')";
"$('.js-loader').toArray()";
@SuppressWarnings("unchecked")
List<WebElement> loaders = (List<WebElement>) getExecutor()
.executeScript(script);
Expand Down

0 comments on commit 9745c4f

Please sign in to comment.