# frozen_string_literal: trueclassCapybara::Driver::Baseattr_writer:sessiondefcurrent_urlraiseNotImplementedErrorenddefvisit(path)raiseNotImplementedErrorenddefrefreshraiseNotImplementedErrorenddeffind_xpath(query)raiseNotImplementedErrorenddeffind_css(query)raiseNotImplementedErrorenddefhtmlraiseNotImplementedErrorenddefgo_backraiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#go_back'enddefgo_forwardraiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#go_forward'enddefexecute_script(script,*args)raiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#execute_script'enddefevaluate_script(script,*args)raiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#evaluate_script'enddefevaluate_async_script(script,*args)raiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#evaluate_script_asnyc'enddefsave_screenshot(path,**options)raiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#save_screenshot'enddefresponse_headersraiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#response_headers'enddefstatus_coderaiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#status_code'end#### @param frame [Capybara::Node::Element, :parent, :top] The iframe element to switch to#defswitch_to_frame(frame)raiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#switch_to_frame'enddefframe_titlefind_xpath('/html/head/title').map(&:all_text).first.to_senddefframe_urlevaluate_script('document.location.href')rescueCapybara::NotSupportedByDriverErrorraiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#frame_title'enddefcurrent_window_handleraiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#current_window_handle'enddefwindow_size(handle)raiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#window_size'enddefresize_window_to(handle,width,height)raiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#resize_window_to'enddefmaximize_window(handle)raiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#maximize_current_window'enddefclose_window(handle)raiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#close_window'enddefwindow_handlesraiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#window_handles'enddefopen_new_windowraiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#open_new_window'enddefswitch_to_window(handle)raiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#switch_to_window'enddefno_such_window_errorraiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#no_such_window_error'end#### Execute the block, and then accept the modal opened.# @param type [:alert, :confirm, :prompt]# @option options [Numeric] :wait How long to wait for the modal to appear after executing the block.# @option options [String, Regexp] :text Text to verify is in the message shown in the modal# @option options [String] :with Text to fill in in the case of a prompt# @return [String] the message shown in the modal# @raise [Capybara::ModalNotFound] if modal dialog hasn't been found#defaccept_modal(type,**options,&blk)raiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#accept_modal'end#### Execute the block, and then dismiss the modal opened.# @param type [:alert, :confirm, :prompt]# @option options [Numeric] :wait How long to wait for the modal to appear after executing the block.# @option options [String, Regexp] :text Text to verify is in the message shown in the modal# @return [String] the message shown in the modal# @raise [Capybara::ModalNotFound] if modal dialog hasn't been found#defdismiss_modal(type,**options,&blk)raiseCapybara::NotSupportedByDriverError,'Capybara::Driver::Base#dismiss_modal'enddefinvalid_element_errors[]enddefwait?falseenddefreset!;enddefneeds_server?falseenddefsession_options(@session&&@session.config)||Capybara.session_optionsendend