rb/lib/selenium/client/extensions.rb
def wait_for_element(locator, options={})
        builder = JavascriptExpressionBuilder.new
        builder.find_element(locator).append("element != null;")
        wait_for_condition builder.script, options[:timeout_in_seconds]
      end
# Wait for an element to be present (the wait happens in the browser).
Wait for an element to be present (the wait happens in the browser).
Wait for an element to be present ( the wait happens in the browser ) .
def wait_for_element(locator, options={})
        builder = JavascriptExpressionBuilder.new
        builder.find_element(locator).append("element != null;")
        wait_for_condition builder.script, options[:timeout_in_seconds]
      end
def wait_for_element ( locator , options = { } ) builder = JavascriptExpressionBuilder . new builder . find_element ( locator ) . append ( "element != null;" ) wait_for_condition builder . script , options [ :timeout_in_seconds ] end
Wait for an element to be present (the wait happens in the browser).
Wait for an element to be present ( the wait happens in the browser ) .
locator
options