class Puppeteer::Frame def Sx1(x) self.Sx(x).first end def eval_ruby(ruby_source = '', &block) @main_world.eval_ruby(ruby_source, &block) end def eval_with_opal(ruby_source = '', &block) @main_world.eval_with_opal(ruby_source, &block) end def await_ruby(ruby_source = '', &block) @main_world.await_ruby(ruby_source, &block) end alias_method :find, :query_selector alias_method :_original_goto, :goto def goto(uri, referer: nil, timeout: nil, wait_until: nil) parsed_uri = URI.parse(uri) app = Isomorfeus::Puppetmaster.served_app unless parsed_uri.host && parsed_uri.scheme parsed_uri.host = app.host parsed_uri.port = app.port parsed_uri.scheme = app.scheme end _original_goto(parsed_uri.to_s, referer: referer, timeout: timeout, wait_until: wait_until) end alias_method :visit, :goto end