diff --git a/404.html b/404.html index 43bf3ce..e062df1 100644 --- a/404.html +++ b/404.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ -
"0.11.0"
+ VERSION = "0.12.0"
I want to have seperate actions for each type (pause, pointer, key) but when I did that, I wasn't able to get the type union or inheritance working for some reason
","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/action.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new(type:String,duration:Int32|Nil=nil,value:Char|Nil=nil,button:Int32|Nil=nil,origin:Nil|String=nil,x:Int32|Nil=nil,y:Int32|Nil=nil)-class-method","name":"new","abstract":false,"args":[{"name":"type","external_name":"type","restriction":"::String"},{"name":"duration","default_value":"nil","external_name":"duration","restriction":"::Int32 | ::Nil"},{"name":"value","default_value":"nil","external_name":"value","restriction":"Char | ::Nil"},{"name":"button","default_value":"nil","external_name":"button","restriction":"::Int32 | ::Nil"},{"name":"origin","default_value":"nil","external_name":"origin","restriction":"::Nil | ::String"},{"name":"x","default_value":"nil","external_name":"x","restriction":"::Int32 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"::Int32 | ::Nil"}],"args_string":"(type : String, duration : Int32 | Nil = nil, value : Char | Nil = nil, button : Int32 | Nil = nil, origin : Nil | String = nil, x : Int32 | Nil = nil, y : Int32 | Nil = nil)","args_html":"(type : String, duration : Int32 | Nil = nil, value : Char | Nil = nil, button : Int32 | Nil = nil, origin : Nil | String = nil, x : Int32 | Nil = nil, y : Int32 | Nil = nil)","location":{"filename":"src/selenium/action.cr","line_number":16,"url":null},"def":{"name":"new","args":[{"name":"type","external_name":"type","restriction":"::String"},{"name":"duration","default_value":"nil","external_name":"duration","restriction":"::Int32 | ::Nil"},{"name":"value","default_value":"nil","external_name":"value","restriction":"Char | ::Nil"},{"name":"button","default_value":"nil","external_name":"button","restriction":"::Int32 | ::Nil"},{"name":"origin","default_value":"nil","external_name":"origin","restriction":"::Nil | ::String"},{"name":"x","default_value":"nil","external_name":"x","restriction":"::Int32 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"::Int32 | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(type, duration, value, button, origin, x, y)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"button:Int32|Nil-instance-method","name":"button","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":8,"url":null},"def":{"name":"button","return_type":"Int32 | ::Nil","visibility":"Public","body":"@button"}},{"html_id":"duration:Int32|Nil-instance-method","name":"duration","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":7,"url":null},"def":{"name":"duration","return_type":"Int32 | ::Nil","visibility":"Public","body":"@duration"}},{"html_id":"origin:String|Nil-instance-method","name":"origin","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":9,"url":null},"def":{"name":"origin","return_type":"String | ::Nil","visibility":"Public","body":"@origin"}},{"html_id":"type:String-instance-method","name":"type","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":6,"url":null},"def":{"name":"type","return_type":"String","visibility":"Public","body":"@type"}},{"html_id":"value:Char|Nil-instance-method","name":"value","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":28,"url":null},"def":{"name":"value","return_type":"Char | ::Nil","visibility":"Public","body":"value.try(&.char_at(0))"}},{"html_id":"x:Int32|Nil-instance-method","name":"x","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":10,"url":null},"def":{"name":"x","return_type":"Int32 | ::Nil","visibility":"Public","body":"@x"}},{"html_id":"y:Int32|Nil-instance-method","name":"y","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":11,"url":null},"def":{"name":"y","return_type":"Int32 | ::Nil","visibility":"Public","body":"@y"}}]},{"html_id":"selenium/Selenium/ActionSequence","path":"Selenium/ActionSequence.html","kind":"alias","full_name":"Selenium::ActionSequence","name":"ActionSequence","abstract":false,"locations":[{"filename":"src/selenium/types.cr","line_number":5,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":true,"aliased":"Array(Selenium::InputSourceActionSequence)","aliased_html":"Array(Selenium::InputSourceActionSequence)","const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/AlertManager","path":"Selenium/AlertManager.html","kind":"class","full_name":"Selenium::AlertManager","name":"AlertManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/alert_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String)-class-method","name":"new","abstract":false,"args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String)","location":{"filename":"src/selenium/alert_manager.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"accept_alert-instance-method","name":"accept_alert","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":19,"url":null},"def":{"name":"accept_alert","visibility":"Public","body":"command_handler.execute(:accept_alert, path_variables)"}},{"html_id":"alert_text-instance-method","name":"alert_text","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":13,"url":null},"def":{"name":"alert_text","visibility":"Public","body":"data = command_handler.execute(:get_alert_text, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"dismiss_alert-instance-method","name":"dismiss_alert","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":23,"url":null},"def":{"name":"dismiss_alert","visibility":"Public","body":"command_handler.execute(:dismiss_alert, path_variables)"}},{"html_id":"send_alert_text(text)-instance-method","name":"send_alert_text","abstract":false,"args":[{"name":"text","external_name":"text","restriction":""}],"args_string":"(text)","args_html":"(text)","location":{"filename":"src/selenium/alert_manager.cr","line_number":8,"url":null},"def":{"name":"send_alert_text","args":[{"name":"text","external_name":"text","restriction":""}],"visibility":"Public","body":"parameters = {text: text}\ncommand_handler.execute(:send_alert_text, path_variables, parameters)\n"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}}]},{"html_id":"selenium/Selenium/BaseError","path":"Selenium/BaseError.html","kind":"class","full_name":"Selenium::BaseError","name":"BaseError","abstract":true,"superclass":{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},"ancestors":[{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/errors.cr","line_number":2,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"selenium/Selenium/InvalidTagError","kind":"class","full_name":"Selenium::InvalidTagError","name":"InvalidTagError"},{"html_id":"selenium/Selenium/UnsupportedOperationError","kind":"class","full_name":"Selenium::UnsupportedOperationError","name":"UnsupportedOperationError"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/Capabilities","path":"Selenium/Capabilities.html","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"subclasses":[{"html_id":"selenium/Selenium/Chrome/Capabilities","kind":"class","full_name":"Selenium::Chrome::Capabilities","name":"Capabilities"},{"html_id":"selenium/Selenium/Firefox/Capabilities","kind":"class","full_name":"Selenium::Firefox::Capabilities","name":"Capabilities"},{"html_id":"selenium/Selenium/Safari/Capabilities","kind":"class","full_name":"Selenium::Safari::Capabilities","name":"Capabilities"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/capabilities.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":4,"url":null},"def":{"name":"new","visibility":"Public","body":"_ = allocate\n_.initialize\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"accept_insecure_certs:Bool|Nil-instance-method","name":"accept_insecure_certs","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":17,"url":null},"def":{"name":"accept_insecure_certs","return_type":"Bool | ::Nil","visibility":"Public","body":"@accept_insecure_certs"}},{"html_id":"accept_insecure_certs=(accept_insecure_certs:Bool|Nil)-instance-method","name":"accept_insecure_certs=","abstract":false,"args":[{"name":"accept_insecure_certs","external_name":"accept_insecure_certs","restriction":"Bool | ::Nil"}],"args_string":"(accept_insecure_certs : Bool | Nil)","args_html":"(accept_insecure_certs : Bool | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":17,"url":null},"def":{"name":"accept_insecure_certs=","args":[{"name":"accept_insecure_certs","external_name":"accept_insecure_certs","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@accept_insecure_certs = accept_insecure_certs"}},{"html_id":"browser_name:String|Nil-instance-method","name":"browser_name","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":8,"url":null},"def":{"name":"browser_name","return_type":"String | ::Nil","visibility":"Public","body":"@browser_name"}},{"html_id":"browser_name=(browser_name:String|Nil)-instance-method","name":"browser_name=","abstract":false,"args":[{"name":"browser_name","external_name":"browser_name","restriction":"String | ::Nil"}],"args_string":"(browser_name : String | Nil)","args_html":"(browser_name : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":8,"url":null},"def":{"name":"browser_name=","args":[{"name":"browser_name","external_name":"browser_name","restriction":"String | ::Nil"}],"visibility":"Public","body":"@browser_name = browser_name"}},{"html_id":"browser_version:String|Nil-instance-method","name":"browser_version","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":11,"url":null},"def":{"name":"browser_version","return_type":"String | ::Nil","visibility":"Public","body":"@browser_version"}},{"html_id":"browser_version=(browser_version:String|Nil)-instance-method","name":"browser_version=","abstract":false,"args":[{"name":"browser_version","external_name":"browser_version","restriction":"String | ::Nil"}],"args_string":"(browser_version : String | Nil)","args_html":"(browser_version : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":11,"url":null},"def":{"name":"browser_version=","args":[{"name":"browser_version","external_name":"browser_version","restriction":"String | ::Nil"}],"visibility":"Public","body":"@browser_version = browser_version"}},{"html_id":"page_load_strategy:String|Nil-instance-method","name":"page_load_strategy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":20,"url":null},"def":{"name":"page_load_strategy","return_type":"String | ::Nil","visibility":"Public","body":"@page_load_strategy"}},{"html_id":"page_load_strategy=(page_load_strategy:String|Nil)-instance-method","name":"page_load_strategy=","abstract":false,"args":[{"name":"page_load_strategy","external_name":"page_load_strategy","restriction":"String | ::Nil"}],"args_string":"(page_load_strategy : String | Nil)","args_html":"(page_load_strategy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":20,"url":null},"def":{"name":"page_load_strategy=","args":[{"name":"page_load_strategy","external_name":"page_load_strategy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@page_load_strategy = page_load_strategy"}},{"html_id":"platform_name:String|Nil-instance-method","name":"platform_name","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":14,"url":null},"def":{"name":"platform_name","return_type":"String | ::Nil","visibility":"Public","body":"@platform_name"}},{"html_id":"platform_name=(platform_name:String|Nil)-instance-method","name":"platform_name=","abstract":false,"args":[{"name":"platform_name","external_name":"platform_name","restriction":"String | ::Nil"}],"args_string":"(platform_name : String | Nil)","args_html":"(platform_name : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":14,"url":null},"def":{"name":"platform_name=","args":[{"name":"platform_name","external_name":"platform_name","restriction":"String | ::Nil"}],"visibility":"Public","body":"@platform_name = platform_name"}},{"html_id":"proxy:ProxyConfiguration|Nil-instance-method","name":"proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":22,"url":null},"def":{"name":"proxy","return_type":"ProxyConfiguration | ::Nil","visibility":"Public","body":"@proxy"}},{"html_id":"proxy=(proxy:ProxyConfiguration|Nil)-instance-method","name":"proxy=","abstract":false,"args":[{"name":"proxy","external_name":"proxy","restriction":"ProxyConfiguration | ::Nil"}],"args_string":"(proxy : ProxyConfiguration | Nil)","args_html":"(proxy : ProxyConfiguration | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":22,"url":null},"def":{"name":"proxy=","args":[{"name":"proxy","external_name":"proxy","restriction":"ProxyConfiguration | ::Nil"}],"visibility":"Public","body":"@proxy = proxy"}},{"html_id":"set_window_rect:Bool|Nil-instance-method","name":"set_window_rect","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":25,"url":null},"def":{"name":"set_window_rect","return_type":"Bool | ::Nil","visibility":"Public","body":"@set_window_rect"}},{"html_id":"set_window_rect=(set_window_rect:Bool|Nil)-instance-method","name":"set_window_rect=","abstract":false,"args":[{"name":"set_window_rect","external_name":"set_window_rect","restriction":"Bool | ::Nil"}],"args_string":"(set_window_rect : Bool | Nil)","args_html":"(set_window_rect : Bool | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":25,"url":null},"def":{"name":"set_window_rect=","args":[{"name":"set_window_rect","external_name":"set_window_rect","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@set_window_rect = set_window_rect"}},{"html_id":"strict_file_interactability:Bool|Nil-instance-method","name":"strict_file_interactability","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":30,"url":null},"def":{"name":"strict_file_interactability","return_type":"Bool | ::Nil","visibility":"Public","body":"@strict_file_interactability"}},{"html_id":"strict_file_interactability=(strict_file_interactability:Bool|Nil)-instance-method","name":"strict_file_interactability=","abstract":false,"args":[{"name":"strict_file_interactability","external_name":"strict_file_interactability","restriction":"Bool | ::Nil"}],"args_string":"(strict_file_interactability : Bool | Nil)","args_html":"(strict_file_interactability : Bool | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":30,"url":null},"def":{"name":"strict_file_interactability=","args":[{"name":"strict_file_interactability","external_name":"strict_file_interactability","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@strict_file_interactability = strict_file_interactability"}},{"html_id":"timeouts:TimeoutConfiguration|Nil-instance-method","name":"timeouts","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":27,"url":null},"def":{"name":"timeouts","return_type":"TimeoutConfiguration | ::Nil","visibility":"Public","body":"@timeouts"}},{"html_id":"timeouts=(timeouts:TimeoutConfiguration|Nil)-instance-method","name":"timeouts=","abstract":false,"args":[{"name":"timeouts","external_name":"timeouts","restriction":"TimeoutConfiguration | ::Nil"}],"args_string":"(timeouts : TimeoutConfiguration | Nil)","args_html":"(timeouts : TimeoutConfiguration | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":27,"url":null},"def":{"name":"timeouts=","args":[{"name":"timeouts","external_name":"timeouts","restriction":"TimeoutConfiguration | ::Nil"}],"visibility":"Public","body":"@timeouts = timeouts"}},{"html_id":"unhandled_prompt_behavior:String|Nil-instance-method","name":"unhandled_prompt_behavior","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":33,"url":null},"def":{"name":"unhandled_prompt_behavior","return_type":"String | ::Nil","visibility":"Public","body":"@unhandled_prompt_behavior"}},{"html_id":"unhandled_prompt_behavior=(unhandled_prompt_behavior:String|Nil)-instance-method","name":"unhandled_prompt_behavior=","abstract":false,"args":[{"name":"unhandled_prompt_behavior","external_name":"unhandled_prompt_behavior","restriction":"String | ::Nil"}],"args_string":"(unhandled_prompt_behavior : String | Nil)","args_html":"(unhandled_prompt_behavior : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":33,"url":null},"def":{"name":"unhandled_prompt_behavior=","args":[{"name":"unhandled_prompt_behavior","external_name":"unhandled_prompt_behavior","restriction":"String | ::Nil"}],"visibility":"Public","body":"@unhandled_prompt_behavior = unhandled_prompt_behavior"}}],"types":[{"html_id":"selenium/Selenium/Capabilities/ProxyConfiguration","path":"Selenium/Capabilities/ProxyConfiguration.html","kind":"class","full_name":"Selenium::Capabilities::ProxyConfiguration","name":"ProxyConfiguration","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/capabilities.cr","line_number":35,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/capabilities.cr","line_number":36,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"ftp_proxy:String|Nil-instance-method","name":"ftp_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":45,"url":null},"def":{"name":"ftp_proxy","return_type":"String | ::Nil","visibility":"Public","body":"@ftp_proxy"}},{"html_id":"ftp_proxy=(ftp_proxy:String|Nil)-instance-method","name":"ftp_proxy=","abstract":false,"args":[{"name":"ftp_proxy","external_name":"ftp_proxy","restriction":"String | ::Nil"}],"args_string":"(ftp_proxy : String | Nil)","args_html":"(ftp_proxy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":45,"url":null},"def":{"name":"ftp_proxy=","args":[{"name":"ftp_proxy","external_name":"ftp_proxy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@ftp_proxy = ftp_proxy"}},{"html_id":"http_proxy:String|Nil-instance-method","name":"http_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":48,"url":null},"def":{"name":"http_proxy","return_type":"String | ::Nil","visibility":"Public","body":"@http_proxy"}},{"html_id":"http_proxy=(http_proxy:String|Nil)-instance-method","name":"http_proxy=","abstract":false,"args":[{"name":"http_proxy","external_name":"http_proxy","restriction":"String | ::Nil"}],"args_string":"(http_proxy : String | Nil)","args_html":"(http_proxy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":48,"url":null},"def":{"name":"http_proxy=","args":[{"name":"http_proxy","external_name":"http_proxy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@http_proxy = http_proxy"}},{"html_id":"no_proxy:Array(String)|Nil-instance-method","name":"no_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":51,"url":null},"def":{"name":"no_proxy","return_type":"Array(String) | ::Nil","visibility":"Public","body":"@no_proxy"}},{"html_id":"no_proxy=(no_proxy:Array(String)|Nil)-instance-method","name":"no_proxy=","abstract":false,"args":[{"name":"no_proxy","external_name":"no_proxy","restriction":"Array(String) | ::Nil"}],"args_string":"(no_proxy : Array(String) | Nil)","args_html":"(no_proxy : Array(String) | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":51,"url":null},"def":{"name":"no_proxy=","args":[{"name":"no_proxy","external_name":"no_proxy","restriction":"Array(String) | ::Nil"}],"visibility":"Public","body":"@no_proxy = no_proxy"}},{"html_id":"proxy_autoconfig_url:String|Nil-instance-method","name":"proxy_autoconfig_url","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":42,"url":null},"def":{"name":"proxy_autoconfig_url","return_type":"String | ::Nil","visibility":"Public","body":"@proxy_autoconfig_url"}},{"html_id":"proxy_autoconfig_url=(proxy_autoconfig_url:String|Nil)-instance-method","name":"proxy_autoconfig_url=","abstract":false,"args":[{"name":"proxy_autoconfig_url","external_name":"proxy_autoconfig_url","restriction":"String | ::Nil"}],"args_string":"(proxy_autoconfig_url : String | Nil)","args_html":"(proxy_autoconfig_url : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":42,"url":null},"def":{"name":"proxy_autoconfig_url=","args":[{"name":"proxy_autoconfig_url","external_name":"proxy_autoconfig_url","restriction":"String | ::Nil"}],"visibility":"Public","body":"@proxy_autoconfig_url = proxy_autoconfig_url"}},{"html_id":"proxy_type:String|Nil-instance-method","name":"proxy_type","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":39,"url":null},"def":{"name":"proxy_type","return_type":"String | ::Nil","visibility":"Public","body":"@proxy_type"}},{"html_id":"proxy_type=(proxy_type:String|Nil)-instance-method","name":"proxy_type=","abstract":false,"args":[{"name":"proxy_type","external_name":"proxy_type","restriction":"String | ::Nil"}],"args_string":"(proxy_type : String | Nil)","args_html":"(proxy_type : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":39,"url":null},"def":{"name":"proxy_type=","args":[{"name":"proxy_type","external_name":"proxy_type","restriction":"String | ::Nil"}],"visibility":"Public","body":"@proxy_type = proxy_type"}},{"html_id":"socks_proxy:String|Nil-instance-method","name":"socks_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":57,"url":null},"def":{"name":"socks_proxy","return_type":"String | ::Nil","visibility":"Public","body":"@socks_proxy"}},{"html_id":"socks_proxy=(socks_proxy:String|Nil)-instance-method","name":"socks_proxy=","abstract":false,"args":[{"name":"socks_proxy","external_name":"socks_proxy","restriction":"String | ::Nil"}],"args_string":"(socks_proxy : String | Nil)","args_html":"(socks_proxy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":57,"url":null},"def":{"name":"socks_proxy=","args":[{"name":"socks_proxy","external_name":"socks_proxy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@socks_proxy = socks_proxy"}},{"html_id":"socks_version:Int32|Nil-instance-method","name":"socks_version","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":60,"url":null},"def":{"name":"socks_version","return_type":"Int32 | ::Nil","visibility":"Public","body":"@socks_version"}},{"html_id":"socks_version=(socks_version:Int32|Nil)-instance-method","name":"socks_version=","abstract":false,"args":[{"name":"socks_version","external_name":"socks_version","restriction":"Int32 | ::Nil"}],"args_string":"(socks_version : Int32 | Nil)","args_html":"(socks_version : Int32 | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":60,"url":null},"def":{"name":"socks_version=","args":[{"name":"socks_version","external_name":"socks_version","restriction":"Int32 | ::Nil"}],"visibility":"Public","body":"@socks_version = socks_version"}},{"html_id":"ssl_proxy:String|Nil-instance-method","name":"ssl_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":54,"url":null},"def":{"name":"ssl_proxy","return_type":"String | ::Nil","visibility":"Public","body":"@ssl_proxy"}},{"html_id":"ssl_proxy=(ssl_proxy:String|Nil)-instance-method","name":"ssl_proxy=","abstract":false,"args":[{"name":"ssl_proxy","external_name":"ssl_proxy","restriction":"String | ::Nil"}],"args_string":"(ssl_proxy : String | Nil)","args_html":"(ssl_proxy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":54,"url":null},"def":{"name":"ssl_proxy=","args":[{"name":"ssl_proxy","external_name":"ssl_proxy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@ssl_proxy = ssl_proxy"}}]}]},{"html_id":"selenium/Selenium/Chrome","path":"Selenium/Chrome.html","kind":"module","full_name":"Selenium::Chrome","name":"Chrome","abstract":false,"locations":[{"filename":"src/selenium/chrome/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"types":[{"html_id":"selenium/Selenium/Chrome/Capabilities","path":"Selenium/Chrome/Capabilities.html","kind":"class","full_name":"Selenium::Chrome::Capabilities","name":"Capabilities","abstract":false,"superclass":{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},"ancestors":[{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/chrome/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Chrome","kind":"module","full_name":"Selenium::Chrome","name":"Chrome"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":1,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"chrome_options:Selenium::Chrome::Capabilities::ChromeOptions-instance-method","name":"chrome_options","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":5,"url":null},"def":{"name":"chrome_options","visibility":"Public","body":"@chrome_options"}},{"html_id":"chrome_options=(chrome_options:Selenium::Chrome::Capabilities::ChromeOptions)-instance-method","name":"chrome_options=","abstract":false,"args":[{"name":"chrome_options","external_name":"chrome_options","restriction":"::Selenium::Chrome::Capabilities::ChromeOptions"}],"args_string":"(chrome_options : Selenium::Chrome::Capabilities::ChromeOptions)","args_html":"(chrome_options : Selenium::Chrome::Capabilities::ChromeOptions)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":5,"url":null},"def":{"name":"chrome_options=","args":[{"name":"chrome_options","external_name":"chrome_options","restriction":"::Selenium::Chrome::Capabilities::ChromeOptions"}],"visibility":"Public","body":"@chrome_options = chrome_options"}}],"types":[{"html_id":"selenium/Selenium/Chrome/Capabilities/ChromeOptions","path":"Selenium/Chrome/Capabilities/ChromeOptions.html","kind":"class","full_name":"Selenium::Chrome::Capabilities::ChromeOptions","name":"ChromeOptions","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/chrome/capabilities.cr","line_number":7,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium/Chrome/Capabilities","kind":"class","full_name":"Selenium::Chrome::Capabilities","name":"Capabilities"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":10,"url":null},"def":{"name":"new","visibility":"Public","body":"_ = allocate\n_.initialize\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"args:Array(String)-instance-method","name":"args","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":13,"url":null},"def":{"name":"args","visibility":"Public","body":"@args"}},{"html_id":"args=(args:Array(String))-instance-method","name":"args=","abstract":false,"args":[{"name":"args","external_name":"args","restriction":"::Array(::String)"}],"args_string":"(args : Array(String))","args_html":"(args : Array(String))","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":13,"url":null},"def":{"name":"args=","args":[{"name":"args","external_name":"args","restriction":"::Array(::String)"}],"visibility":"Public","body":"@args = args"}},{"html_id":"binary:String|Nil-instance-method","name":"binary","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":15,"url":null},"def":{"name":"binary","return_type":"String | ::Nil","visibility":"Public","body":"@binary"}},{"html_id":"binary=(binary:String|Nil)-instance-method","name":"binary=","abstract":false,"args":[{"name":"binary","external_name":"binary","restriction":"String | ::Nil"}],"args_string":"(binary : String | Nil)","args_html":"(binary : String | Nil)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":15,"url":null},"def":{"name":"binary=","args":[{"name":"binary","external_name":"binary","restriction":"String | ::Nil"}],"visibility":"Public","body":"@binary = binary"}},{"html_id":"debugger_address:String|Nil-instance-method","name":"debugger_address","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":22,"url":null},"def":{"name":"debugger_address","return_type":"String | ::Nil","visibility":"Public","body":"@debugger_address"}},{"html_id":"debugger_address=(debugger_address:String|Nil)-instance-method","name":"debugger_address=","abstract":false,"args":[{"name":"debugger_address","external_name":"debugger_address","restriction":"String | ::Nil"}],"args_string":"(debugger_address : String | Nil)","args_html":"(debugger_address : String | Nil)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":22,"url":null},"def":{"name":"debugger_address=","args":[{"name":"debugger_address","external_name":"debugger_address","restriction":"String | ::Nil"}],"visibility":"Public","body":"@debugger_address = debugger_address"}},{"html_id":"detach:Bool|Nil-instance-method","name":"detach","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":19,"url":null},"def":{"name":"detach","return_type":"Bool | ::Nil","visibility":"Public","body":"@detach"}},{"html_id":"detach=(detach:Bool|Nil)-instance-method","name":"detach=","abstract":false,"args":[{"name":"detach","external_name":"detach","restriction":"Bool | ::Nil"}],"args_string":"(detach : Bool | Nil)","args_html":"(detach : Bool | Nil)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":19,"url":null},"def":{"name":"detach=","args":[{"name":"detach","external_name":"detach","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@detach = detach"}},{"html_id":"extensions:Array(String)|Nil-instance-method","name":"extensions","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":17,"url":null},"def":{"name":"extensions","return_type":"Array(String) | ::Nil","visibility":"Public","body":"@extensions"}},{"html_id":"extensions=(extensions:Array(String)|Nil)-instance-method","name":"extensions=","abstract":false,"args":[{"name":"extensions","external_name":"extensions","restriction":"Array(String) | ::Nil"}],"args_string":"(extensions : Array(String) | Nil)","args_html":"(extensions : Array(String) | Nil)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":17,"url":null},"def":{"name":"extensions=","args":[{"name":"extensions","external_name":"extensions","restriction":"Array(String) | ::Nil"}],"visibility":"Public","body":"@extensions = extensions"}}]}]},{"html_id":"selenium/Selenium/Chrome/Driver","path":"Selenium/Chrome/Driver.html","kind":"class","full_name":"Selenium::Chrome::Driver","name":"Driver","abstract":false,"superclass":{"html_id":"selenium/Selenium/Driver","kind":"class","full_name":"Selenium::Driver","name":"Driver"},"ancestors":[{"html_id":"selenium/Selenium/Driver","kind":"class","full_name":"Selenium::Driver","name":"Driver"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/chrome/driver.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Chrome","kind":"module","full_name":"Selenium::Chrome","name":"Chrome"},"instance_methods":[{"html_id":"create_session(capabilities:Chrome::Capabilities):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"capabilities","external_name":"capabilities","restriction":"Chrome::Capabilities"}],"args_string":"(capabilities : Chrome::Capabilities) : Session","args_html":"(capabilities : Chrome::Capabilities) : Session","location":{"filename":"src/selenium/chrome/driver.cr","line_number":2,"url":null},"def":{"name":"create_session","args":[{"name":"capabilities","external_name":"capabilities","restriction":"Chrome::Capabilities"}],"return_type":"Session","visibility":"Public","body":"super(capabilities)"}},{"html_id":"create_session(args:Array(String)):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"args_string":"(args : Array(String)) : Session","args_html":"(args : Array(String)) : Session","location":{"filename":"src/selenium/chrome/driver.cr","line_number":6,"url":null},"def":{"name":"create_session","args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"return_type":"Session","visibility":"Public","body":"capabilities = Chrome::Capabilities.new\ncapabilities.chrome_options.args = args\ncreate_session(capabilities)\n"}}]},{"html_id":"selenium/Selenium/Chrome/Service","path":"Selenium/Chrome/Service.html","kind":"class","full_name":"Selenium::Chrome::Service","name":"Service","abstract":false,"superclass":{"html_id":"selenium/Selenium/Service","kind":"class","full_name":"Selenium::Service","name":"Service"},"ancestors":[{"html_id":"selenium/Selenium/Service","kind":"class","full_name":"Selenium::Service","name":"Service"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/chrome/service.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Chrome","kind":"module","full_name":"Selenium::Chrome","name":"Chrome"},"instance_methods":[{"html_id":"default_port:Int32-instance-method","name":"default_port","abstract":false,"location":{"filename":"src/selenium/chrome/service.cr","line_number":2,"url":null},"def":{"name":"default_port","return_type":"Int32","visibility":"Public","body":"9515"}}]}]},{"html_id":"selenium/Selenium/CommandHandler","path":"Selenium/CommandHandler.html","kind":"class","full_name":"Selenium::CommandHandler","name":"CommandHandler","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Selenium/DefaultCommands","kind":"module","full_name":"Selenium::DefaultCommands","name":"DefaultCommands"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/command_handler.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/Selenium/DefaultCommands","kind":"module","full_name":"Selenium::DefaultCommands","name":"DefaultCommands"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(http_client:Selenium::HttpClient)-class-method","name":"new","abstract":false,"args":[{"name":"http_client","external_name":"http_client","restriction":"::Selenium::HttpClient"}],"args_string":"(http_client : Selenium::HttpClient)","args_html":"(http_client : Selenium::HttpClient)","location":{"filename":"src/selenium/command_handler.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"http_client","external_name":"http_client","restriction":"::Selenium::HttpClient"}],"visibility":"Public","body":"_ = allocate\n_.initialize(http_client)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"execute(command,path_variables:Hash(String,String)={}ofString=>String,parameters={}ofString=>String):JSON::Any-instance-method","name":"execute","abstract":false,"args":[{"name":"command","external_name":"command","restriction":""},{"name":"path_variables","default_value":"{} of String => String","external_name":"path_variables","restriction":"Hash(String, String)"},{"name":"parameters","default_value":"{} of String => String","external_name":"parameters","restriction":""}],"args_string":"(command, path_variables : Hash(String, String) = {} of String => String, parameters = {} of String => String) : JSON::Any","args_html":"(command, path_variables : Hash(String, String) = {} of String => String, parameters = {} of String => String) : JSON::Any","location":{"filename":"src/selenium/command_handler.cr","line_number":8,"url":null},"def":{"name":"execute","args":[{"name":"command","external_name":"command","restriction":""},{"name":"path_variables","default_value":"{} of String => String","external_name":"path_variables","restriction":"Hash(String, String)"},{"name":"parameters","default_value":"{} of String => String","external_name":"parameters","restriction":""}],"return_type":"JSON::Any","visibility":"Public","body":"method, path = DEFAULT_COMMANDS[command]\nfull_path = path_variables.reduce(path) do |acc, entry|\n acc.sub(entry.first, entry.last)\nend\nexecute(method, full_path, parameters.to_json)\n"}},{"html_id":"http_client:HttpClient-instance-method","name":"http_client","abstract":false,"location":{"filename":"src/selenium/command_handler.cr","line_number":3,"url":null},"def":{"name":"http_client","return_type":"HttpClient","visibility":"Public","body":"@http_client"}}]},{"html_id":"selenium/Selenium/Cookie","path":"Selenium/Cookie.html","kind":"struct","full_name":"Selenium::Cookie","name":"Cookie","abstract":false,"superclass":{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"selenium/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/cookie.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(name:String,value:String,path:Nil|String=nil,domain:Nil|String=nil,secure:Bool|Nil=nil,http_only:Bool|Nil=nil,expiry:Int64|Nil=nil,same_site:Nil|String=nil)-class-method","name":"new","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"::String"},{"name":"value","external_name":"value","restriction":"::String"},{"name":"path","default_value":"nil","external_name":"path","restriction":"::Nil | ::String"},{"name":"domain","default_value":"nil","external_name":"domain","restriction":"::Nil | ::String"},{"name":"secure","default_value":"nil","external_name":"secure","restriction":"::Bool | ::Nil"},{"name":"http_only","default_value":"nil","external_name":"http_only","restriction":"::Bool | ::Nil"},{"name":"expiry","default_value":"nil","external_name":"expiry","restriction":"::Int64 | ::Nil"},{"name":"same_site","default_value":"nil","external_name":"same_site","restriction":"::Nil | ::String"}],"args_string":"(name : String, value : String, path : Nil | String = nil, domain : Nil | String = nil, secure : Bool | Nil = nil, http_only : Bool | Nil = nil, expiry : Int64 | Nil = nil, same_site : Nil | String = nil)","args_html":"(name : String, value : String, path : Nil | String = nil, domain : Nil | String = nil, secure : Bool | Nil = nil, http_only : Bool | Nil = nil, expiry : Int64 | Nil = nil, same_site : Nil | String = nil)","location":{"filename":"src/selenium/cookie.cr","line_number":15,"url":null},"def":{"name":"new","args":[{"name":"name","external_name":"name","restriction":"::String"},{"name":"value","external_name":"value","restriction":"::String"},{"name":"path","default_value":"nil","external_name":"path","restriction":"::Nil | ::String"},{"name":"domain","default_value":"nil","external_name":"domain","restriction":"::Nil | ::String"},{"name":"secure","default_value":"nil","external_name":"secure","restriction":"::Bool | ::Nil"},{"name":"http_only","default_value":"nil","external_name":"http_only","restriction":"::Bool | ::Nil"},{"name":"expiry","default_value":"nil","external_name":"expiry","restriction":"::Int64 | ::Nil"},{"name":"same_site","default_value":"nil","external_name":"same_site","restriction":"::Nil | ::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(name, value, path, domain, secure, http_only, expiry, same_site)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/cookie.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"domain:String|Nil-instance-method","name":"domain","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":7,"url":null},"def":{"name":"domain","return_type":"String | ::Nil","visibility":"Public","body":"@domain"}},{"html_id":"domain=(domain:String|Nil)-instance-method","name":"domain=","abstract":false,"args":[{"name":"domain","external_name":"domain","restriction":"String | ::Nil"}],"args_string":"(domain : String | Nil)","args_html":"(domain : String | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":7,"url":null},"def":{"name":"domain=","args":[{"name":"domain","external_name":"domain","restriction":"String | ::Nil"}],"visibility":"Public","body":"@domain = domain"}},{"html_id":"expiry:Int64|Nil-instance-method","name":"expiry","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":11,"url":null},"def":{"name":"expiry","return_type":"Int64 | ::Nil","visibility":"Public","body":"@expiry"}},{"html_id":"expiry=(expiry:Int64|Nil)-instance-method","name":"expiry=","abstract":false,"args":[{"name":"expiry","external_name":"expiry","restriction":"Int64 | ::Nil"}],"args_string":"(expiry : Int64 | Nil)","args_html":"(expiry : Int64 | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":11,"url":null},"def":{"name":"expiry=","args":[{"name":"expiry","external_name":"expiry","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@expiry = expiry"}},{"html_id":"http_only:Bool|Nil-instance-method","name":"http_only","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":10,"url":null},"def":{"name":"http_only","return_type":"Bool | ::Nil","visibility":"Public","body":"@http_only"}},{"html_id":"http_only=(http_only:Bool|Nil)-instance-method","name":"http_only=","abstract":false,"args":[{"name":"http_only","external_name":"http_only","restriction":"Bool | ::Nil"}],"args_string":"(http_only : Bool | Nil)","args_html":"(http_only : Bool | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":10,"url":null},"def":{"name":"http_only=","args":[{"name":"http_only","external_name":"http_only","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@http_only = http_only"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":4,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"path:String|Nil-instance-method","name":"path","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":6,"url":null},"def":{"name":"path","return_type":"String | ::Nil","visibility":"Public","body":"@path"}},{"html_id":"path=(path:String|Nil)-instance-method","name":"path=","abstract":false,"args":[{"name":"path","external_name":"path","restriction":"String | ::Nil"}],"args_string":"(path : String | Nil)","args_html":"(path : String | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":6,"url":null},"def":{"name":"path=","args":[{"name":"path","external_name":"path","restriction":"String | ::Nil"}],"visibility":"Public","body":"@path = path"}},{"html_id":"same_site:String|Nil-instance-method","name":"same_site","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":13,"url":null},"def":{"name":"same_site","return_type":"String | ::Nil","visibility":"Public","body":"@same_site"}},{"html_id":"same_site=(same_site:String|Nil)-instance-method","name":"same_site=","abstract":false,"args":[{"name":"same_site","external_name":"same_site","restriction":"String | ::Nil"}],"args_string":"(same_site : String | Nil)","args_html":"(same_site : String | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":13,"url":null},"def":{"name":"same_site=","args":[{"name":"same_site","external_name":"same_site","restriction":"String | ::Nil"}],"visibility":"Public","body":"@same_site = same_site"}},{"html_id":"secure:Bool|Nil-instance-method","name":"secure","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":8,"url":null},"def":{"name":"secure","return_type":"Bool | ::Nil","visibility":"Public","body":"@secure"}},{"html_id":"secure=(secure:Bool|Nil)-instance-method","name":"secure=","abstract":false,"args":[{"name":"secure","external_name":"secure","restriction":"Bool | ::Nil"}],"args_string":"(secure : Bool | Nil)","args_html":"(secure : Bool | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":8,"url":null},"def":{"name":"secure=","args":[{"name":"secure","external_name":"secure","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@secure = secure"}},{"html_id":"value:String-instance-method","name":"value","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":5,"url":null},"def":{"name":"value","return_type":"String","visibility":"Public","body":"@value"}}]},{"html_id":"selenium/Selenium/CookieManager","path":"Selenium/CookieManager.html","kind":"class","full_name":"Selenium::CookieManager","name":"CookieManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/cookie_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String)-class-method","name":"new","abstract":false,"args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"add_cookie(name,value)-instance-method","name":"add_cookie","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""},{"name":"value","external_name":"value","restriction":""}],"args_string":"(name, value)","args_html":"(name, value)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":25,"url":null},"def":{"name":"add_cookie","args":[{"name":"name","external_name":"name","restriction":""},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"cookie = Cookie.new(name, value)\nadd_cookie(cookie)\n"}},{"html_id":"add_cookie(cookie)-instance-method","name":"add_cookie","abstract":false,"args":[{"name":"cookie","external_name":"cookie","restriction":""}],"args_string":"(cookie)","args_html":"(cookie)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":20,"url":null},"def":{"name":"add_cookie","args":[{"name":"cookie","external_name":"cookie","restriction":""}],"visibility":"Public","body":"parameters = {cookie: cookie}\ncommand_handler.execute(:add_cookie, path_variables, parameters)\n"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/cookie_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"delete_all_cookies-instance-method","name":"delete_all_cookies","abstract":false,"location":{"filename":"src/selenium/cookie_manager.cr","line_number":34,"url":null},"def":{"name":"delete_all_cookies","visibility":"Public","body":"command_handler.execute(:delete_all_cookies, path_variables)"}},{"html_id":"delete_cookie(name)-instance-method","name":"delete_cookie","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""}],"args_string":"(name)","args_html":"(name)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":30,"url":null},"def":{"name":"delete_cookie","args":[{"name":"name","external_name":"name","restriction":""}],"visibility":"Public","body":"command_handler.execute(:delete_cookie, path_variables.merge({\":name\" => name}))"}},{"html_id":"get_all_cookies-instance-method","name":"get_all_cookies","abstract":false,"location":{"filename":"src/selenium/cookie_manager.cr","line_number":8,"url":null},"def":{"name":"get_all_cookies","visibility":"Public","body":"data = command_handler.execute(:get_all_cookies, path_variables)\nArray(Cookie).from_json(data[\"value\"].to_json)\n"}},{"html_id":"get_cookie(name)-instance-method","name":"get_cookie","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""}],"args_string":"(name)","args_html":"(name)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":14,"url":null},"def":{"name":"get_cookie","args":[{"name":"name","external_name":"name","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:get_named_cookie, path_variables.merge({\":name\" => name}))\nCookie.from_json(data[\"value\"].to_json)\n"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/cookie_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}}]},{"html_id":"selenium/Selenium/Coordinate","path":"Selenium/Coordinate.html","kind":"struct","full_name":"Selenium::Coordinate","name":"Coordinate","abstract":false,"superclass":{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"selenium/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/coordinate.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(x:Int32,y:Int32)-class-method","name":"new","abstract":false,"args":[{"name":"x","external_name":"x","restriction":"::Int32"},{"name":"y","external_name":"y","restriction":"::Int32"}],"args_string":"(x : Int32, y : Int32)","args_html":"(x : Int32, y : Int32)","location":{"filename":"src/selenium/coordinate.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"x","external_name":"x","restriction":"::Int32"},{"name":"y","external_name":"y","restriction":"::Int32"}],"visibility":"Public","body":"_ = allocate\n_.initialize(x, y)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"x:Int32-instance-method","name":"x","abstract":false,"location":{"filename":"src/selenium/coordinate.cr","line_number":2,"url":null},"def":{"name":"x","return_type":"Int32","visibility":"Public","body":"@x"}},{"html_id":"y:Int32-instance-method","name":"y","abstract":false,"location":{"filename":"src/selenium/coordinate.cr","line_number":3,"url":null},"def":{"name":"y","return_type":"Int32","visibility":"Public","body":"@y"}}]},{"html_id":"selenium/Selenium/DefaultCommands","path":"Selenium/DefaultCommands.html","kind":"module","full_name":"Selenium::DefaultCommands","name":"DefaultCommands","abstract":false,"locations":[{"filename":"src/selenium/default_commands.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"DEFAULT_COMMANDS","name":"DEFAULT_COMMANDS","value":"{new_session: {:post, \"/session\"}, delete_session: {:delete, \"/session/:session_id\"}, status: {:get, \"/status\"}, get_timeouts: {:get, \"/session/:session_id/timeouts\"}, set_timeouts: {:post, \"/session/:session_id/timeouts\"}, navigate_to: {:post, \"/session/:session_id/url\"}, get_current_url: {:get, \"/session/:session_id/url\"}, back: {:post, \"/session/:session_id/back\"}, forward: {:post, \"/session/:session_id/forward\"}, refresh: {:post, \"/session/:session_id/refresh\"}, get_title: {:get, \"/session/:session_id/title\"}, get_window_handle: {:get, \"/session/:session_id/window\"}, close_window: {:delete, \"/session/:session_id/window\"}, switch_to_window: {:post, \"/session/:session_id/window\"}, get_window_handles: {:get, \"/session/:session_id/window/handles\"}, new_window: {:post, \"/session/:session_id/window/new\"}, switch_to_frame: {:post, \"/session/:session_id/frame\"}, switch_to_parent_frame: {:post, \"/session/:session_id/frame/parent\"}, get_window_rect: {:get, \"/session/:session_id/window/rect\"}, set_window_rect: {:post, \"/session/:session_id/window/rect\"}, maximize_window: {:post, \"/session/:session_id/window/maximize\"}, minimize_window: {:post, \"/session/:session_id/window/minimize\"}, fullscreen_window: {:post, \"/session/:session_id/window/fullscreen\"}, get_active_element: {:get, \"/session/:session_id/element/active\"}, find_element: {:post, \"/session/:session_id/element\"}, find_elements: {:post, \"/session/:session_id/elements\"}, find_element_from_element: {:post, \"/session/:session_id/element/:element_id/element\"}, find_elements_from_element: {:post, \"/session/:session_id/element/:element_id/elements\"}, is_element_selected: {:get, \"/session/:session_id/element/:element_id/selected\"}, get_element_attribute: {:get, \"/session/:session_id/element/:element_id/attribute/:name\"}, get_element_property: {:get, \"/session/:session_id/element/:element_id/property/:name\"}, get_element_css_value: {:get, \"/session/:session_id/element/:element_id/css/:property_name\"}, get_element_text: {:get, \"/session/:session_id/element/:element_id/text\"}, get_element_tag_name: {:get, \"/session/:session_id/element/:element_id/name\"}, get_element_rect: {:get, \"/session/:session_id/element/:element_id/rect\"}, is_element_enabled: {:get, \"/session/:session_id/element/:element_id/enabled\"}, is_element_displayed: {:get, \"/session/:session_id/element/:element_id/displayed\"}, element_click: {:post, \"/session/:session_id/element/:element_id/click\"}, element_clear: {:post, \"/session/:session_id/element/:element_id/clear\"}, element_send_keys: {:post, \"/session/:session_id/element/:element_id/value\"}, get_page_source: {:get, \"/session/:session_id/source\"}, execute_script: {:post, \"/session/:session_id/execute/sync\"}, execute_async_script: {:post, \"/session/:session_id/execute/async\"}, get_all_cookies: {:get, \"/session/:session_id/cookie\"}, get_named_cookie: {:get, \"/session/:session_id/cookie/:name\"}, add_cookie: {:post, \"/session/:session_id/cookie\"}, delete_cookie: {:delete, \"/session/:session_id/cookie/:name\"}, delete_all_cookies: {:delete, \"/session/:session_id/cookie\"}, perform_actions: {:post, \"/session/:session_id/actions\"}, release_actions: {:delete, \"/session/:session_id/actions\"}, dismiss_alert: {:post, \"/session/:session_id/alert/dismiss\"}, accept_alert: {:post, \"/session/:session_id/alert/accept\"}, get_alert_text: {:get, \"/session/:session_id/alert/text\"}, send_alert_text: {:post, \"/session/:session_id/alert/text\"}, take_screenshot: {:get, \"/session/:session_id/screenshot\"}, take_element_screenshot: {:get, \"/session/:session_id/element/:element_id/screenshot\"}}"}],"including_types":[{"html_id":"selenium/Selenium/CommandHandler","kind":"class","full_name":"Selenium::CommandHandler","name":"CommandHandler"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/DocumentManager","path":"Selenium/DocumentManager.html","kind":"class","full_name":"Selenium::DocumentManager","name":"DocumentManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/document_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String)-class-method","name":"new","abstract":false,"args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String)","location":{"filename":"src/selenium/document_manager.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/document_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"execute_async_script(script,args:Array(_)=[]ofString)-instance-method","name":"execute_async_script","abstract":false,"args":[{"name":"script","external_name":"script","restriction":""},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"Array(_)"}],"args_string":"(script, args : Array(_) = [] of String)","args_html":"(script, args : Array(_) = [] of String)","location":{"filename":"src/selenium/document_manager.cr","line_number":22,"url":null},"def":{"name":"execute_async_script","args":[{"name":"script","external_name":"script","restriction":""},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"Array(_)"}],"visibility":"Public","body":"parameters = {script: script, args: args}\ndata = command_handler.execute(:execute_async_script, path_variables, parameters)\ndata[\"value\"].as_s? || data[\"value\"].to_json\n"}},{"html_id":"execute_script(script,args:Array(_)=[]ofString)-instance-method","name":"execute_script","abstract":false,"args":[{"name":"script","external_name":"script","restriction":""},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"Array(_)"}],"args_string":"(script, args : Array(_) = [] of String)","args_html":"(script, args : Array(_) = [] of String)","location":{"filename":"src/selenium/document_manager.cr","line_number":13,"url":null},"def":{"name":"execute_script","args":[{"name":"script","external_name":"script","restriction":""},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"Array(_)"}],"visibility":"Public","body":"parameters = {script: script, args: args}\ndata = command_handler.execute(:execute_script, path_variables, parameters)\ndata[\"value\"].as_s? || data[\"value\"].to_json\n"}},{"html_id":"page_source-instance-method","name":"page_source","abstract":false,"location":{"filename":"src/selenium/document_manager.cr","line_number":8,"url":null},"def":{"name":"page_source","visibility":"Public","body":"data = command_handler.execute(:get_page_source, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"path_variables-instance-method","name":"path_variables","abstract":false,"location":{"filename":"src/selenium/document_manager.cr","line_number":31,"url":null},"def":{"name":"path_variables","visibility":"Public","body":"{\":session_id\" => session_id}"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/document_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}}]},{"html_id":"selenium/Selenium/Driver","path":"Selenium/Driver.html","kind":"class","full_name":"Selenium::Driver","name":"Driver","abstract":true,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/driver.cr","line_number":7,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"selenium/Selenium/Chrome/Driver","kind":"class","full_name":"Selenium::Chrome::Driver","name":"Driver"},{"html_id":"selenium/Selenium/Firefox/Driver","kind":"class","full_name":"Selenium::Firefox::Driver","name":"Driver"},{"html_id":"selenium/Selenium/Remote/Driver","kind":"class","full_name":"Selenium::Remote::Driver","name":"Driver"},{"html_id":"selenium/Selenium/Safari/Driver","kind":"class","full_name":"Selenium::Safari::Driver","name":"Driver"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"doc":"The `Selenium::Driver` is the root class for interacting with browsers\n\n### Using with `Selenium::Service`\n\nIf you passed in a `Selenium::Service` you *MUST* call `Selenium::Driver#stop` when you are done to stop the service\nor else the process it starts will continue running on your computer after the program ends","summary":"The Selenium::Driver
is the root class for interacting with browsers
browser options: - :chrome (see Selenium::Chrome::Driver
) - :firefox or :gecko (see Selenium::Firefox::Driver
) - :safari (see Selenium::Safari::Driver
) - :remote (see Selenium::Remote::Driver
)
#attribute
is for referencing static fields if you are trying to access fields that change you should use #property
TODO I don't remember why I made the properties floats nor why they are nilable.
","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/element_rect.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"height:Float64|Nil-instance-method","name":"height","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":9,"url":null},"def":{"name":"height","return_type":"Float64 | ::Nil","visibility":"Public","body":"@height"}},{"html_id":"height=(height:Float64|Nil)-instance-method","name":"height=","abstract":false,"args":[{"name":"height","external_name":"height","restriction":"Float64 | ::Nil"}],"args_string":"(height : Float64 | Nil)","args_html":"(height : Float64 | Nil)","location":{"filename":"src/selenium/element_rect.cr","line_number":9,"url":null},"def":{"name":"height=","args":[{"name":"height","external_name":"height","restriction":"Float64 | ::Nil"}],"visibility":"Public","body":"@height = height"}},{"html_id":"midpoint:Selenium::Coordinate|Nil-instance-method","name":"midpoint","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":11,"url":null},"def":{"name":"midpoint","return_type":"Selenium::Coordinate | ::Nil","visibility":"Public","body":"temp_x = x\ntemp_y = y\ntemp_width = width\ntemp_height = height\nif temp_x.nil?\n return\nend\nif temp_y.nil?\n return\nend\nif temp_width.nil?\n return\nend\nif temp_height.nil?\n return\nend\nSelenium::Coordinate.new(x: (temp_x + (temp_width / 2)).to_i, y: (temp_y + (temp_height / 2)).to_i)\n"}},{"html_id":"width:Float64|Nil-instance-method","name":"width","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":8,"url":null},"def":{"name":"width","return_type":"Float64 | ::Nil","visibility":"Public","body":"@width"}},{"html_id":"width=(width:Float64|Nil)-instance-method","name":"width=","abstract":false,"args":[{"name":"width","external_name":"width","restriction":"Float64 | ::Nil"}],"args_string":"(width : Float64 | Nil)","args_html":"(width : Float64 | Nil)","location":{"filename":"src/selenium/element_rect.cr","line_number":8,"url":null},"def":{"name":"width=","args":[{"name":"width","external_name":"width","restriction":"Float64 | ::Nil"}],"visibility":"Public","body":"@width = width"}},{"html_id":"x:Float64|Nil-instance-method","name":"x","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":6,"url":null},"def":{"name":"x","return_type":"Float64 | ::Nil","visibility":"Public","body":"@x"}},{"html_id":"x=(x:Float64|Nil)-instance-method","name":"x=","abstract":false,"args":[{"name":"x","external_name":"x","restriction":"Float64 | ::Nil"}],"args_string":"(x : Float64 | Nil)","args_html":"(x : Float64 | Nil)","location":{"filename":"src/selenium/element_rect.cr","line_number":6,"url":null},"def":{"name":"x=","args":[{"name":"x","external_name":"x","restriction":"Float64 | ::Nil"}],"visibility":"Public","body":"@x = x"}},{"html_id":"y:Float64|Nil-instance-method","name":"y","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":7,"url":null},"def":{"name":"y","return_type":"Float64 | ::Nil","visibility":"Public","body":"@y"}},{"html_id":"y=(y:Float64|Nil)-instance-method","name":"y=","abstract":false,"args":[{"name":"y","external_name":"y","restriction":"Float64 | ::Nil"}],"args_string":"(y : Float64 | Nil)","args_html":"(y : Float64 | Nil)","location":{"filename":"src/selenium/element_rect.cr","line_number":7,"url":null},"def":{"name":"y=","args":[{"name":"y","external_name":"y","restriction":"Float64 | ::Nil"}],"visibility":"Public","body":"@y = y"}}]},{"html_id":"selenium/Selenium/Error","path":"Selenium/Error.html","kind":"class","full_name":"Selenium::Error","name":"Error","abstract":false,"superclass":{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},"ancestors":[{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/error.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"class_methods":[{"html_id":"from_json(json)-class-method","name":"from_json","abstract":false,"args":[{"name":"json","external_name":"json","restriction":""}],"args_string":"(json)","args_html":"(json)","location":{"filename":"src/selenium/error.cr","line_number":2,"url":null},"def":{"name":"from_json","args":[{"name":"json","external_name":"json","restriction":""}],"visibility":"Public","body":"new(InternalData.from_json(json))"}}],"constructors":[{"html_id":"new(internal_data:Selenium::Error::InternalData)-class-method","name":"new","abstract":false,"args":[{"name":"internal_data","external_name":"internal_data","restriction":"::Selenium::Error::InternalData"}],"args_string":"(internal_data : Selenium::Error::InternalData)","args_html":"(internal_data : Selenium::Error::InternalData)","location":{"filename":"src/selenium/error.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"internal_data","external_name":"internal_data","restriction":"::Selenium::Error::InternalData"}],"visibility":"Public","body":"_ = allocate\n_.initialize(internal_data)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"message-instance-method","name":"message","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":11,"url":null},"def":{"name":"message","visibility":"Public","body":"[internal_data.error, internal_data.error_message].reject(&.blank?).join(\": \")"}}],"types":[{"html_id":"selenium/Selenium/Error/InternalData","path":"Selenium/Error/InternalData.html","kind":"class","full_name":"Selenium::Error::InternalData","name":"InternalData","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/error.cr","line_number":15,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium/Error","kind":"class","full_name":"Selenium::Error","name":"Error"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/error.cr","line_number":16,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:JSON::Any|Nil-instance-method","name":"data","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":20,"url":null},"def":{"name":"data","return_type":"JSON::Any | ::Nil","visibility":"Public","body":"@data"}},{"html_id":"data=(data:JSON::Any|Nil)-instance-method","name":"data=","abstract":false,"args":[{"name":"data","external_name":"data","restriction":"JSON::Any | ::Nil"}],"args_string":"(data : JSON::Any | Nil)","args_html":"(data : JSON::Any | Nil)","location":{"filename":"src/selenium/error.cr","line_number":20,"url":null},"def":{"name":"data=","args":[{"name":"data","external_name":"data","restriction":"JSON::Any | ::Nil"}],"visibility":"Public","body":"@data = data"}},{"html_id":"error:String-instance-method","name":"error","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":18,"url":null},"def":{"name":"error","return_type":"String","visibility":"Public","body":"@error"}},{"html_id":"error=(error:String)-instance-method","name":"error=","abstract":false,"args":[{"name":"error","external_name":"error","restriction":"String"}],"args_string":"(error : String)","args_html":"(error : String)","location":{"filename":"src/selenium/error.cr","line_number":18,"url":null},"def":{"name":"error=","args":[{"name":"error","external_name":"error","restriction":"String"}],"visibility":"Public","body":"@error = error"}},{"html_id":"error_message:String-instance-method","name":"error_message","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":23,"url":null},"def":{"name":"error_message","return_type":"String","visibility":"Public","body":"@error_message"}},{"html_id":"error_message=(error_message:String)-instance-method","name":"error_message=","abstract":false,"args":[{"name":"error_message","external_name":"error_message","restriction":"String"}],"args_string":"(error_message : String)","args_html":"(error_message : String)","location":{"filename":"src/selenium/error.cr","line_number":23,"url":null},"def":{"name":"error_message=","args":[{"name":"error_message","external_name":"error_message","restriction":"String"}],"visibility":"Public","body":"@error_message = error_message"}},{"html_id":"stacktrace:String-instance-method","name":"stacktrace","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":19,"url":null},"def":{"name":"stacktrace","return_type":"String","visibility":"Public","body":"@stacktrace"}},{"html_id":"stacktrace=(stacktrace:String)-instance-method","name":"stacktrace=","abstract":false,"args":[{"name":"stacktrace","external_name":"stacktrace","restriction":"String"}],"args_string":"(stacktrace : String)","args_html":"(stacktrace : String)","location":{"filename":"src/selenium/error.cr","line_number":19,"url":null},"def":{"name":"stacktrace=","args":[{"name":"stacktrace","external_name":"stacktrace","restriction":"String"}],"visibility":"Public","body":"@stacktrace = stacktrace"}}]}]},{"html_id":"selenium/Selenium/Firefox","path":"Selenium/Firefox.html","kind":"module","full_name":"Selenium::Firefox","name":"Firefox","abstract":false,"locations":[{"filename":"src/selenium/firefox/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"types":[{"html_id":"selenium/Selenium/Firefox/Capabilities","path":"Selenium/Firefox/Capabilities.html","kind":"class","full_name":"Selenium::Firefox::Capabilities","name":"Capabilities","abstract":false,"superclass":{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},"ancestors":[{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/firefox/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Firefox","kind":"module","full_name":"Selenium::Firefox","name":"Firefox"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":1,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"firefox_options:Selenium::Firefox::Capabilities::FirefoxOptions-instance-method","name":"firefox_options","abstract":false,"location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":5,"url":null},"def":{"name":"firefox_options","visibility":"Public","body":"@firefox_options"}},{"html_id":"firefox_options=(firefox_options:Selenium::Firefox::Capabilities::FirefoxOptions)-instance-method","name":"firefox_options=","abstract":false,"args":[{"name":"firefox_options","external_name":"firefox_options","restriction":"::Selenium::Firefox::Capabilities::FirefoxOptions"}],"args_string":"(firefox_options : Selenium::Firefox::Capabilities::FirefoxOptions)","args_html":"(firefox_options : Selenium::Firefox::Capabilities::FirefoxOptions)","location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":5,"url":null},"def":{"name":"firefox_options=","args":[{"name":"firefox_options","external_name":"firefox_options","restriction":"::Selenium::Firefox::Capabilities::FirefoxOptions"}],"visibility":"Public","body":"@firefox_options = firefox_options"}}],"types":[{"html_id":"selenium/Selenium/Firefox/Capabilities/FirefoxOptions","path":"Selenium/Firefox/Capabilities/FirefoxOptions.html","kind":"class","full_name":"Selenium::Firefox::Capabilities::FirefoxOptions","name":"FirefoxOptions","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/firefox/capabilities.cr","line_number":7,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium/Firefox/Capabilities","kind":"class","full_name":"Selenium::Firefox::Capabilities","name":"Capabilities"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":10,"url":null},"def":{"name":"new","visibility":"Public","body":"_ = allocate\n_.initialize\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"args:Array(String)-instance-method","name":"args","abstract":false,"location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":13,"url":null},"def":{"name":"args","visibility":"Public","body":"@args"}},{"html_id":"args=(args:Array(String))-instance-method","name":"args=","abstract":false,"args":[{"name":"args","external_name":"args","restriction":"::Array(::String)"}],"args_string":"(args : Array(String))","args_html":"(args : Array(String))","location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":13,"url":null},"def":{"name":"args=","args":[{"name":"args","external_name":"args","restriction":"::Array(::String)"}],"visibility":"Public","body":"@args = args"}}]}]},{"html_id":"selenium/Selenium/Firefox/Driver","path":"Selenium/Firefox/Driver.html","kind":"class","full_name":"Selenium::Firefox::Driver","name":"Driver","abstract":false,"superclass":{"html_id":"selenium/Selenium/Driver","kind":"class","full_name":"Selenium::Driver","name":"Driver"},"ancestors":[{"html_id":"selenium/Selenium/Driver","kind":"class","full_name":"Selenium::Driver","name":"Driver"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/firefox/driver.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Firefox","kind":"module","full_name":"Selenium::Firefox","name":"Firefox"},"instance_methods":[{"html_id":"create_session(capabilities:Firefox::Capabilities):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"capabilities","external_name":"capabilities","restriction":"Firefox::Capabilities"}],"args_string":"(capabilities : Firefox::Capabilities) : Session","args_html":"(capabilities : Firefox::Capabilities) : Session","location":{"filename":"src/selenium/firefox/driver.cr","line_number":2,"url":null},"def":{"name":"create_session","args":[{"name":"capabilities","external_name":"capabilities","restriction":"Firefox::Capabilities"}],"return_type":"Session","visibility":"Public","body":"super(capabilities)"}},{"html_id":"create_session(args:Array(String)):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"args_string":"(args : Array(String)) : Session","args_html":"(args : Array(String)) : Session","location":{"filename":"src/selenium/firefox/driver.cr","line_number":6,"url":null},"def":{"name":"create_session","args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"return_type":"Session","visibility":"Public","body":"capabilities = Firefox::Capabilities.new\ncapabilities.firefox_options.args = args\ncreate_session(capabilities)\n"}}]},{"html_id":"selenium/Selenium/Firefox/Service","path":"Selenium/Firefox/Service.html","kind":"class","full_name":"Selenium::Firefox::Service","name":"Service","abstract":false,"superclass":{"html_id":"selenium/Selenium/Service","kind":"class","full_name":"Selenium::Service","name":"Service"},"ancestors":[{"html_id":"selenium/Selenium/Service","kind":"class","full_name":"Selenium::Service","name":"Service"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/firefox/service.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Firefox","kind":"module","full_name":"Selenium::Firefox","name":"Firefox"},"instance_methods":[{"html_id":"default_port:Int32-instance-method","name":"default_port","abstract":false,"location":{"filename":"src/selenium/firefox/service.cr","line_number":2,"url":null},"def":{"name":"default_port","return_type":"Int32","visibility":"Public","body":"4444"}},{"html_id":"stop-instance-method","name":"stop","abstract":false,"location":{"filename":"src/selenium/firefox/service.cr","line_number":6,"url":null},"def":{"name":"stop","visibility":"Public","body":"stop_process(process)"}}]}]},{"html_id":"selenium/Selenium/Helpers","path":"Selenium/Helpers.html","kind":"module","full_name":"Selenium::Helpers","name":"Helpers","abstract":false,"locations":[{"filename":"src/selenium/helpers/select.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"types":[{"html_id":"selenium/Selenium/Helpers/Select","path":"Selenium/Helpers/Select.html","kind":"class","full_name":"Selenium::Helpers::Select","name":"Select","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/helpers/select.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Helpers","kind":"module","full_name":"Selenium::Helpers","name":"Helpers"},"class_methods":[{"html_id":"from_element(element)-class-method","name":"from_element","abstract":false,"args":[{"name":"element","external_name":"element","restriction":""}],"args_string":"(element)","args_html":"(element)","location":{"filename":"src/selenium/helpers/select.cr","line_number":2,"url":null},"def":{"name":"from_element","args":[{"name":"element","external_name":"element","restriction":""}],"visibility":"Public","body":"tag_name = element.tag_name\nif tag_name == \"select\"\nelse\n raise(InvalidTagError.new(expected: \"select\", got: tag_name))\nend\nnew(element)\n"}}],"instance_methods":[{"html_id":"deselect_all-instance-method","name":"deselect_all","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":39,"url":null},"def":{"name":"deselect_all","visibility":"Public","body":"if multiple?\nelse\n raise(UnsupportedOperationError.new(\"you may only deselect multiple options in a multi-select\"))\nend\noptions.each do |option|\n deselect_option(option)\nend\n"}},{"html_id":"deselect_by_value(value)-instance-method","name":"deselect_by_value","abstract":false,"args":[{"name":"value","external_name":"value","restriction":""}],"args_string":"(value)","args_html":"(value)","location":{"filename":"src/selenium/helpers/select.cr","line_number":29,"url":null},"def":{"name":"deselect_by_value","args":[{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"deselect_option(find_option_by_value(value))"}},{"html_id":"multiple?:Bool-instance-method","name":"multiple?","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":10,"url":null},"def":{"name":"multiple?","return_type":"Bool","visibility":"Public","body":"@multiple"}},{"html_id":"options-instance-method","name":"options","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":17,"url":null},"def":{"name":"options","visibility":"Public","body":"element.find_child_elements(LocationStrategy::TAG_NAME, \"option\")"}},{"html_id":"select_all-instance-method","name":"select_all","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":33,"url":null},"def":{"name":"select_all","visibility":"Public","body":"if multiple?\nelse\n raise(UnsupportedOperationError.new(\"you may only select multiple options in a multi-select\"))\nend\noptions.each do |option|\n select_option(option)\nend\n"}},{"html_id":"select_by_value(value)-instance-method","name":"select_by_value","abstract":false,"args":[{"name":"value","external_name":"value","restriction":""}],"args_string":"(value)","args_html":"(value)","location":{"filename":"src/selenium/helpers/select.cr","line_number":25,"url":null},"def":{"name":"select_by_value","args":[{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"select_option(find_option_by_value(value))"}},{"html_id":"selected_options-instance-method","name":"selected_options","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":21,"url":null},"def":{"name":"selected_options","visibility":"Public","body":"options.select(&.selected?)"}}]},{"html_id":"selenium/Selenium/Helpers/Wait","path":"Selenium/Helpers/Wait.html","kind":"class","full_name":"Selenium::Helpers::Wait","name":"Wait","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/helpers/wait.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Helpers","kind":"module","full_name":"Selenium::Helpers","name":"Helpers"},"constructors":[{"html_id":"new(timeout:Time::Span=5.seconds,interval:Time::Span=0.2.seconds,ignored:Array(Exception)|Array(::Selenium::Error.class)=[Selenium::Error],message:String|Nil=nil)-class-method","name":"new","doc":"Create a new `Wait` instance.\n\n`timeout` - seconds to wait before timing out\n`interval` - seconds to sleep between polls\n`message` - exception mesage if timed out\n`ignored` - exceptions to ignore while polling","summary":"Create a new Wait
instance.
Wait until the given block returns a true
value.
TODO write test once it is understood: - how to know/acquire the frame id - what a frame is - what switching frames will do
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":""}],"args_string":"(id)","args_html":"(id)","location":{"filename":"src/selenium/session.cr","line_number":120,"url":null},"def":{"name":"switch_to_frame","args":[{"name":"id","external_name":"id","restriction":""}],"visibility":"Public","body":"parameters = {id: id}\ncommand_handler.execute(:switch_to_frame, path_variables, parameters)\n"}},{"html_id":"switch_to_parent_frame-instance-method","name":"switch_to_parent_frame","doc":"TODO: reference switch_to_frame","summary":"TODO reference switch_to_frame
","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":126,"url":null},"def":{"name":"switch_to_parent_frame","visibility":"Public","body":"command_handler.execute(:switch_to_parent_frame, path_variables)"}},{"html_id":"timeouts-instance-method","name":"timeouts","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":98,"url":null},"def":{"name":"timeouts","visibility":"Public","body":"data = command_handler.execute(:get_timeouts, path_variables)\nTimeoutConfiguration.from_json(data[\"value\"].to_json)\n"}},{"html_id":"title-instance-method","name":"title","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":88,"url":null},"def":{"name":"title","visibility":"Public","body":"data = command_handler.execute(:get_title, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"window_manager-instance-method","name":"window_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":9,"url":null},"def":{"name":"window_manager","visibility":"Public","body":"WindowManager.new(command_handler, id)"}}]},{"html_id":"selenium/Selenium/SessionId","path":"Selenium/SessionId.html","kind":"alias","full_name":"Selenium::SessionId","name":"SessionId","abstract":false,"locations":[{"filename":"src/selenium/types.cr","line_number":2,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":true,"aliased":"String","aliased_html":"String","const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/Status","path":"Selenium/Status.html","kind":"class","full_name":"Selenium::Status","name":"Status","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/status.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/status.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"message:String-instance-method","name":"message","abstract":false,"location":{"filename":"src/selenium/status.cr","line_number":5,"url":null},"def":{"name":"message","return_type":"String","visibility":"Public","body":"@message"}},{"html_id":"message=(message:String)-instance-method","name":"message=","abstract":false,"args":[{"name":"message","external_name":"message","restriction":"String"}],"args_string":"(message : String)","args_html":"(message : String)","location":{"filename":"src/selenium/status.cr","line_number":5,"url":null},"def":{"name":"message=","args":[{"name":"message","external_name":"message","restriction":"String"}],"visibility":"Public","body":"@message = message"}},{"html_id":"ready=(ready:Bool)-instance-method","name":"ready=","abstract":false,"args":[{"name":"ready","external_name":"ready","restriction":"Bool"}],"args_string":"(ready : Bool)","args_html":"(ready : Bool)","location":{"filename":"src/selenium/status.cr","line_number":4,"url":null},"def":{"name":"ready=","args":[{"name":"ready","external_name":"ready","restriction":"Bool"}],"visibility":"Public","body":"@ready = ready"}},{"html_id":"ready?:Bool-instance-method","name":"ready?","abstract":false,"location":{"filename":"src/selenium/status.cr","line_number":4,"url":null},"def":{"name":"ready?","return_type":"Bool","visibility":"Public","body":"@ready"}}]},{"html_id":"selenium/Selenium/TimeoutConfiguration","path":"Selenium/TimeoutConfiguration.html","kind":"class","full_name":"Selenium::TimeoutConfiguration","name":"TimeoutConfiguration","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/timeout_configuration.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/timeout_configuration.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new(script:Int32|Nil=nil,page_load:Int32|Nil=nil,implicit:Int32|Nil=nil)-class-method","name":"new","abstract":false,"args":[{"name":"script","default_value":"nil","external_name":"script","restriction":"::Int32 | ::Nil"},{"name":"page_load","default_value":"nil","external_name":"page_load","restriction":"::Int32 | ::Nil"},{"name":"implicit","default_value":"nil","external_name":"implicit","restriction":"::Int32 | ::Nil"}],"args_string":"(script : Int32 | Nil = nil, page_load : Int32 | Nil = nil, implicit : Int32 | Nil = nil)","args_html":"(script : Int32 | Nil = nil, page_load : Int32 | Nil = nil, implicit : Int32 | Nil = nil)","location":{"filename":"src/selenium/timeout_configuration.cr","line_number":11,"url":null},"def":{"name":"new","args":[{"name":"script","default_value":"nil","external_name":"script","restriction":"::Int32 | ::Nil"},{"name":"page_load","default_value":"nil","external_name":"page_load","restriction":"::Int32 | ::Nil"},{"name":"implicit","default_value":"nil","external_name":"implicit","restriction":"::Int32 | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(script, page_load, implicit)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"implicit:Int32|Nil-instance-method","name":"implicit","abstract":false,"location":{"filename":"src/selenium/timeout_configuration.cr","line_number":9,"url":null},"def":{"name":"implicit","return_type":"Int32 | ::Nil","visibility":"Public","body":"@implicit"}},{"html_id":"page_load:Int32|Nil-instance-method","name":"page_load","abstract":false,"location":{"filename":"src/selenium/timeout_configuration.cr","line_number":8,"url":null},"def":{"name":"page_load","return_type":"Int32 | ::Nil","visibility":"Public","body":"@page_load"}},{"html_id":"script:Int32|Nil-instance-method","name":"script","abstract":false,"location":{"filename":"src/selenium/timeout_configuration.cr","line_number":5,"url":null},"def":{"name":"script","return_type":"Int32 | ::Nil","visibility":"Public","body":"@script"}}]},{"html_id":"selenium/Selenium/UnsupportedOperationError","path":"Selenium/UnsupportedOperationError.html","kind":"class","full_name":"Selenium::UnsupportedOperationError","name":"UnsupportedOperationError","abstract":false,"superclass":{"html_id":"selenium/Selenium/BaseError","kind":"class","full_name":"Selenium::BaseError","name":"BaseError"},"ancestors":[{"html_id":"selenium/Selenium/BaseError","kind":"class","full_name":"Selenium::BaseError","name":"BaseError"},{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/errors.cr","line_number":11,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/WebStorageManager","path":"Selenium/WebStorageManager.html","kind":"class","full_name":"Selenium::WebStorageManager","name":"WebStorageManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/web_storage_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(document_manager:Selenium::DocumentManager,storage:StorageType=StorageType::LocalStorage)-class-method","name":"new","abstract":false,"args":[{"name":"document_manager","external_name":"document_manager","restriction":"::Selenium::DocumentManager"},{"name":"storage","default_value":"StorageType::LocalStorage","external_name":"storage","restriction":"StorageType"}],"args_string":"(document_manager : Selenium::DocumentManager, storage : StorageType = StorageType::LocalStorage)","args_html":"(document_manager : Selenium::DocumentManager, storage : StorageType = StorageType::LocalStorage)","location":{"filename":"src/selenium/web_storage_manager.cr","line_number":11,"url":null},"def":{"name":"new","args":[{"name":"document_manager","external_name":"document_manager","restriction":"::Selenium::DocumentManager"},{"name":"storage","default_value":"StorageType::LocalStorage","external_name":"storage","restriction":"StorageType"}],"visibility":"Public","body":"_ = allocate\n_.initialize(document_manager, storage)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"clear-instance-method","name":"clear","doc":"Clear all items from the Storage","summary":"Clear all items from the Storage
","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":15,"url":null},"def":{"name":"clear","visibility":"Public","body":"document_manager.execute_script(\"#{storage_type_in_js}.clear()\")"}},{"html_id":"document_manager:DocumentManager-instance-method","name":"document_manager","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":7,"url":null},"def":{"name":"document_manager","return_type":"DocumentManager","visibility":"Public","body":"@document_manager"}},{"html_id":"item(name:String,value=nil):String|Nil-instance-method","name":"item","doc":"Retrieve and insert item from/into the Storage.\nIf no value is given, it will return the item specified in `name`.\nFor a given `value`, it will be added or updated for the item specified in `name`.","summary":"Retrieve and insert item from/into the Storage.
","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"value","default_value":"nil","external_name":"value","restriction":""}],"args_string":"(name : String, value = nil) : String | Nil","args_html":"(name : String, value = nil) : String | Nil","location":{"filename":"src/selenium/web_storage_manager.cr","line_number":22,"url":null},"def":{"name":"item","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"value","default_value":"nil","external_name":"value","restriction":""}],"return_type":"String | Nil","visibility":"Public","body":"if value.nil?\n document_manager.execute_script(\"return #{storage_type_in_js}.getItem('#{name}')\")\nelse\n document_manager.execute_script(\"#{storage_type_in_js}.setItem('#{name}', '#{value}')\")\nend"}},{"html_id":"keys:JSON::Any-instance-method","name":"keys","doc":"Retrieve the list of keys from the Storage","summary":"Retrieve the list of keys from the Storage
","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":31,"url":null},"def":{"name":"keys","return_type":"JSON::Any","visibility":"Public","body":"str = document_manager.execute_script(\"return Object.keys(#{storage_type_in_js})\")\nJSON.parse(str)\n"}},{"html_id":"remove(name:String)-instance-method","name":"remove","doc":"Remove the item specified in `name` from the Storage","summary":"Remove the item specified in name
from the Storage
Retrieve the number of items in the Storage
","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":42,"url":null},"def":{"name":"size","return_type":"Int","visibility":"Public","body":"(document_manager.execute_script(\"return #{storage_type_in_js}.length\")).to_i"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","location":{"filename":"src/selenium/web_storage_manager.cr","line_number":9,"url":null},"def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" @document_manager.\n{{ call }}\n\n \n"}}],"types":[{"html_id":"selenium/Selenium/WebStorageManager/StorageType","path":"Selenium/WebStorageManager/StorageType.html","kind":"enum","full_name":"Selenium::WebStorageManager::StorageType","name":"StorageType","abstract":false,"ancestors":[{"html_id":"selenium/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"selenium/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"selenium/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/web_storage_manager.cr","line_number":2,"url":null}],"repository_name":"selenium","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"LocalStorage","name":"LocalStorage","value":"0"},{"id":"SessionStorage","name":"SessionStorage","value":"1"}],"namespace":{"html_id":"selenium/Selenium/WebStorageManager","kind":"class","full_name":"Selenium::WebStorageManager","name":"WebStorageManager"},"instance_methods":[{"html_id":"local_storage?-instance-method","name":"local_storage?","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":3,"url":null},"def":{"name":"local_storage?","visibility":"Public","body":"self == LocalStorage"}},{"html_id":"session_storage?-instance-method","name":"session_storage?","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":4,"url":null},"def":{"name":"session_storage?","visibility":"Public","body":"self == SessionStorage"}}]}]},{"html_id":"selenium/Selenium/WindowHandle","path":"Selenium/WindowHandle.html","kind":"alias","full_name":"Selenium::WindowHandle","name":"WindowHandle","abstract":false,"locations":[{"filename":"src/selenium/types.cr","line_number":3,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":true,"aliased":"String","aliased_html":"String","const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/WindowManager","path":"Selenium/WindowManager.html","kind":"class","full_name":"Selenium::WindowManager","name":"WindowManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/window_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String)-class-method","name":"new","abstract":false,"args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String)","location":{"filename":"src/selenium/window_manager.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"close_window-instance-method","name":"close_window","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":68,"url":null},"def":{"name":"close_window","visibility":"Public","body":"command_handler.execute(:close_window, path_variables)"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"fullscreen-instance-method","name":"fullscreen","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":8,"url":null},"def":{"name":"fullscreen","visibility":"Public","body":"data = command_handler.execute(:fullscreen_window, path_variables)\nWindowRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"maximize-instance-method","name":"maximize","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":13,"url":null},"def":{"name":"maximize","visibility":"Public","body":"data = command_handler.execute(:maximize_window, path_variables)\nWindowRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"minimize-instance-method","name":"minimize","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":18,"url":null},"def":{"name":"minimize","visibility":"Public","body":"data = command_handler.execute(:minimize_window, path_variables)\nWindowRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"new_window(type:Symbol=:tab)-instance-method","name":"new_window","abstract":false,"args":[{"name":"type","default_value":":tab","external_name":"type","restriction":"Symbol"}],"args_string":"(type : Symbol = :tab)","args_html":"(type : Symbol = :tab)","location":{"filename":"src/selenium/window_manager.cr","line_number":33,"url":null},"def":{"name":"new_window","args":[{"name":"type","default_value":":tab","external_name":"type","restriction":"Symbol"}],"visibility":"Public","body":"parameters = {type: type}\ndata = command_handler.execute(:new_window, path_variables, parameters)\n(data.dig(\"value\", \"handle\")).as_s\n"}},{"html_id":"resize_window(width:Int64|Nil=nil,height:Int64|Nil=nil)-instance-method","name":"resize_window","abstract":false,"args":[{"name":"width","default_value":"nil","external_name":"width","restriction":"Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"Int64 | ::Nil"}],"args_string":"(width : Int64 | Nil = nil, height : Int64 | Nil = nil)","args_html":"(width : Int64 | Nil = nil, height : Int64 | Nil = nil)","location":{"filename":"src/selenium/window_manager.cr","line_number":59,"url":null},"def":{"name":"resize_window","args":[{"name":"width","default_value":"nil","external_name":"width","restriction":"Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"set_window_rect(width, height)"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}},{"html_id":"set_window_rect(width:Int64|Nil=nil,height:Int64|Nil=nil,x:Int64|Nil=nil,y:Int64|Nil=nil):WindowRect-instance-method","name":"set_window_rect","abstract":false,"args":[{"name":"width","default_value":"nil","external_name":"width","restriction":"Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"Int64 | ::Nil"},{"name":"x","default_value":"nil","external_name":"x","restriction":"Int64 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"Int64 | ::Nil"}],"args_string":"(width : Int64 | Nil = nil, height : Int64 | Nil = nil, x : Int64 | Nil = nil, y : Int64 | Nil = nil) : WindowRect","args_html":"(width : Int64 | Nil = nil, height : Int64 | Nil = nil, x : Int64 | Nil = nil, y : Int64 | Nil = nil) : WindowRect","location":{"filename":"src/selenium/window_manager.cr","line_number":49,"url":null},"def":{"name":"set_window_rect","args":[{"name":"width","default_value":"nil","external_name":"width","restriction":"Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"Int64 | ::Nil"},{"name":"x","default_value":"nil","external_name":"x","restriction":"Int64 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"Int64 | ::Nil"}],"return_type":"WindowRect","visibility":"Public","body":"window_rect = WindowRect.new(width: width, height: height, x: x, y: y)\nset_window_rect(window_rect)\n"}},{"html_id":"set_window_rect(window_rect)-instance-method","name":"set_window_rect","abstract":false,"args":[{"name":"window_rect","external_name":"window_rect","restriction":""}],"args_string":"(window_rect)","args_html":"(window_rect)","location":{"filename":"src/selenium/window_manager.cr","line_number":43,"url":null},"def":{"name":"set_window_rect","args":[{"name":"window_rect","external_name":"window_rect","restriction":""}],"visibility":"Public","body":"parameters = window_rect\ndata = command_handler.execute(:set_window_rect, path_variables, parameters)\nWindowRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"switch_to_window(window_handle)-instance-method","name":"switch_to_window","abstract":false,"args":[{"name":"window_handle","external_name":"window_handle","restriction":""}],"args_string":"(window_handle)","args_html":"(window_handle)","location":{"filename":"src/selenium/window_manager.cr","line_number":39,"url":null},"def":{"name":"switch_to_window","args":[{"name":"window_handle","external_name":"window_handle","restriction":""}],"visibility":"Public","body":"command_handler.execute(:switch_to_window, path_variables, {handle: window_handle})"}},{"html_id":"window_handle-instance-method","name":"window_handle","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":23,"url":null},"def":{"name":"window_handle","visibility":"Public","body":"data = command_handler.execute(:get_window_handle, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"window_handles-instance-method","name":"window_handles","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":28,"url":null},"def":{"name":"window_handles","visibility":"Public","body":"data = command_handler.execute(:get_window_handles, path_variables)\ndata[\"value\"].as_a.map(&.as_s)\n"}},{"html_id":"window_rect-instance-method","name":"window_rect","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":63,"url":null},"def":{"name":"window_rect","visibility":"Public","body":"data = command_handler.execute(:get_window_rect, path_variables)\nWindowRect.from_json(data[\"value\"].to_json)\n"}}]},{"html_id":"selenium/Selenium/WindowRect","path":"Selenium/WindowRect.html","kind":"struct","full_name":"Selenium::WindowRect","name":"WindowRect","abstract":false,"superclass":{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"selenium/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/window_rect.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/window_rect.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new(x:Int64|Nil=nil,y:Int64|Nil=nil,width:Int64|Nil=nil,height:Int64|Nil=nil)-class-method","name":"new","abstract":false,"args":[{"name":"x","default_value":"nil","external_name":"x","restriction":"::Int64 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"::Int64 | ::Nil"},{"name":"width","default_value":"nil","external_name":"width","restriction":"::Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"::Int64 | ::Nil"}],"args_string":"(x : Int64 | Nil = nil, y : Int64 | Nil = nil, width : Int64 | Nil = nil, height : Int64 | Nil = nil)","args_html":"(x : Int64 | Nil = nil, y : Int64 | Nil = nil, width : Int64 | Nil = nil, height : Int64 | Nil = nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":9,"url":null},"def":{"name":"new","args":[{"name":"x","default_value":"nil","external_name":"x","restriction":"::Int64 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"::Int64 | ::Nil"},{"name":"width","default_value":"nil","external_name":"width","restriction":"::Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"::Int64 | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(x, y, width, height)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"height:Int64|Nil-instance-method","name":"height","abstract":false,"location":{"filename":"src/selenium/window_rect.cr","line_number":7,"url":null},"def":{"name":"height","return_type":"Int64 | ::Nil","visibility":"Public","body":"@height"}},{"html_id":"height=(height:Int64|Nil)-instance-method","name":"height=","abstract":false,"args":[{"name":"height","external_name":"height","restriction":"Int64 | ::Nil"}],"args_string":"(height : Int64 | Nil)","args_html":"(height : Int64 | Nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":7,"url":null},"def":{"name":"height=","args":[{"name":"height","external_name":"height","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@height = height"}},{"html_id":"width:Int64|Nil-instance-method","name":"width","abstract":false,"location":{"filename":"src/selenium/window_rect.cr","line_number":6,"url":null},"def":{"name":"width","return_type":"Int64 | ::Nil","visibility":"Public","body":"@width"}},{"html_id":"width=(width:Int64|Nil)-instance-method","name":"width=","abstract":false,"args":[{"name":"width","external_name":"width","restriction":"Int64 | ::Nil"}],"args_string":"(width : Int64 | Nil)","args_html":"(width : Int64 | Nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":6,"url":null},"def":{"name":"width=","args":[{"name":"width","external_name":"width","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@width = width"}},{"html_id":"x:Int64|Nil-instance-method","name":"x","abstract":false,"location":{"filename":"src/selenium/window_rect.cr","line_number":4,"url":null},"def":{"name":"x","return_type":"Int64 | ::Nil","visibility":"Public","body":"@x"}},{"html_id":"x=(x:Int64|Nil)-instance-method","name":"x=","abstract":false,"args":[{"name":"x","external_name":"x","restriction":"Int64 | ::Nil"}],"args_string":"(x : Int64 | Nil)","args_html":"(x : Int64 | Nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":4,"url":null},"def":{"name":"x=","args":[{"name":"x","external_name":"x","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@x = x"}},{"html_id":"y:Int64|Nil-instance-method","name":"y","abstract":false,"location":{"filename":"src/selenium/window_rect.cr","line_number":5,"url":null},"def":{"name":"y","return_type":"Int64 | ::Nil","visibility":"Public","body":"@y"}},{"html_id":"y=(y:Int64|Nil)-instance-method","name":"y=","abstract":false,"args":[{"name":"y","external_name":"y","restriction":"Int64 | ::Nil"}],"args_string":"(y : Int64 | Nil)","args_html":"(y : Int64 | Nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":5,"url":null},"def":{"name":"y=","args":[{"name":"y","external_name":"y","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@y = y"}}]}]}]}} \ No newline at end of file +{"repository_name":"selenium","body":"# selenium.cr\n\nSelenium client for interacting with web pages for browser automation.\n\n[API Documentation](https://matthewmcgarvey.github.io/selenium.cr/)\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n ```yaml\n dependencies:\n selenium:\n github: matthewmcgarvey/selenium.cr\n ```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"selenium\"\n```\n\n### Creating a Driver\n\n```crystal\ndriver = Selenium::Driver.for(:chrome, base_url: \"http://localhost:9515\")\n```\n\nCreating a driver this way assumes that you have the driver running already.\n\nAvailable drivers:\n\n- :chrome (using chromedriver)\n- :firefox (using geckodriver)\n- :remote (general purpose)\n\n### Running with a service\n\nRather than running chromedriver yourself, you can give the driver a service which will run the process for you.\n\n```crystal\nservice = Selenium::Service.chrome(driver_path: File.expand_path(\"~/.webdrivers/chromedriver\", home: true))\ndriver = Selenium::Driver.for(:chrome, service: service)\n```\n\nYou must call `driver.stop` when you are finished or it will leave the service running.\nConsider using [webdrivers.cr](https://github.com/matthewmcgarvey/webdrivers.cr) for automatically installing drivers and managing the driver path for you.\n\n### Creating a Session\n\n```crystal\ncapabilities = Selenium::Chrome::Capabilities.new\ncapabilities.chrome_options.args = [\"no-sandbox\", \"headless\", \"disable-gpu\"]\ndriver.create_session(capabilities)\n```\n\nUse the appropriate `Capabilities` class for whichever browser you choose.\n\n## Development\n\nRun `crystal spec` to run the tests. It will run the tests in headless mode.\n\nTo run the tests with chrome headlessly:\n\n```crystal\nSELENIUM_BROWSER=chrome crystal spec --tag \"~chrome\"\n```\n\nTo run the tests with firefox headlessly:\n\n```crystal\nSELENIUM_BROWSER=firefox crystal spec --tag \"~firefox\"\n\n```\n\nThe tag skips any specs that are know to break with those browsers.\nRunning just `crystal spec` will use chrome.\n\n## Contributing\n\n1. Fork it (I want to have seperate actions for each type (pause, pointer, key) but when I did that, I wasn't able to get the type union or inheritance working for some reason
","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/action.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new(type:String,duration:Int32|Nil=nil,value:Char|Nil=nil,button:Int32|Nil=nil,origin:Nil|String=nil,x:Int32|Nil=nil,y:Int32|Nil=nil)-class-method","name":"new","abstract":false,"args":[{"name":"type","external_name":"type","restriction":"::String"},{"name":"duration","default_value":"nil","external_name":"duration","restriction":"::Int32 | ::Nil"},{"name":"value","default_value":"nil","external_name":"value","restriction":"Char | ::Nil"},{"name":"button","default_value":"nil","external_name":"button","restriction":"::Int32 | ::Nil"},{"name":"origin","default_value":"nil","external_name":"origin","restriction":"::Nil | ::String"},{"name":"x","default_value":"nil","external_name":"x","restriction":"::Int32 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"::Int32 | ::Nil"}],"args_string":"(type : String, duration : Int32 | Nil = nil, value : Char | Nil = nil, button : Int32 | Nil = nil, origin : Nil | String = nil, x : Int32 | Nil = nil, y : Int32 | Nil = nil)","args_html":"(type : String, duration : Int32 | Nil = nil, value : Char | Nil = nil, button : Int32 | Nil = nil, origin : Nil | String = nil, x : Int32 | Nil = nil, y : Int32 | Nil = nil)","location":{"filename":"src/selenium/action.cr","line_number":16,"url":null},"def":{"name":"new","args":[{"name":"type","external_name":"type","restriction":"::String"},{"name":"duration","default_value":"nil","external_name":"duration","restriction":"::Int32 | ::Nil"},{"name":"value","default_value":"nil","external_name":"value","restriction":"Char | ::Nil"},{"name":"button","default_value":"nil","external_name":"button","restriction":"::Int32 | ::Nil"},{"name":"origin","default_value":"nil","external_name":"origin","restriction":"::Nil | ::String"},{"name":"x","default_value":"nil","external_name":"x","restriction":"::Int32 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"::Int32 | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(type, duration, value, button, origin, x, y)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"button:Int32|Nil-instance-method","name":"button","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":8,"url":null},"def":{"name":"button","return_type":"Int32 | ::Nil","visibility":"Public","body":"@button"}},{"html_id":"duration:Int32|Nil-instance-method","name":"duration","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":7,"url":null},"def":{"name":"duration","return_type":"Int32 | ::Nil","visibility":"Public","body":"@duration"}},{"html_id":"origin:String|Nil-instance-method","name":"origin","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":9,"url":null},"def":{"name":"origin","return_type":"String | ::Nil","visibility":"Public","body":"@origin"}},{"html_id":"type:String-instance-method","name":"type","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":6,"url":null},"def":{"name":"type","return_type":"String","visibility":"Public","body":"@type"}},{"html_id":"value:Char|Nil-instance-method","name":"value","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":28,"url":null},"def":{"name":"value","return_type":"Char | ::Nil","visibility":"Public","body":"value.try(&.char_at(0))"}},{"html_id":"x:Int32|Nil-instance-method","name":"x","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":10,"url":null},"def":{"name":"x","return_type":"Int32 | ::Nil","visibility":"Public","body":"@x"}},{"html_id":"y:Int32|Nil-instance-method","name":"y","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":11,"url":null},"def":{"name":"y","return_type":"Int32 | ::Nil","visibility":"Public","body":"@y"}}]},{"html_id":"selenium/Selenium/ActionSequence","path":"Selenium/ActionSequence.html","kind":"alias","full_name":"Selenium::ActionSequence","name":"ActionSequence","abstract":false,"locations":[{"filename":"src/selenium/types.cr","line_number":5,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":true,"aliased":"Array(Selenium::InputSourceActionSequence)","aliased_html":"Array(Selenium::InputSourceActionSequence)","const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/AlertManager","path":"Selenium/AlertManager.html","kind":"class","full_name":"Selenium::AlertManager","name":"AlertManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/alert_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String)-class-method","name":"new","abstract":false,"args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String)","location":{"filename":"src/selenium/alert_manager.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"accept_alert-instance-method","name":"accept_alert","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":19,"url":null},"def":{"name":"accept_alert","visibility":"Public","body":"command_handler.execute(:accept_alert, path_variables)"}},{"html_id":"alert_text-instance-method","name":"alert_text","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":13,"url":null},"def":{"name":"alert_text","visibility":"Public","body":"data = command_handler.execute(:get_alert_text, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"dismiss_alert-instance-method","name":"dismiss_alert","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":23,"url":null},"def":{"name":"dismiss_alert","visibility":"Public","body":"command_handler.execute(:dismiss_alert, path_variables)"}},{"html_id":"send_alert_text(text)-instance-method","name":"send_alert_text","abstract":false,"args":[{"name":"text","external_name":"text","restriction":""}],"args_string":"(text)","args_html":"(text)","location":{"filename":"src/selenium/alert_manager.cr","line_number":8,"url":null},"def":{"name":"send_alert_text","args":[{"name":"text","external_name":"text","restriction":""}],"visibility":"Public","body":"parameters = {text: text}\ncommand_handler.execute(:send_alert_text, path_variables, parameters)\n"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}}]},{"html_id":"selenium/Selenium/BaseError","path":"Selenium/BaseError.html","kind":"class","full_name":"Selenium::BaseError","name":"BaseError","abstract":true,"superclass":{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},"ancestors":[{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/errors.cr","line_number":2,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"selenium/Selenium/InvalidTagError","kind":"class","full_name":"Selenium::InvalidTagError","name":"InvalidTagError"},{"html_id":"selenium/Selenium/UnsupportedOperationError","kind":"class","full_name":"Selenium::UnsupportedOperationError","name":"UnsupportedOperationError"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/Capabilities","path":"Selenium/Capabilities.html","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"subclasses":[{"html_id":"selenium/Selenium/Chrome/Capabilities","kind":"class","full_name":"Selenium::Chrome::Capabilities","name":"Capabilities"},{"html_id":"selenium/Selenium/Firefox/Capabilities","kind":"class","full_name":"Selenium::Firefox::Capabilities","name":"Capabilities"},{"html_id":"selenium/Selenium/Safari/Capabilities","kind":"class","full_name":"Selenium::Safari::Capabilities","name":"Capabilities"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/capabilities.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":4,"url":null},"def":{"name":"new","visibility":"Public","body":"_ = allocate\n_.initialize\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"accept_insecure_certs:Bool|Nil-instance-method","name":"accept_insecure_certs","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":17,"url":null},"def":{"name":"accept_insecure_certs","return_type":"Bool | ::Nil","visibility":"Public","body":"@accept_insecure_certs"}},{"html_id":"accept_insecure_certs=(accept_insecure_certs:Bool|Nil)-instance-method","name":"accept_insecure_certs=","abstract":false,"args":[{"name":"accept_insecure_certs","external_name":"accept_insecure_certs","restriction":"Bool | ::Nil"}],"args_string":"(accept_insecure_certs : Bool | Nil)","args_html":"(accept_insecure_certs : Bool | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":17,"url":null},"def":{"name":"accept_insecure_certs=","args":[{"name":"accept_insecure_certs","external_name":"accept_insecure_certs","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@accept_insecure_certs = accept_insecure_certs"}},{"html_id":"browser_name:String|Nil-instance-method","name":"browser_name","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":8,"url":null},"def":{"name":"browser_name","return_type":"String | ::Nil","visibility":"Public","body":"@browser_name"}},{"html_id":"browser_name=(browser_name:String|Nil)-instance-method","name":"browser_name=","abstract":false,"args":[{"name":"browser_name","external_name":"browser_name","restriction":"String | ::Nil"}],"args_string":"(browser_name : String | Nil)","args_html":"(browser_name : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":8,"url":null},"def":{"name":"browser_name=","args":[{"name":"browser_name","external_name":"browser_name","restriction":"String | ::Nil"}],"visibility":"Public","body":"@browser_name = browser_name"}},{"html_id":"browser_version:String|Nil-instance-method","name":"browser_version","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":11,"url":null},"def":{"name":"browser_version","return_type":"String | ::Nil","visibility":"Public","body":"@browser_version"}},{"html_id":"browser_version=(browser_version:String|Nil)-instance-method","name":"browser_version=","abstract":false,"args":[{"name":"browser_version","external_name":"browser_version","restriction":"String | ::Nil"}],"args_string":"(browser_version : String | Nil)","args_html":"(browser_version : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":11,"url":null},"def":{"name":"browser_version=","args":[{"name":"browser_version","external_name":"browser_version","restriction":"String | ::Nil"}],"visibility":"Public","body":"@browser_version = browser_version"}},{"html_id":"page_load_strategy:String|Nil-instance-method","name":"page_load_strategy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":20,"url":null},"def":{"name":"page_load_strategy","return_type":"String | ::Nil","visibility":"Public","body":"@page_load_strategy"}},{"html_id":"page_load_strategy=(page_load_strategy:String|Nil)-instance-method","name":"page_load_strategy=","abstract":false,"args":[{"name":"page_load_strategy","external_name":"page_load_strategy","restriction":"String | ::Nil"}],"args_string":"(page_load_strategy : String | Nil)","args_html":"(page_load_strategy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":20,"url":null},"def":{"name":"page_load_strategy=","args":[{"name":"page_load_strategy","external_name":"page_load_strategy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@page_load_strategy = page_load_strategy"}},{"html_id":"platform_name:String|Nil-instance-method","name":"platform_name","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":14,"url":null},"def":{"name":"platform_name","return_type":"String | ::Nil","visibility":"Public","body":"@platform_name"}},{"html_id":"platform_name=(platform_name:String|Nil)-instance-method","name":"platform_name=","abstract":false,"args":[{"name":"platform_name","external_name":"platform_name","restriction":"String | ::Nil"}],"args_string":"(platform_name : String | Nil)","args_html":"(platform_name : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":14,"url":null},"def":{"name":"platform_name=","args":[{"name":"platform_name","external_name":"platform_name","restriction":"String | ::Nil"}],"visibility":"Public","body":"@platform_name = platform_name"}},{"html_id":"proxy:ProxyConfiguration|Nil-instance-method","name":"proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":22,"url":null},"def":{"name":"proxy","return_type":"ProxyConfiguration | ::Nil","visibility":"Public","body":"@proxy"}},{"html_id":"proxy=(proxy:ProxyConfiguration|Nil)-instance-method","name":"proxy=","abstract":false,"args":[{"name":"proxy","external_name":"proxy","restriction":"ProxyConfiguration | ::Nil"}],"args_string":"(proxy : ProxyConfiguration | Nil)","args_html":"(proxy : ProxyConfiguration | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":22,"url":null},"def":{"name":"proxy=","args":[{"name":"proxy","external_name":"proxy","restriction":"ProxyConfiguration | ::Nil"}],"visibility":"Public","body":"@proxy = proxy"}},{"html_id":"set_window_rect:Bool|Nil-instance-method","name":"set_window_rect","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":25,"url":null},"def":{"name":"set_window_rect","return_type":"Bool | ::Nil","visibility":"Public","body":"@set_window_rect"}},{"html_id":"set_window_rect=(set_window_rect:Bool|Nil)-instance-method","name":"set_window_rect=","abstract":false,"args":[{"name":"set_window_rect","external_name":"set_window_rect","restriction":"Bool | ::Nil"}],"args_string":"(set_window_rect : Bool | Nil)","args_html":"(set_window_rect : Bool | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":25,"url":null},"def":{"name":"set_window_rect=","args":[{"name":"set_window_rect","external_name":"set_window_rect","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@set_window_rect = set_window_rect"}},{"html_id":"strict_file_interactability:Bool|Nil-instance-method","name":"strict_file_interactability","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":30,"url":null},"def":{"name":"strict_file_interactability","return_type":"Bool | ::Nil","visibility":"Public","body":"@strict_file_interactability"}},{"html_id":"strict_file_interactability=(strict_file_interactability:Bool|Nil)-instance-method","name":"strict_file_interactability=","abstract":false,"args":[{"name":"strict_file_interactability","external_name":"strict_file_interactability","restriction":"Bool | ::Nil"}],"args_string":"(strict_file_interactability : Bool | Nil)","args_html":"(strict_file_interactability : Bool | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":30,"url":null},"def":{"name":"strict_file_interactability=","args":[{"name":"strict_file_interactability","external_name":"strict_file_interactability","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@strict_file_interactability = strict_file_interactability"}},{"html_id":"timeouts:TimeoutConfiguration|Nil-instance-method","name":"timeouts","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":27,"url":null},"def":{"name":"timeouts","return_type":"TimeoutConfiguration | ::Nil","visibility":"Public","body":"@timeouts"}},{"html_id":"timeouts=(timeouts:TimeoutConfiguration|Nil)-instance-method","name":"timeouts=","abstract":false,"args":[{"name":"timeouts","external_name":"timeouts","restriction":"TimeoutConfiguration | ::Nil"}],"args_string":"(timeouts : TimeoutConfiguration | Nil)","args_html":"(timeouts : TimeoutConfiguration | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":27,"url":null},"def":{"name":"timeouts=","args":[{"name":"timeouts","external_name":"timeouts","restriction":"TimeoutConfiguration | ::Nil"}],"visibility":"Public","body":"@timeouts = timeouts"}},{"html_id":"unhandled_prompt_behavior:String|Nil-instance-method","name":"unhandled_prompt_behavior","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":33,"url":null},"def":{"name":"unhandled_prompt_behavior","return_type":"String | ::Nil","visibility":"Public","body":"@unhandled_prompt_behavior"}},{"html_id":"unhandled_prompt_behavior=(unhandled_prompt_behavior:String|Nil)-instance-method","name":"unhandled_prompt_behavior=","abstract":false,"args":[{"name":"unhandled_prompt_behavior","external_name":"unhandled_prompt_behavior","restriction":"String | ::Nil"}],"args_string":"(unhandled_prompt_behavior : String | Nil)","args_html":"(unhandled_prompt_behavior : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":33,"url":null},"def":{"name":"unhandled_prompt_behavior=","args":[{"name":"unhandled_prompt_behavior","external_name":"unhandled_prompt_behavior","restriction":"String | ::Nil"}],"visibility":"Public","body":"@unhandled_prompt_behavior = unhandled_prompt_behavior"}}],"types":[{"html_id":"selenium/Selenium/Capabilities/ProxyConfiguration","path":"Selenium/Capabilities/ProxyConfiguration.html","kind":"class","full_name":"Selenium::Capabilities::ProxyConfiguration","name":"ProxyConfiguration","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/capabilities.cr","line_number":35,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/capabilities.cr","line_number":36,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"ftp_proxy:String|Nil-instance-method","name":"ftp_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":45,"url":null},"def":{"name":"ftp_proxy","return_type":"String | ::Nil","visibility":"Public","body":"@ftp_proxy"}},{"html_id":"ftp_proxy=(ftp_proxy:String|Nil)-instance-method","name":"ftp_proxy=","abstract":false,"args":[{"name":"ftp_proxy","external_name":"ftp_proxy","restriction":"String | ::Nil"}],"args_string":"(ftp_proxy : String | Nil)","args_html":"(ftp_proxy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":45,"url":null},"def":{"name":"ftp_proxy=","args":[{"name":"ftp_proxy","external_name":"ftp_proxy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@ftp_proxy = ftp_proxy"}},{"html_id":"http_proxy:String|Nil-instance-method","name":"http_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":48,"url":null},"def":{"name":"http_proxy","return_type":"String | ::Nil","visibility":"Public","body":"@http_proxy"}},{"html_id":"http_proxy=(http_proxy:String|Nil)-instance-method","name":"http_proxy=","abstract":false,"args":[{"name":"http_proxy","external_name":"http_proxy","restriction":"String | ::Nil"}],"args_string":"(http_proxy : String | Nil)","args_html":"(http_proxy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":48,"url":null},"def":{"name":"http_proxy=","args":[{"name":"http_proxy","external_name":"http_proxy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@http_proxy = http_proxy"}},{"html_id":"no_proxy:Array(String)|Nil-instance-method","name":"no_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":51,"url":null},"def":{"name":"no_proxy","return_type":"Array(String) | ::Nil","visibility":"Public","body":"@no_proxy"}},{"html_id":"no_proxy=(no_proxy:Array(String)|Nil)-instance-method","name":"no_proxy=","abstract":false,"args":[{"name":"no_proxy","external_name":"no_proxy","restriction":"Array(String) | ::Nil"}],"args_string":"(no_proxy : Array(String) | Nil)","args_html":"(no_proxy : Array(String) | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":51,"url":null},"def":{"name":"no_proxy=","args":[{"name":"no_proxy","external_name":"no_proxy","restriction":"Array(String) | ::Nil"}],"visibility":"Public","body":"@no_proxy = no_proxy"}},{"html_id":"proxy_autoconfig_url:String|Nil-instance-method","name":"proxy_autoconfig_url","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":42,"url":null},"def":{"name":"proxy_autoconfig_url","return_type":"String | ::Nil","visibility":"Public","body":"@proxy_autoconfig_url"}},{"html_id":"proxy_autoconfig_url=(proxy_autoconfig_url:String|Nil)-instance-method","name":"proxy_autoconfig_url=","abstract":false,"args":[{"name":"proxy_autoconfig_url","external_name":"proxy_autoconfig_url","restriction":"String | ::Nil"}],"args_string":"(proxy_autoconfig_url : String | Nil)","args_html":"(proxy_autoconfig_url : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":42,"url":null},"def":{"name":"proxy_autoconfig_url=","args":[{"name":"proxy_autoconfig_url","external_name":"proxy_autoconfig_url","restriction":"String | ::Nil"}],"visibility":"Public","body":"@proxy_autoconfig_url = proxy_autoconfig_url"}},{"html_id":"proxy_type:String|Nil-instance-method","name":"proxy_type","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":39,"url":null},"def":{"name":"proxy_type","return_type":"String | ::Nil","visibility":"Public","body":"@proxy_type"}},{"html_id":"proxy_type=(proxy_type:String|Nil)-instance-method","name":"proxy_type=","abstract":false,"args":[{"name":"proxy_type","external_name":"proxy_type","restriction":"String | ::Nil"}],"args_string":"(proxy_type : String | Nil)","args_html":"(proxy_type : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":39,"url":null},"def":{"name":"proxy_type=","args":[{"name":"proxy_type","external_name":"proxy_type","restriction":"String | ::Nil"}],"visibility":"Public","body":"@proxy_type = proxy_type"}},{"html_id":"socks_proxy:String|Nil-instance-method","name":"socks_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":57,"url":null},"def":{"name":"socks_proxy","return_type":"String | ::Nil","visibility":"Public","body":"@socks_proxy"}},{"html_id":"socks_proxy=(socks_proxy:String|Nil)-instance-method","name":"socks_proxy=","abstract":false,"args":[{"name":"socks_proxy","external_name":"socks_proxy","restriction":"String | ::Nil"}],"args_string":"(socks_proxy : String | Nil)","args_html":"(socks_proxy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":57,"url":null},"def":{"name":"socks_proxy=","args":[{"name":"socks_proxy","external_name":"socks_proxy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@socks_proxy = socks_proxy"}},{"html_id":"socks_version:Int32|Nil-instance-method","name":"socks_version","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":60,"url":null},"def":{"name":"socks_version","return_type":"Int32 | ::Nil","visibility":"Public","body":"@socks_version"}},{"html_id":"socks_version=(socks_version:Int32|Nil)-instance-method","name":"socks_version=","abstract":false,"args":[{"name":"socks_version","external_name":"socks_version","restriction":"Int32 | ::Nil"}],"args_string":"(socks_version : Int32 | Nil)","args_html":"(socks_version : Int32 | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":60,"url":null},"def":{"name":"socks_version=","args":[{"name":"socks_version","external_name":"socks_version","restriction":"Int32 | ::Nil"}],"visibility":"Public","body":"@socks_version = socks_version"}},{"html_id":"ssl_proxy:String|Nil-instance-method","name":"ssl_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":54,"url":null},"def":{"name":"ssl_proxy","return_type":"String | ::Nil","visibility":"Public","body":"@ssl_proxy"}},{"html_id":"ssl_proxy=(ssl_proxy:String|Nil)-instance-method","name":"ssl_proxy=","abstract":false,"args":[{"name":"ssl_proxy","external_name":"ssl_proxy","restriction":"String | ::Nil"}],"args_string":"(ssl_proxy : String | Nil)","args_html":"(ssl_proxy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":54,"url":null},"def":{"name":"ssl_proxy=","args":[{"name":"ssl_proxy","external_name":"ssl_proxy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@ssl_proxy = ssl_proxy"}}]}]},{"html_id":"selenium/Selenium/Chrome","path":"Selenium/Chrome.html","kind":"module","full_name":"Selenium::Chrome","name":"Chrome","abstract":false,"locations":[{"filename":"src/selenium/chrome/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"types":[{"html_id":"selenium/Selenium/Chrome/Capabilities","path":"Selenium/Chrome/Capabilities.html","kind":"class","full_name":"Selenium::Chrome::Capabilities","name":"Capabilities","abstract":false,"superclass":{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},"ancestors":[{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/chrome/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Chrome","kind":"module","full_name":"Selenium::Chrome","name":"Chrome"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":1,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"chrome_options:Selenium::Chrome::Capabilities::ChromeOptions-instance-method","name":"chrome_options","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":5,"url":null},"def":{"name":"chrome_options","visibility":"Public","body":"@chrome_options"}},{"html_id":"chrome_options=(chrome_options:Selenium::Chrome::Capabilities::ChromeOptions)-instance-method","name":"chrome_options=","abstract":false,"args":[{"name":"chrome_options","external_name":"chrome_options","restriction":"::Selenium::Chrome::Capabilities::ChromeOptions"}],"args_string":"(chrome_options : Selenium::Chrome::Capabilities::ChromeOptions)","args_html":"(chrome_options : Selenium::Chrome::Capabilities::ChromeOptions)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":5,"url":null},"def":{"name":"chrome_options=","args":[{"name":"chrome_options","external_name":"chrome_options","restriction":"::Selenium::Chrome::Capabilities::ChromeOptions"}],"visibility":"Public","body":"@chrome_options = chrome_options"}}],"types":[{"html_id":"selenium/Selenium/Chrome/Capabilities/ChromeOptions","path":"Selenium/Chrome/Capabilities/ChromeOptions.html","kind":"class","full_name":"Selenium::Chrome::Capabilities::ChromeOptions","name":"ChromeOptions","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/chrome/capabilities.cr","line_number":7,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium/Chrome/Capabilities","kind":"class","full_name":"Selenium::Chrome::Capabilities","name":"Capabilities"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":10,"url":null},"def":{"name":"new","visibility":"Public","body":"_ = allocate\n_.initialize\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"args:Array(String)-instance-method","name":"args","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":13,"url":null},"def":{"name":"args","visibility":"Public","body":"@args"}},{"html_id":"args=(args:Array(String))-instance-method","name":"args=","abstract":false,"args":[{"name":"args","external_name":"args","restriction":"::Array(::String)"}],"args_string":"(args : Array(String))","args_html":"(args : Array(String))","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":13,"url":null},"def":{"name":"args=","args":[{"name":"args","external_name":"args","restriction":"::Array(::String)"}],"visibility":"Public","body":"@args = args"}},{"html_id":"binary:String|Nil-instance-method","name":"binary","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":15,"url":null},"def":{"name":"binary","return_type":"String | ::Nil","visibility":"Public","body":"@binary"}},{"html_id":"binary=(binary:String|Nil)-instance-method","name":"binary=","abstract":false,"args":[{"name":"binary","external_name":"binary","restriction":"String | ::Nil"}],"args_string":"(binary : String | Nil)","args_html":"(binary : String | Nil)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":15,"url":null},"def":{"name":"binary=","args":[{"name":"binary","external_name":"binary","restriction":"String | ::Nil"}],"visibility":"Public","body":"@binary = binary"}},{"html_id":"debugger_address:String|Nil-instance-method","name":"debugger_address","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":22,"url":null},"def":{"name":"debugger_address","return_type":"String | ::Nil","visibility":"Public","body":"@debugger_address"}},{"html_id":"debugger_address=(debugger_address:String|Nil)-instance-method","name":"debugger_address=","abstract":false,"args":[{"name":"debugger_address","external_name":"debugger_address","restriction":"String | ::Nil"}],"args_string":"(debugger_address : String | Nil)","args_html":"(debugger_address : String | Nil)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":22,"url":null},"def":{"name":"debugger_address=","args":[{"name":"debugger_address","external_name":"debugger_address","restriction":"String | ::Nil"}],"visibility":"Public","body":"@debugger_address = debugger_address"}},{"html_id":"detach:Bool|Nil-instance-method","name":"detach","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":19,"url":null},"def":{"name":"detach","return_type":"Bool | ::Nil","visibility":"Public","body":"@detach"}},{"html_id":"detach=(detach:Bool|Nil)-instance-method","name":"detach=","abstract":false,"args":[{"name":"detach","external_name":"detach","restriction":"Bool | ::Nil"}],"args_string":"(detach : Bool | Nil)","args_html":"(detach : Bool | Nil)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":19,"url":null},"def":{"name":"detach=","args":[{"name":"detach","external_name":"detach","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@detach = detach"}},{"html_id":"extensions:Array(String)|Nil-instance-method","name":"extensions","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":17,"url":null},"def":{"name":"extensions","return_type":"Array(String) | ::Nil","visibility":"Public","body":"@extensions"}},{"html_id":"extensions=(extensions:Array(String)|Nil)-instance-method","name":"extensions=","abstract":false,"args":[{"name":"extensions","external_name":"extensions","restriction":"Array(String) | ::Nil"}],"args_string":"(extensions : Array(String) | Nil)","args_html":"(extensions : Array(String) | Nil)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":17,"url":null},"def":{"name":"extensions=","args":[{"name":"extensions","external_name":"extensions","restriction":"Array(String) | ::Nil"}],"visibility":"Public","body":"@extensions = extensions"}}]}]},{"html_id":"selenium/Selenium/Chrome/Driver","path":"Selenium/Chrome/Driver.html","kind":"class","full_name":"Selenium::Chrome::Driver","name":"Driver","abstract":false,"superclass":{"html_id":"selenium/Selenium/Driver","kind":"class","full_name":"Selenium::Driver","name":"Driver"},"ancestors":[{"html_id":"selenium/Selenium/Driver","kind":"class","full_name":"Selenium::Driver","name":"Driver"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/chrome/driver.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Chrome","kind":"module","full_name":"Selenium::Chrome","name":"Chrome"},"instance_methods":[{"html_id":"create_session(capabilities:Chrome::Capabilities):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"capabilities","external_name":"capabilities","restriction":"Chrome::Capabilities"}],"args_string":"(capabilities : Chrome::Capabilities) : Session","args_html":"(capabilities : Chrome::Capabilities) : Session","location":{"filename":"src/selenium/chrome/driver.cr","line_number":2,"url":null},"def":{"name":"create_session","args":[{"name":"capabilities","external_name":"capabilities","restriction":"Chrome::Capabilities"}],"return_type":"Session","visibility":"Public","body":"super(capabilities)"}},{"html_id":"create_session(args:Array(String)):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"args_string":"(args : Array(String)) : Session","args_html":"(args : Array(String)) : Session","location":{"filename":"src/selenium/chrome/driver.cr","line_number":6,"url":null},"def":{"name":"create_session","args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"return_type":"Session","visibility":"Public","body":"capabilities = Chrome::Capabilities.new\ncapabilities.chrome_options.args = args\ncreate_session(capabilities)\n"}}]},{"html_id":"selenium/Selenium/Chrome/Service","path":"Selenium/Chrome/Service.html","kind":"class","full_name":"Selenium::Chrome::Service","name":"Service","abstract":false,"superclass":{"html_id":"selenium/Selenium/Service","kind":"class","full_name":"Selenium::Service","name":"Service"},"ancestors":[{"html_id":"selenium/Selenium/Service","kind":"class","full_name":"Selenium::Service","name":"Service"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/chrome/service.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Chrome","kind":"module","full_name":"Selenium::Chrome","name":"Chrome"},"instance_methods":[{"html_id":"default_port:Int32-instance-method","name":"default_port","abstract":false,"location":{"filename":"src/selenium/chrome/service.cr","line_number":2,"url":null},"def":{"name":"default_port","return_type":"Int32","visibility":"Public","body":"9515"}}]}]},{"html_id":"selenium/Selenium/CommandHandler","path":"Selenium/CommandHandler.html","kind":"class","full_name":"Selenium::CommandHandler","name":"CommandHandler","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Selenium/DefaultCommands","kind":"module","full_name":"Selenium::DefaultCommands","name":"DefaultCommands"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/command_handler.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/Selenium/DefaultCommands","kind":"module","full_name":"Selenium::DefaultCommands","name":"DefaultCommands"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(http_client:Selenium::HttpClient)-class-method","name":"new","abstract":false,"args":[{"name":"http_client","external_name":"http_client","restriction":"::Selenium::HttpClient"}],"args_string":"(http_client : Selenium::HttpClient)","args_html":"(http_client : Selenium::HttpClient)","location":{"filename":"src/selenium/command_handler.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"http_client","external_name":"http_client","restriction":"::Selenium::HttpClient"}],"visibility":"Public","body":"_ = allocate\n_.initialize(http_client)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"execute(command,path_variables:Hash(String,String)={}ofString=>String,parameters={}ofString=>String):JSON::Any-instance-method","name":"execute","abstract":false,"args":[{"name":"command","external_name":"command","restriction":""},{"name":"path_variables","default_value":"{} of String => String","external_name":"path_variables","restriction":"Hash(String, String)"},{"name":"parameters","default_value":"{} of String => String","external_name":"parameters","restriction":""}],"args_string":"(command, path_variables : Hash(String, String) = {} of String => String, parameters = {} of String => String) : JSON::Any","args_html":"(command, path_variables : Hash(String, String) = {} of String => String, parameters = {} of String => String) : JSON::Any","location":{"filename":"src/selenium/command_handler.cr","line_number":8,"url":null},"def":{"name":"execute","args":[{"name":"command","external_name":"command","restriction":""},{"name":"path_variables","default_value":"{} of String => String","external_name":"path_variables","restriction":"Hash(String, String)"},{"name":"parameters","default_value":"{} of String => String","external_name":"parameters","restriction":""}],"return_type":"JSON::Any","visibility":"Public","body":"method, path = DEFAULT_COMMANDS[command]\nfull_path = path_variables.reduce(path) do |acc, entry|\n acc.sub(entry.first, entry.last)\nend\nexecute(method, full_path, parameters.to_json)\n"}},{"html_id":"http_client:HttpClient-instance-method","name":"http_client","abstract":false,"location":{"filename":"src/selenium/command_handler.cr","line_number":3,"url":null},"def":{"name":"http_client","return_type":"HttpClient","visibility":"Public","body":"@http_client"}}]},{"html_id":"selenium/Selenium/Cookie","path":"Selenium/Cookie.html","kind":"struct","full_name":"Selenium::Cookie","name":"Cookie","abstract":false,"superclass":{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"selenium/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/cookie.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(name:String,value:String,path:Nil|String=nil,domain:Nil|String=nil,secure:Bool|Nil=nil,http_only:Bool|Nil=nil,expiry:Int64|Nil=nil,same_site:Nil|String=nil)-class-method","name":"new","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"::String"},{"name":"value","external_name":"value","restriction":"::String"},{"name":"path","default_value":"nil","external_name":"path","restriction":"::Nil | ::String"},{"name":"domain","default_value":"nil","external_name":"domain","restriction":"::Nil | ::String"},{"name":"secure","default_value":"nil","external_name":"secure","restriction":"::Bool | ::Nil"},{"name":"http_only","default_value":"nil","external_name":"http_only","restriction":"::Bool | ::Nil"},{"name":"expiry","default_value":"nil","external_name":"expiry","restriction":"::Int64 | ::Nil"},{"name":"same_site","default_value":"nil","external_name":"same_site","restriction":"::Nil | ::String"}],"args_string":"(name : String, value : String, path : Nil | String = nil, domain : Nil | String = nil, secure : Bool | Nil = nil, http_only : Bool | Nil = nil, expiry : Int64 | Nil = nil, same_site : Nil | String = nil)","args_html":"(name : String, value : String, path : Nil | String = nil, domain : Nil | String = nil, secure : Bool | Nil = nil, http_only : Bool | Nil = nil, expiry : Int64 | Nil = nil, same_site : Nil | String = nil)","location":{"filename":"src/selenium/cookie.cr","line_number":15,"url":null},"def":{"name":"new","args":[{"name":"name","external_name":"name","restriction":"::String"},{"name":"value","external_name":"value","restriction":"::String"},{"name":"path","default_value":"nil","external_name":"path","restriction":"::Nil | ::String"},{"name":"domain","default_value":"nil","external_name":"domain","restriction":"::Nil | ::String"},{"name":"secure","default_value":"nil","external_name":"secure","restriction":"::Bool | ::Nil"},{"name":"http_only","default_value":"nil","external_name":"http_only","restriction":"::Bool | ::Nil"},{"name":"expiry","default_value":"nil","external_name":"expiry","restriction":"::Int64 | ::Nil"},{"name":"same_site","default_value":"nil","external_name":"same_site","restriction":"::Nil | ::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(name, value, path, domain, secure, http_only, expiry, same_site)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/cookie.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"domain:String|Nil-instance-method","name":"domain","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":7,"url":null},"def":{"name":"domain","return_type":"String | ::Nil","visibility":"Public","body":"@domain"}},{"html_id":"domain=(domain:String|Nil)-instance-method","name":"domain=","abstract":false,"args":[{"name":"domain","external_name":"domain","restriction":"String | ::Nil"}],"args_string":"(domain : String | Nil)","args_html":"(domain : String | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":7,"url":null},"def":{"name":"domain=","args":[{"name":"domain","external_name":"domain","restriction":"String | ::Nil"}],"visibility":"Public","body":"@domain = domain"}},{"html_id":"expiry:Int64|Nil-instance-method","name":"expiry","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":11,"url":null},"def":{"name":"expiry","return_type":"Int64 | ::Nil","visibility":"Public","body":"@expiry"}},{"html_id":"expiry=(expiry:Int64|Nil)-instance-method","name":"expiry=","abstract":false,"args":[{"name":"expiry","external_name":"expiry","restriction":"Int64 | ::Nil"}],"args_string":"(expiry : Int64 | Nil)","args_html":"(expiry : Int64 | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":11,"url":null},"def":{"name":"expiry=","args":[{"name":"expiry","external_name":"expiry","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@expiry = expiry"}},{"html_id":"http_only:Bool|Nil-instance-method","name":"http_only","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":10,"url":null},"def":{"name":"http_only","return_type":"Bool | ::Nil","visibility":"Public","body":"@http_only"}},{"html_id":"http_only=(http_only:Bool|Nil)-instance-method","name":"http_only=","abstract":false,"args":[{"name":"http_only","external_name":"http_only","restriction":"Bool | ::Nil"}],"args_string":"(http_only : Bool | Nil)","args_html":"(http_only : Bool | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":10,"url":null},"def":{"name":"http_only=","args":[{"name":"http_only","external_name":"http_only","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@http_only = http_only"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":4,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"path:String|Nil-instance-method","name":"path","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":6,"url":null},"def":{"name":"path","return_type":"String | ::Nil","visibility":"Public","body":"@path"}},{"html_id":"path=(path:String|Nil)-instance-method","name":"path=","abstract":false,"args":[{"name":"path","external_name":"path","restriction":"String | ::Nil"}],"args_string":"(path : String | Nil)","args_html":"(path : String | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":6,"url":null},"def":{"name":"path=","args":[{"name":"path","external_name":"path","restriction":"String | ::Nil"}],"visibility":"Public","body":"@path = path"}},{"html_id":"same_site:String|Nil-instance-method","name":"same_site","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":13,"url":null},"def":{"name":"same_site","return_type":"String | ::Nil","visibility":"Public","body":"@same_site"}},{"html_id":"same_site=(same_site:String|Nil)-instance-method","name":"same_site=","abstract":false,"args":[{"name":"same_site","external_name":"same_site","restriction":"String | ::Nil"}],"args_string":"(same_site : String | Nil)","args_html":"(same_site : String | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":13,"url":null},"def":{"name":"same_site=","args":[{"name":"same_site","external_name":"same_site","restriction":"String | ::Nil"}],"visibility":"Public","body":"@same_site = same_site"}},{"html_id":"secure:Bool|Nil-instance-method","name":"secure","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":8,"url":null},"def":{"name":"secure","return_type":"Bool | ::Nil","visibility":"Public","body":"@secure"}},{"html_id":"secure=(secure:Bool|Nil)-instance-method","name":"secure=","abstract":false,"args":[{"name":"secure","external_name":"secure","restriction":"Bool | ::Nil"}],"args_string":"(secure : Bool | Nil)","args_html":"(secure : Bool | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":8,"url":null},"def":{"name":"secure=","args":[{"name":"secure","external_name":"secure","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@secure = secure"}},{"html_id":"value:String-instance-method","name":"value","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":5,"url":null},"def":{"name":"value","return_type":"String","visibility":"Public","body":"@value"}}]},{"html_id":"selenium/Selenium/CookieManager","path":"Selenium/CookieManager.html","kind":"class","full_name":"Selenium::CookieManager","name":"CookieManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/cookie_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String)-class-method","name":"new","abstract":false,"args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"add_cookie(name,value)-instance-method","name":"add_cookie","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""},{"name":"value","external_name":"value","restriction":""}],"args_string":"(name, value)","args_html":"(name, value)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":25,"url":null},"def":{"name":"add_cookie","args":[{"name":"name","external_name":"name","restriction":""},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"cookie = Cookie.new(name, value)\nadd_cookie(cookie)\n"}},{"html_id":"add_cookie(cookie)-instance-method","name":"add_cookie","abstract":false,"args":[{"name":"cookie","external_name":"cookie","restriction":""}],"args_string":"(cookie)","args_html":"(cookie)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":20,"url":null},"def":{"name":"add_cookie","args":[{"name":"cookie","external_name":"cookie","restriction":""}],"visibility":"Public","body":"parameters = {cookie: cookie}\ncommand_handler.execute(:add_cookie, path_variables, parameters)\n"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/cookie_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"delete_all_cookies-instance-method","name":"delete_all_cookies","abstract":false,"location":{"filename":"src/selenium/cookie_manager.cr","line_number":34,"url":null},"def":{"name":"delete_all_cookies","visibility":"Public","body":"command_handler.execute(:delete_all_cookies, path_variables)"}},{"html_id":"delete_cookie(name)-instance-method","name":"delete_cookie","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""}],"args_string":"(name)","args_html":"(name)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":30,"url":null},"def":{"name":"delete_cookie","args":[{"name":"name","external_name":"name","restriction":""}],"visibility":"Public","body":"command_handler.execute(:delete_cookie, path_variables.merge({\":name\" => name}))"}},{"html_id":"get_all_cookies-instance-method","name":"get_all_cookies","abstract":false,"location":{"filename":"src/selenium/cookie_manager.cr","line_number":8,"url":null},"def":{"name":"get_all_cookies","visibility":"Public","body":"data = command_handler.execute(:get_all_cookies, path_variables)\nArray(Cookie).from_json(data[\"value\"].to_json)\n"}},{"html_id":"get_cookie(name)-instance-method","name":"get_cookie","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""}],"args_string":"(name)","args_html":"(name)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":14,"url":null},"def":{"name":"get_cookie","args":[{"name":"name","external_name":"name","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:get_named_cookie, path_variables.merge({\":name\" => name}))\nCookie.from_json(data[\"value\"].to_json)\n"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/cookie_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}}]},{"html_id":"selenium/Selenium/Coordinate","path":"Selenium/Coordinate.html","kind":"struct","full_name":"Selenium::Coordinate","name":"Coordinate","abstract":false,"superclass":{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"selenium/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/coordinate.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(x:Int32,y:Int32)-class-method","name":"new","abstract":false,"args":[{"name":"x","external_name":"x","restriction":"::Int32"},{"name":"y","external_name":"y","restriction":"::Int32"}],"args_string":"(x : Int32, y : Int32)","args_html":"(x : Int32, y : Int32)","location":{"filename":"src/selenium/coordinate.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"x","external_name":"x","restriction":"::Int32"},{"name":"y","external_name":"y","restriction":"::Int32"}],"visibility":"Public","body":"_ = allocate\n_.initialize(x, y)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"x:Int32-instance-method","name":"x","abstract":false,"location":{"filename":"src/selenium/coordinate.cr","line_number":2,"url":null},"def":{"name":"x","return_type":"Int32","visibility":"Public","body":"@x"}},{"html_id":"y:Int32-instance-method","name":"y","abstract":false,"location":{"filename":"src/selenium/coordinate.cr","line_number":3,"url":null},"def":{"name":"y","return_type":"Int32","visibility":"Public","body":"@y"}}]},{"html_id":"selenium/Selenium/DefaultCommands","path":"Selenium/DefaultCommands.html","kind":"module","full_name":"Selenium::DefaultCommands","name":"DefaultCommands","abstract":false,"locations":[{"filename":"src/selenium/default_commands.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"DEFAULT_COMMANDS","name":"DEFAULT_COMMANDS","value":"{new_session: {:post, \"/session\"}, delete_session: {:delete, \"/session/:session_id\"}, status: {:get, \"/status\"}, get_timeouts: {:get, \"/session/:session_id/timeouts\"}, set_timeouts: {:post, \"/session/:session_id/timeouts\"}, navigate_to: {:post, \"/session/:session_id/url\"}, get_current_url: {:get, \"/session/:session_id/url\"}, back: {:post, \"/session/:session_id/back\"}, forward: {:post, \"/session/:session_id/forward\"}, refresh: {:post, \"/session/:session_id/refresh\"}, get_title: {:get, \"/session/:session_id/title\"}, get_window_handle: {:get, \"/session/:session_id/window\"}, close_window: {:delete, \"/session/:session_id/window\"}, switch_to_window: {:post, \"/session/:session_id/window\"}, get_window_handles: {:get, \"/session/:session_id/window/handles\"}, new_window: {:post, \"/session/:session_id/window/new\"}, switch_to_frame: {:post, \"/session/:session_id/frame\"}, switch_to_parent_frame: {:post, \"/session/:session_id/frame/parent\"}, get_window_rect: {:get, \"/session/:session_id/window/rect\"}, set_window_rect: {:post, \"/session/:session_id/window/rect\"}, maximize_window: {:post, \"/session/:session_id/window/maximize\"}, minimize_window: {:post, \"/session/:session_id/window/minimize\"}, fullscreen_window: {:post, \"/session/:session_id/window/fullscreen\"}, get_active_element: {:get, \"/session/:session_id/element/active\"}, find_element: {:post, \"/session/:session_id/element\"}, find_elements: {:post, \"/session/:session_id/elements\"}, find_element_from_element: {:post, \"/session/:session_id/element/:element_id/element\"}, find_elements_from_element: {:post, \"/session/:session_id/element/:element_id/elements\"}, is_element_selected: {:get, \"/session/:session_id/element/:element_id/selected\"}, get_element_attribute: {:get, \"/session/:session_id/element/:element_id/attribute/:name\"}, get_element_property: {:get, \"/session/:session_id/element/:element_id/property/:name\"}, get_element_css_value: {:get, \"/session/:session_id/element/:element_id/css/:property_name\"}, get_element_text: {:get, \"/session/:session_id/element/:element_id/text\"}, get_element_tag_name: {:get, \"/session/:session_id/element/:element_id/name\"}, get_element_rect: {:get, \"/session/:session_id/element/:element_id/rect\"}, is_element_enabled: {:get, \"/session/:session_id/element/:element_id/enabled\"}, is_element_displayed: {:get, \"/session/:session_id/element/:element_id/displayed\"}, element_click: {:post, \"/session/:session_id/element/:element_id/click\"}, element_clear: {:post, \"/session/:session_id/element/:element_id/clear\"}, element_send_keys: {:post, \"/session/:session_id/element/:element_id/value\"}, get_page_source: {:get, \"/session/:session_id/source\"}, execute_script: {:post, \"/session/:session_id/execute/sync\"}, execute_async_script: {:post, \"/session/:session_id/execute/async\"}, get_all_cookies: {:get, \"/session/:session_id/cookie\"}, get_named_cookie: {:get, \"/session/:session_id/cookie/:name\"}, add_cookie: {:post, \"/session/:session_id/cookie\"}, delete_cookie: {:delete, \"/session/:session_id/cookie/:name\"}, delete_all_cookies: {:delete, \"/session/:session_id/cookie\"}, perform_actions: {:post, \"/session/:session_id/actions\"}, release_actions: {:delete, \"/session/:session_id/actions\"}, dismiss_alert: {:post, \"/session/:session_id/alert/dismiss\"}, accept_alert: {:post, \"/session/:session_id/alert/accept\"}, get_alert_text: {:get, \"/session/:session_id/alert/text\"}, send_alert_text: {:post, \"/session/:session_id/alert/text\"}, take_screenshot: {:get, \"/session/:session_id/screenshot\"}, take_element_screenshot: {:get, \"/session/:session_id/element/:element_id/screenshot\"}}"}],"including_types":[{"html_id":"selenium/Selenium/CommandHandler","kind":"class","full_name":"Selenium::CommandHandler","name":"CommandHandler"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/DocumentManager","path":"Selenium/DocumentManager.html","kind":"class","full_name":"Selenium::DocumentManager","name":"DocumentManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/document_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String)-class-method","name":"new","abstract":false,"args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String)","location":{"filename":"src/selenium/document_manager.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/document_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"execute_async_script(script,args:Array(_)=[]ofString)-instance-method","name":"execute_async_script","abstract":false,"args":[{"name":"script","external_name":"script","restriction":""},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"Array(_)"}],"args_string":"(script, args : Array(_) = [] of String)","args_html":"(script, args : Array(_) = [] of String)","location":{"filename":"src/selenium/document_manager.cr","line_number":22,"url":null},"def":{"name":"execute_async_script","args":[{"name":"script","external_name":"script","restriction":""},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"Array(_)"}],"visibility":"Public","body":"parameters = {script: script, args: args}\ndata = command_handler.execute(:execute_async_script, path_variables, parameters)\ndata[\"value\"].as_s? || data[\"value\"].to_json\n"}},{"html_id":"execute_script(script,args:Array(_)=[]ofString)-instance-method","name":"execute_script","abstract":false,"args":[{"name":"script","external_name":"script","restriction":""},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"Array(_)"}],"args_string":"(script, args : Array(_) = [] of String)","args_html":"(script, args : Array(_) = [] of String)","location":{"filename":"src/selenium/document_manager.cr","line_number":13,"url":null},"def":{"name":"execute_script","args":[{"name":"script","external_name":"script","restriction":""},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"Array(_)"}],"visibility":"Public","body":"parameters = {script: script, args: args}\ndata = command_handler.execute(:execute_script, path_variables, parameters)\ndata[\"value\"].as_s? || data[\"value\"].to_json\n"}},{"html_id":"page_source-instance-method","name":"page_source","abstract":false,"location":{"filename":"src/selenium/document_manager.cr","line_number":8,"url":null},"def":{"name":"page_source","visibility":"Public","body":"data = command_handler.execute(:get_page_source, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"path_variables-instance-method","name":"path_variables","abstract":false,"location":{"filename":"src/selenium/document_manager.cr","line_number":31,"url":null},"def":{"name":"path_variables","visibility":"Public","body":"{\":session_id\" => session_id}"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/document_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}}]},{"html_id":"selenium/Selenium/Driver","path":"Selenium/Driver.html","kind":"class","full_name":"Selenium::Driver","name":"Driver","abstract":true,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/driver.cr","line_number":7,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"selenium/Selenium/Chrome/Driver","kind":"class","full_name":"Selenium::Chrome::Driver","name":"Driver"},{"html_id":"selenium/Selenium/Firefox/Driver","kind":"class","full_name":"Selenium::Firefox::Driver","name":"Driver"},{"html_id":"selenium/Selenium/Remote/Driver","kind":"class","full_name":"Selenium::Remote::Driver","name":"Driver"},{"html_id":"selenium/Selenium/Safari/Driver","kind":"class","full_name":"Selenium::Safari::Driver","name":"Driver"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"doc":"The `Selenium::Driver` is the root class for interacting with browsers\n\n### Using with `Selenium::Service`\n\nIf you passed in a `Selenium::Service` you *MUST* call `Selenium::Driver#stop` when you are done to stop the service\nor else the process it starts will continue running on your computer after the program ends","summary":"The Selenium::Driver
is the root class for interacting with browsers
browser options: - :chrome (see Selenium::Chrome::Driver
) - :firefox or :gecko (see Selenium::Firefox::Driver
) - :safari (see Selenium::Safari::Driver
) - :remote (see Selenium::Remote::Driver
)
#attribute
is for referencing static fields if you are trying to access fields that change you should use #property
TODO I don't remember why I made the properties floats nor why they are nilable.
","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/element_rect.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"height:Float64|Nil-instance-method","name":"height","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":9,"url":null},"def":{"name":"height","return_type":"Float64 | ::Nil","visibility":"Public","body":"@height"}},{"html_id":"height=(height:Float64|Nil)-instance-method","name":"height=","abstract":false,"args":[{"name":"height","external_name":"height","restriction":"Float64 | ::Nil"}],"args_string":"(height : Float64 | Nil)","args_html":"(height : Float64 | Nil)","location":{"filename":"src/selenium/element_rect.cr","line_number":9,"url":null},"def":{"name":"height=","args":[{"name":"height","external_name":"height","restriction":"Float64 | ::Nil"}],"visibility":"Public","body":"@height = height"}},{"html_id":"midpoint:Selenium::Coordinate|Nil-instance-method","name":"midpoint","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":11,"url":null},"def":{"name":"midpoint","return_type":"Selenium::Coordinate | ::Nil","visibility":"Public","body":"temp_x = x\ntemp_y = y\ntemp_width = width\ntemp_height = height\nif temp_x.nil?\n return\nend\nif temp_y.nil?\n return\nend\nif temp_width.nil?\n return\nend\nif temp_height.nil?\n return\nend\nSelenium::Coordinate.new(x: (temp_x + (temp_width / 2)).to_i, y: (temp_y + (temp_height / 2)).to_i)\n"}},{"html_id":"width:Float64|Nil-instance-method","name":"width","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":8,"url":null},"def":{"name":"width","return_type":"Float64 | ::Nil","visibility":"Public","body":"@width"}},{"html_id":"width=(width:Float64|Nil)-instance-method","name":"width=","abstract":false,"args":[{"name":"width","external_name":"width","restriction":"Float64 | ::Nil"}],"args_string":"(width : Float64 | Nil)","args_html":"(width : Float64 | Nil)","location":{"filename":"src/selenium/element_rect.cr","line_number":8,"url":null},"def":{"name":"width=","args":[{"name":"width","external_name":"width","restriction":"Float64 | ::Nil"}],"visibility":"Public","body":"@width = width"}},{"html_id":"x:Float64|Nil-instance-method","name":"x","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":6,"url":null},"def":{"name":"x","return_type":"Float64 | ::Nil","visibility":"Public","body":"@x"}},{"html_id":"x=(x:Float64|Nil)-instance-method","name":"x=","abstract":false,"args":[{"name":"x","external_name":"x","restriction":"Float64 | ::Nil"}],"args_string":"(x : Float64 | Nil)","args_html":"(x : Float64 | Nil)","location":{"filename":"src/selenium/element_rect.cr","line_number":6,"url":null},"def":{"name":"x=","args":[{"name":"x","external_name":"x","restriction":"Float64 | ::Nil"}],"visibility":"Public","body":"@x = x"}},{"html_id":"y:Float64|Nil-instance-method","name":"y","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":7,"url":null},"def":{"name":"y","return_type":"Float64 | ::Nil","visibility":"Public","body":"@y"}},{"html_id":"y=(y:Float64|Nil)-instance-method","name":"y=","abstract":false,"args":[{"name":"y","external_name":"y","restriction":"Float64 | ::Nil"}],"args_string":"(y : Float64 | Nil)","args_html":"(y : Float64 | Nil)","location":{"filename":"src/selenium/element_rect.cr","line_number":7,"url":null},"def":{"name":"y=","args":[{"name":"y","external_name":"y","restriction":"Float64 | ::Nil"}],"visibility":"Public","body":"@y = y"}}]},{"html_id":"selenium/Selenium/Error","path":"Selenium/Error.html","kind":"class","full_name":"Selenium::Error","name":"Error","abstract":false,"superclass":{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},"ancestors":[{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/error.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"class_methods":[{"html_id":"from_json(json)-class-method","name":"from_json","abstract":false,"args":[{"name":"json","external_name":"json","restriction":""}],"args_string":"(json)","args_html":"(json)","location":{"filename":"src/selenium/error.cr","line_number":2,"url":null},"def":{"name":"from_json","args":[{"name":"json","external_name":"json","restriction":""}],"visibility":"Public","body":"new(InternalData.from_json(json))"}}],"constructors":[{"html_id":"new(internal_data:Selenium::Error::InternalData)-class-method","name":"new","abstract":false,"args":[{"name":"internal_data","external_name":"internal_data","restriction":"::Selenium::Error::InternalData"}],"args_string":"(internal_data : Selenium::Error::InternalData)","args_html":"(internal_data : Selenium::Error::InternalData)","location":{"filename":"src/selenium/error.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"internal_data","external_name":"internal_data","restriction":"::Selenium::Error::InternalData"}],"visibility":"Public","body":"_ = allocate\n_.initialize(internal_data)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"message-instance-method","name":"message","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":11,"url":null},"def":{"name":"message","visibility":"Public","body":"[internal_data.error, internal_data.error_message].reject(&.blank?).join(\": \")"}}],"types":[{"html_id":"selenium/Selenium/Error/InternalData","path":"Selenium/Error/InternalData.html","kind":"class","full_name":"Selenium::Error::InternalData","name":"InternalData","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/error.cr","line_number":15,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium/Error","kind":"class","full_name":"Selenium::Error","name":"Error"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/error.cr","line_number":16,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:JSON::Any|Nil-instance-method","name":"data","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":20,"url":null},"def":{"name":"data","return_type":"JSON::Any | ::Nil","visibility":"Public","body":"@data"}},{"html_id":"data=(data:JSON::Any|Nil)-instance-method","name":"data=","abstract":false,"args":[{"name":"data","external_name":"data","restriction":"JSON::Any | ::Nil"}],"args_string":"(data : JSON::Any | Nil)","args_html":"(data : JSON::Any | Nil)","location":{"filename":"src/selenium/error.cr","line_number":20,"url":null},"def":{"name":"data=","args":[{"name":"data","external_name":"data","restriction":"JSON::Any | ::Nil"}],"visibility":"Public","body":"@data = data"}},{"html_id":"error:String-instance-method","name":"error","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":18,"url":null},"def":{"name":"error","return_type":"String","visibility":"Public","body":"@error"}},{"html_id":"error=(error:String)-instance-method","name":"error=","abstract":false,"args":[{"name":"error","external_name":"error","restriction":"String"}],"args_string":"(error : String)","args_html":"(error : String)","location":{"filename":"src/selenium/error.cr","line_number":18,"url":null},"def":{"name":"error=","args":[{"name":"error","external_name":"error","restriction":"String"}],"visibility":"Public","body":"@error = error"}},{"html_id":"error_message:String-instance-method","name":"error_message","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":23,"url":null},"def":{"name":"error_message","return_type":"String","visibility":"Public","body":"@error_message"}},{"html_id":"error_message=(error_message:String)-instance-method","name":"error_message=","abstract":false,"args":[{"name":"error_message","external_name":"error_message","restriction":"String"}],"args_string":"(error_message : String)","args_html":"(error_message : String)","location":{"filename":"src/selenium/error.cr","line_number":23,"url":null},"def":{"name":"error_message=","args":[{"name":"error_message","external_name":"error_message","restriction":"String"}],"visibility":"Public","body":"@error_message = error_message"}},{"html_id":"stacktrace:String-instance-method","name":"stacktrace","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":19,"url":null},"def":{"name":"stacktrace","return_type":"String","visibility":"Public","body":"@stacktrace"}},{"html_id":"stacktrace=(stacktrace:String)-instance-method","name":"stacktrace=","abstract":false,"args":[{"name":"stacktrace","external_name":"stacktrace","restriction":"String"}],"args_string":"(stacktrace : String)","args_html":"(stacktrace : String)","location":{"filename":"src/selenium/error.cr","line_number":19,"url":null},"def":{"name":"stacktrace=","args":[{"name":"stacktrace","external_name":"stacktrace","restriction":"String"}],"visibility":"Public","body":"@stacktrace = stacktrace"}}]}]},{"html_id":"selenium/Selenium/Firefox","path":"Selenium/Firefox.html","kind":"module","full_name":"Selenium::Firefox","name":"Firefox","abstract":false,"locations":[{"filename":"src/selenium/firefox/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"types":[{"html_id":"selenium/Selenium/Firefox/Capabilities","path":"Selenium/Firefox/Capabilities.html","kind":"class","full_name":"Selenium::Firefox::Capabilities","name":"Capabilities","abstract":false,"superclass":{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},"ancestors":[{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/firefox/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Firefox","kind":"module","full_name":"Selenium::Firefox","name":"Firefox"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":1,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"firefox_options:Selenium::Firefox::Capabilities::FirefoxOptions-instance-method","name":"firefox_options","abstract":false,"location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":5,"url":null},"def":{"name":"firefox_options","visibility":"Public","body":"@firefox_options"}},{"html_id":"firefox_options=(firefox_options:Selenium::Firefox::Capabilities::FirefoxOptions)-instance-method","name":"firefox_options=","abstract":false,"args":[{"name":"firefox_options","external_name":"firefox_options","restriction":"::Selenium::Firefox::Capabilities::FirefoxOptions"}],"args_string":"(firefox_options : Selenium::Firefox::Capabilities::FirefoxOptions)","args_html":"(firefox_options : Selenium::Firefox::Capabilities::FirefoxOptions)","location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":5,"url":null},"def":{"name":"firefox_options=","args":[{"name":"firefox_options","external_name":"firefox_options","restriction":"::Selenium::Firefox::Capabilities::FirefoxOptions"}],"visibility":"Public","body":"@firefox_options = firefox_options"}}],"types":[{"html_id":"selenium/Selenium/Firefox/Capabilities/FirefoxOptions","path":"Selenium/Firefox/Capabilities/FirefoxOptions.html","kind":"class","full_name":"Selenium::Firefox::Capabilities::FirefoxOptions","name":"FirefoxOptions","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/firefox/capabilities.cr","line_number":7,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium/Firefox/Capabilities","kind":"class","full_name":"Selenium::Firefox::Capabilities","name":"Capabilities"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":10,"url":null},"def":{"name":"new","visibility":"Public","body":"_ = allocate\n_.initialize\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"args:Array(String)-instance-method","name":"args","abstract":false,"location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":13,"url":null},"def":{"name":"args","visibility":"Public","body":"@args"}},{"html_id":"args=(args:Array(String))-instance-method","name":"args=","abstract":false,"args":[{"name":"args","external_name":"args","restriction":"::Array(::String)"}],"args_string":"(args : Array(String))","args_html":"(args : Array(String))","location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":13,"url":null},"def":{"name":"args=","args":[{"name":"args","external_name":"args","restriction":"::Array(::String)"}],"visibility":"Public","body":"@args = args"}}]}]},{"html_id":"selenium/Selenium/Firefox/Driver","path":"Selenium/Firefox/Driver.html","kind":"class","full_name":"Selenium::Firefox::Driver","name":"Driver","abstract":false,"superclass":{"html_id":"selenium/Selenium/Driver","kind":"class","full_name":"Selenium::Driver","name":"Driver"},"ancestors":[{"html_id":"selenium/Selenium/Driver","kind":"class","full_name":"Selenium::Driver","name":"Driver"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/firefox/driver.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Firefox","kind":"module","full_name":"Selenium::Firefox","name":"Firefox"},"instance_methods":[{"html_id":"create_session(capabilities:Firefox::Capabilities):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"capabilities","external_name":"capabilities","restriction":"Firefox::Capabilities"}],"args_string":"(capabilities : Firefox::Capabilities) : Session","args_html":"(capabilities : Firefox::Capabilities) : Session","location":{"filename":"src/selenium/firefox/driver.cr","line_number":2,"url":null},"def":{"name":"create_session","args":[{"name":"capabilities","external_name":"capabilities","restriction":"Firefox::Capabilities"}],"return_type":"Session","visibility":"Public","body":"super(capabilities)"}},{"html_id":"create_session(args:Array(String)):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"args_string":"(args : Array(String)) : Session","args_html":"(args : Array(String)) : Session","location":{"filename":"src/selenium/firefox/driver.cr","line_number":6,"url":null},"def":{"name":"create_session","args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"return_type":"Session","visibility":"Public","body":"capabilities = Firefox::Capabilities.new\ncapabilities.firefox_options.args = args\ncreate_session(capabilities)\n"}}]},{"html_id":"selenium/Selenium/Firefox/Service","path":"Selenium/Firefox/Service.html","kind":"class","full_name":"Selenium::Firefox::Service","name":"Service","abstract":false,"superclass":{"html_id":"selenium/Selenium/Service","kind":"class","full_name":"Selenium::Service","name":"Service"},"ancestors":[{"html_id":"selenium/Selenium/Service","kind":"class","full_name":"Selenium::Service","name":"Service"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/firefox/service.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Firefox","kind":"module","full_name":"Selenium::Firefox","name":"Firefox"},"instance_methods":[{"html_id":"default_port:Int32-instance-method","name":"default_port","abstract":false,"location":{"filename":"src/selenium/firefox/service.cr","line_number":2,"url":null},"def":{"name":"default_port","return_type":"Int32","visibility":"Public","body":"4444"}},{"html_id":"stop-instance-method","name":"stop","abstract":false,"location":{"filename":"src/selenium/firefox/service.cr","line_number":6,"url":null},"def":{"name":"stop","visibility":"Public","body":"stop_process(process)"}}]}]},{"html_id":"selenium/Selenium/Helpers","path":"Selenium/Helpers.html","kind":"module","full_name":"Selenium::Helpers","name":"Helpers","abstract":false,"locations":[{"filename":"src/selenium/helpers/select.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"types":[{"html_id":"selenium/Selenium/Helpers/Select","path":"Selenium/Helpers/Select.html","kind":"class","full_name":"Selenium::Helpers::Select","name":"Select","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/helpers/select.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Helpers","kind":"module","full_name":"Selenium::Helpers","name":"Helpers"},"class_methods":[{"html_id":"from_element(element)-class-method","name":"from_element","abstract":false,"args":[{"name":"element","external_name":"element","restriction":""}],"args_string":"(element)","args_html":"(element)","location":{"filename":"src/selenium/helpers/select.cr","line_number":2,"url":null},"def":{"name":"from_element","args":[{"name":"element","external_name":"element","restriction":""}],"visibility":"Public","body":"tag_name = element.tag_name\nif tag_name == \"select\"\nelse\n raise(InvalidTagError.new(expected: \"select\", got: tag_name))\nend\nnew(element)\n"}}],"instance_methods":[{"html_id":"deselect_all-instance-method","name":"deselect_all","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":39,"url":null},"def":{"name":"deselect_all","visibility":"Public","body":"if multiple?\nelse\n raise(UnsupportedOperationError.new(\"you may only deselect multiple options in a multi-select\"))\nend\noptions.each do |option|\n deselect_option(option)\nend\n"}},{"html_id":"deselect_by_value(value)-instance-method","name":"deselect_by_value","abstract":false,"args":[{"name":"value","external_name":"value","restriction":""}],"args_string":"(value)","args_html":"(value)","location":{"filename":"src/selenium/helpers/select.cr","line_number":29,"url":null},"def":{"name":"deselect_by_value","args":[{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"deselect_option(find_option_by_value(value))"}},{"html_id":"multiple?:Bool-instance-method","name":"multiple?","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":10,"url":null},"def":{"name":"multiple?","return_type":"Bool","visibility":"Public","body":"@multiple"}},{"html_id":"options-instance-method","name":"options","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":17,"url":null},"def":{"name":"options","visibility":"Public","body":"element.find_child_elements(LocationStrategy::TAG_NAME, \"option\")"}},{"html_id":"select_all-instance-method","name":"select_all","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":33,"url":null},"def":{"name":"select_all","visibility":"Public","body":"if multiple?\nelse\n raise(UnsupportedOperationError.new(\"you may only select multiple options in a multi-select\"))\nend\noptions.each do |option|\n select_option(option)\nend\n"}},{"html_id":"select_by_value(value)-instance-method","name":"select_by_value","abstract":false,"args":[{"name":"value","external_name":"value","restriction":""}],"args_string":"(value)","args_html":"(value)","location":{"filename":"src/selenium/helpers/select.cr","line_number":25,"url":null},"def":{"name":"select_by_value","args":[{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"select_option(find_option_by_value(value))"}},{"html_id":"selected_options-instance-method","name":"selected_options","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":21,"url":null},"def":{"name":"selected_options","visibility":"Public","body":"options.select(&.selected?)"}}]},{"html_id":"selenium/Selenium/Helpers/Wait","path":"Selenium/Helpers/Wait.html","kind":"class","full_name":"Selenium::Helpers::Wait","name":"Wait","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/helpers/wait.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Helpers","kind":"module","full_name":"Selenium::Helpers","name":"Helpers"},"constructors":[{"html_id":"new(timeout:Time::Span=5.seconds,interval:Time::Span=0.2.seconds,ignored:Array(Exception)|Array(::Selenium::Error.class)=[Selenium::Error],message:String|Nil=nil)-class-method","name":"new","doc":"Create a new `Wait` instance.\n\n`timeout` - seconds to wait before timing out\n`interval` - seconds to sleep between polls\n`message` - exception mesage if timed out\n`ignored` - exceptions to ignore while polling","summary":"Create a new Wait
instance.
Wait until the given block returns a true
value.
TODO write test once it is understood: - how to know/acquire the frame id - what a frame is - what switching frames will do
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":""}],"args_string":"(id)","args_html":"(id)","location":{"filename":"src/selenium/session.cr","line_number":120,"url":null},"def":{"name":"switch_to_frame","args":[{"name":"id","external_name":"id","restriction":""}],"visibility":"Public","body":"parameters = {id: id}\ncommand_handler.execute(:switch_to_frame, path_variables, parameters)\n"}},{"html_id":"switch_to_parent_frame-instance-method","name":"switch_to_parent_frame","doc":"TODO: reference switch_to_frame","summary":"TODO reference switch_to_frame
","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":126,"url":null},"def":{"name":"switch_to_parent_frame","visibility":"Public","body":"command_handler.execute(:switch_to_parent_frame, path_variables)"}},{"html_id":"timeouts-instance-method","name":"timeouts","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":98,"url":null},"def":{"name":"timeouts","visibility":"Public","body":"data = command_handler.execute(:get_timeouts, path_variables)\nTimeoutConfiguration.from_json(data[\"value\"].to_json)\n"}},{"html_id":"title-instance-method","name":"title","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":88,"url":null},"def":{"name":"title","visibility":"Public","body":"data = command_handler.execute(:get_title, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"window_manager-instance-method","name":"window_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":9,"url":null},"def":{"name":"window_manager","visibility":"Public","body":"WindowManager.new(command_handler, id)"}}]},{"html_id":"selenium/Selenium/SessionId","path":"Selenium/SessionId.html","kind":"alias","full_name":"Selenium::SessionId","name":"SessionId","abstract":false,"locations":[{"filename":"src/selenium/types.cr","line_number":2,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":true,"aliased":"String","aliased_html":"String","const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/Status","path":"Selenium/Status.html","kind":"class","full_name":"Selenium::Status","name":"Status","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/status.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/status.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"message:String-instance-method","name":"message","abstract":false,"location":{"filename":"src/selenium/status.cr","line_number":5,"url":null},"def":{"name":"message","return_type":"String","visibility":"Public","body":"@message"}},{"html_id":"message=(message:String)-instance-method","name":"message=","abstract":false,"args":[{"name":"message","external_name":"message","restriction":"String"}],"args_string":"(message : String)","args_html":"(message : String)","location":{"filename":"src/selenium/status.cr","line_number":5,"url":null},"def":{"name":"message=","args":[{"name":"message","external_name":"message","restriction":"String"}],"visibility":"Public","body":"@message = message"}},{"html_id":"ready=(ready:Bool)-instance-method","name":"ready=","abstract":false,"args":[{"name":"ready","external_name":"ready","restriction":"Bool"}],"args_string":"(ready : Bool)","args_html":"(ready : Bool)","location":{"filename":"src/selenium/status.cr","line_number":4,"url":null},"def":{"name":"ready=","args":[{"name":"ready","external_name":"ready","restriction":"Bool"}],"visibility":"Public","body":"@ready = ready"}},{"html_id":"ready?:Bool-instance-method","name":"ready?","abstract":false,"location":{"filename":"src/selenium/status.cr","line_number":4,"url":null},"def":{"name":"ready?","return_type":"Bool","visibility":"Public","body":"@ready"}}]},{"html_id":"selenium/Selenium/TimeoutConfiguration","path":"Selenium/TimeoutConfiguration.html","kind":"class","full_name":"Selenium::TimeoutConfiguration","name":"TimeoutConfiguration","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/timeout_configuration.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/timeout_configuration.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new(script:Int32|Nil=nil,page_load:Int32|Nil=nil,implicit:Int32|Nil=nil)-class-method","name":"new","abstract":false,"args":[{"name":"script","default_value":"nil","external_name":"script","restriction":"::Int32 | ::Nil"},{"name":"page_load","default_value":"nil","external_name":"page_load","restriction":"::Int32 | ::Nil"},{"name":"implicit","default_value":"nil","external_name":"implicit","restriction":"::Int32 | ::Nil"}],"args_string":"(script : Int32 | Nil = nil, page_load : Int32 | Nil = nil, implicit : Int32 | Nil = nil)","args_html":"(script : Int32 | Nil = nil, page_load : Int32 | Nil = nil, implicit : Int32 | Nil = nil)","location":{"filename":"src/selenium/timeout_configuration.cr","line_number":11,"url":null},"def":{"name":"new","args":[{"name":"script","default_value":"nil","external_name":"script","restriction":"::Int32 | ::Nil"},{"name":"page_load","default_value":"nil","external_name":"page_load","restriction":"::Int32 | ::Nil"},{"name":"implicit","default_value":"nil","external_name":"implicit","restriction":"::Int32 | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(script, page_load, implicit)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"implicit:Int32|Nil-instance-method","name":"implicit","abstract":false,"location":{"filename":"src/selenium/timeout_configuration.cr","line_number":9,"url":null},"def":{"name":"implicit","return_type":"Int32 | ::Nil","visibility":"Public","body":"@implicit"}},{"html_id":"page_load:Int32|Nil-instance-method","name":"page_load","abstract":false,"location":{"filename":"src/selenium/timeout_configuration.cr","line_number":8,"url":null},"def":{"name":"page_load","return_type":"Int32 | ::Nil","visibility":"Public","body":"@page_load"}},{"html_id":"script:Int32|Nil-instance-method","name":"script","abstract":false,"location":{"filename":"src/selenium/timeout_configuration.cr","line_number":5,"url":null},"def":{"name":"script","return_type":"Int32 | ::Nil","visibility":"Public","body":"@script"}}]},{"html_id":"selenium/Selenium/UnsupportedOperationError","path":"Selenium/UnsupportedOperationError.html","kind":"class","full_name":"Selenium::UnsupportedOperationError","name":"UnsupportedOperationError","abstract":false,"superclass":{"html_id":"selenium/Selenium/BaseError","kind":"class","full_name":"Selenium::BaseError","name":"BaseError"},"ancestors":[{"html_id":"selenium/Selenium/BaseError","kind":"class","full_name":"Selenium::BaseError","name":"BaseError"},{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/errors.cr","line_number":11,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/WebStorageManager","path":"Selenium/WebStorageManager.html","kind":"class","full_name":"Selenium::WebStorageManager","name":"WebStorageManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/web_storage_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(document_manager:Selenium::DocumentManager,storage:StorageType=StorageType::LocalStorage)-class-method","name":"new","abstract":false,"args":[{"name":"document_manager","external_name":"document_manager","restriction":"::Selenium::DocumentManager"},{"name":"storage","default_value":"StorageType::LocalStorage","external_name":"storage","restriction":"StorageType"}],"args_string":"(document_manager : Selenium::DocumentManager, storage : StorageType = StorageType::LocalStorage)","args_html":"(document_manager : Selenium::DocumentManager, storage : StorageType = StorageType::LocalStorage)","location":{"filename":"src/selenium/web_storage_manager.cr","line_number":11,"url":null},"def":{"name":"new","args":[{"name":"document_manager","external_name":"document_manager","restriction":"::Selenium::DocumentManager"},{"name":"storage","default_value":"StorageType::LocalStorage","external_name":"storage","restriction":"StorageType"}],"visibility":"Public","body":"_ = allocate\n_.initialize(document_manager, storage)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"clear-instance-method","name":"clear","doc":"Clear all items from the Storage","summary":"Clear all items from the Storage
","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":15,"url":null},"def":{"name":"clear","visibility":"Public","body":"document_manager.execute_script(\"#{storage_type_in_js}.clear()\")"}},{"html_id":"document_manager:DocumentManager-instance-method","name":"document_manager","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":7,"url":null},"def":{"name":"document_manager","return_type":"DocumentManager","visibility":"Public","body":"@document_manager"}},{"html_id":"item(name:String,value=nil):String|Nil-instance-method","name":"item","doc":"Retrieve and insert item from/into the Storage.\nIf no value is given, it will return the item specified in `name`.\nFor a given `value`, it will be added or updated for the item specified in `name`.","summary":"Retrieve and insert item from/into the Storage.
","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"value","default_value":"nil","external_name":"value","restriction":""}],"args_string":"(name : String, value = nil) : String | Nil","args_html":"(name : String, value = nil) : String | Nil","location":{"filename":"src/selenium/web_storage_manager.cr","line_number":22,"url":null},"def":{"name":"item","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"value","default_value":"nil","external_name":"value","restriction":""}],"return_type":"String | Nil","visibility":"Public","body":"if value.nil?\n document_manager.execute_script(\"return #{storage_type_in_js}.getItem('#{name}')\")\nelse\n document_manager.execute_script(\"#{storage_type_in_js}.setItem('#{name}', '#{value}')\")\nend"}},{"html_id":"keys:JSON::Any-instance-method","name":"keys","doc":"Retrieve the list of keys from the Storage","summary":"Retrieve the list of keys from the Storage
","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":31,"url":null},"def":{"name":"keys","return_type":"JSON::Any","visibility":"Public","body":"str = document_manager.execute_script(\"return Object.keys(#{storage_type_in_js})\")\nJSON.parse(str)\n"}},{"html_id":"remove(name:String)-instance-method","name":"remove","doc":"Remove the item specified in `name` from the Storage","summary":"Remove the item specified in name
from the Storage
Retrieve the number of items in the Storage
","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":42,"url":null},"def":{"name":"size","return_type":"Int","visibility":"Public","body":"(document_manager.execute_script(\"return #{storage_type_in_js}.length\")).to_i"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","location":{"filename":"src/selenium/web_storage_manager.cr","line_number":9,"url":null},"def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" @document_manager.\n{{ call }}\n\n \n"}}],"types":[{"html_id":"selenium/Selenium/WebStorageManager/StorageType","path":"Selenium/WebStorageManager/StorageType.html","kind":"enum","full_name":"Selenium::WebStorageManager::StorageType","name":"StorageType","abstract":false,"ancestors":[{"html_id":"selenium/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"selenium/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"selenium/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/web_storage_manager.cr","line_number":2,"url":null}],"repository_name":"selenium","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"LocalStorage","name":"LocalStorage","value":"0"},{"id":"SessionStorage","name":"SessionStorage","value":"1"}],"namespace":{"html_id":"selenium/Selenium/WebStorageManager","kind":"class","full_name":"Selenium::WebStorageManager","name":"WebStorageManager"},"instance_methods":[{"html_id":"local_storage?-instance-method","name":"local_storage?","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":3,"url":null},"def":{"name":"local_storage?","visibility":"Public","body":"self == LocalStorage"}},{"html_id":"session_storage?-instance-method","name":"session_storage?","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":4,"url":null},"def":{"name":"session_storage?","visibility":"Public","body":"self == SessionStorage"}}]}]},{"html_id":"selenium/Selenium/WindowHandle","path":"Selenium/WindowHandle.html","kind":"alias","full_name":"Selenium::WindowHandle","name":"WindowHandle","abstract":false,"locations":[{"filename":"src/selenium/types.cr","line_number":3,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":true,"aliased":"String","aliased_html":"String","const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/WindowManager","path":"Selenium/WindowManager.html","kind":"class","full_name":"Selenium::WindowManager","name":"WindowManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/window_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String)-class-method","name":"new","abstract":false,"args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String)","location":{"filename":"src/selenium/window_manager.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"close_window-instance-method","name":"close_window","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":68,"url":null},"def":{"name":"close_window","visibility":"Public","body":"command_handler.execute(:close_window, path_variables)"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"fullscreen-instance-method","name":"fullscreen","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":8,"url":null},"def":{"name":"fullscreen","visibility":"Public","body":"data = command_handler.execute(:fullscreen_window, path_variables)\nWindowRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"maximize-instance-method","name":"maximize","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":13,"url":null},"def":{"name":"maximize","visibility":"Public","body":"data = command_handler.execute(:maximize_window, path_variables)\nWindowRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"minimize-instance-method","name":"minimize","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":18,"url":null},"def":{"name":"minimize","visibility":"Public","body":"data = command_handler.execute(:minimize_window, path_variables)\nWindowRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"new_window(type:Symbol=:tab)-instance-method","name":"new_window","abstract":false,"args":[{"name":"type","default_value":":tab","external_name":"type","restriction":"Symbol"}],"args_string":"(type : Symbol = :tab)","args_html":"(type : Symbol = :tab)","location":{"filename":"src/selenium/window_manager.cr","line_number":33,"url":null},"def":{"name":"new_window","args":[{"name":"type","default_value":":tab","external_name":"type","restriction":"Symbol"}],"visibility":"Public","body":"parameters = {type: type}\ndata = command_handler.execute(:new_window, path_variables, parameters)\n(data.dig(\"value\", \"handle\")).as_s\n"}},{"html_id":"resize_window(width:Int64|Nil=nil,height:Int64|Nil=nil)-instance-method","name":"resize_window","abstract":false,"args":[{"name":"width","default_value":"nil","external_name":"width","restriction":"Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"Int64 | ::Nil"}],"args_string":"(width : Int64 | Nil = nil, height : Int64 | Nil = nil)","args_html":"(width : Int64 | Nil = nil, height : Int64 | Nil = nil)","location":{"filename":"src/selenium/window_manager.cr","line_number":59,"url":null},"def":{"name":"resize_window","args":[{"name":"width","default_value":"nil","external_name":"width","restriction":"Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"set_window_rect(width, height)"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}},{"html_id":"set_window_rect(width:Int64|Nil=nil,height:Int64|Nil=nil,x:Int64|Nil=nil,y:Int64|Nil=nil):WindowRect-instance-method","name":"set_window_rect","abstract":false,"args":[{"name":"width","default_value":"nil","external_name":"width","restriction":"Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"Int64 | ::Nil"},{"name":"x","default_value":"nil","external_name":"x","restriction":"Int64 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"Int64 | ::Nil"}],"args_string":"(width : Int64 | Nil = nil, height : Int64 | Nil = nil, x : Int64 | Nil = nil, y : Int64 | Nil = nil) : WindowRect","args_html":"(width : Int64 | Nil = nil, height : Int64 | Nil = nil, x : Int64 | Nil = nil, y : Int64 | Nil = nil) : WindowRect","location":{"filename":"src/selenium/window_manager.cr","line_number":49,"url":null},"def":{"name":"set_window_rect","args":[{"name":"width","default_value":"nil","external_name":"width","restriction":"Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"Int64 | ::Nil"},{"name":"x","default_value":"nil","external_name":"x","restriction":"Int64 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"Int64 | ::Nil"}],"return_type":"WindowRect","visibility":"Public","body":"window_rect = WindowRect.new(width: width, height: height, x: x, y: y)\nset_window_rect(window_rect)\n"}},{"html_id":"set_window_rect(window_rect)-instance-method","name":"set_window_rect","abstract":false,"args":[{"name":"window_rect","external_name":"window_rect","restriction":""}],"args_string":"(window_rect)","args_html":"(window_rect)","location":{"filename":"src/selenium/window_manager.cr","line_number":43,"url":null},"def":{"name":"set_window_rect","args":[{"name":"window_rect","external_name":"window_rect","restriction":""}],"visibility":"Public","body":"parameters = window_rect\ndata = command_handler.execute(:set_window_rect, path_variables, parameters)\nWindowRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"switch_to_window(window_handle)-instance-method","name":"switch_to_window","abstract":false,"args":[{"name":"window_handle","external_name":"window_handle","restriction":""}],"args_string":"(window_handle)","args_html":"(window_handle)","location":{"filename":"src/selenium/window_manager.cr","line_number":39,"url":null},"def":{"name":"switch_to_window","args":[{"name":"window_handle","external_name":"window_handle","restriction":""}],"visibility":"Public","body":"command_handler.execute(:switch_to_window, path_variables, {handle: window_handle})"}},{"html_id":"window_handle-instance-method","name":"window_handle","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":23,"url":null},"def":{"name":"window_handle","visibility":"Public","body":"data = command_handler.execute(:get_window_handle, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"window_handles-instance-method","name":"window_handles","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":28,"url":null},"def":{"name":"window_handles","visibility":"Public","body":"data = command_handler.execute(:get_window_handles, path_variables)\ndata[\"value\"].as_a.map(&.as_s)\n"}},{"html_id":"window_rect-instance-method","name":"window_rect","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":63,"url":null},"def":{"name":"window_rect","visibility":"Public","body":"data = command_handler.execute(:get_window_rect, path_variables)\nWindowRect.from_json(data[\"value\"].to_json)\n"}}]},{"html_id":"selenium/Selenium/WindowRect","path":"Selenium/WindowRect.html","kind":"struct","full_name":"Selenium::WindowRect","name":"WindowRect","abstract":false,"superclass":{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"selenium/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/window_rect.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/window_rect.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new(x:Int64|Nil=nil,y:Int64|Nil=nil,width:Int64|Nil=nil,height:Int64|Nil=nil)-class-method","name":"new","abstract":false,"args":[{"name":"x","default_value":"nil","external_name":"x","restriction":"::Int64 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"::Int64 | ::Nil"},{"name":"width","default_value":"nil","external_name":"width","restriction":"::Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"::Int64 | ::Nil"}],"args_string":"(x : Int64 | Nil = nil, y : Int64 | Nil = nil, width : Int64 | Nil = nil, height : Int64 | Nil = nil)","args_html":"(x : Int64 | Nil = nil, y : Int64 | Nil = nil, width : Int64 | Nil = nil, height : Int64 | Nil = nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":9,"url":null},"def":{"name":"new","args":[{"name":"x","default_value":"nil","external_name":"x","restriction":"::Int64 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"::Int64 | ::Nil"},{"name":"width","default_value":"nil","external_name":"width","restriction":"::Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"::Int64 | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(x, y, width, height)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"height:Int64|Nil-instance-method","name":"height","abstract":false,"location":{"filename":"src/selenium/window_rect.cr","line_number":7,"url":null},"def":{"name":"height","return_type":"Int64 | ::Nil","visibility":"Public","body":"@height"}},{"html_id":"height=(height:Int64|Nil)-instance-method","name":"height=","abstract":false,"args":[{"name":"height","external_name":"height","restriction":"Int64 | ::Nil"}],"args_string":"(height : Int64 | Nil)","args_html":"(height : Int64 | Nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":7,"url":null},"def":{"name":"height=","args":[{"name":"height","external_name":"height","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@height = height"}},{"html_id":"width:Int64|Nil-instance-method","name":"width","abstract":false,"location":{"filename":"src/selenium/window_rect.cr","line_number":6,"url":null},"def":{"name":"width","return_type":"Int64 | ::Nil","visibility":"Public","body":"@width"}},{"html_id":"width=(width:Int64|Nil)-instance-method","name":"width=","abstract":false,"args":[{"name":"width","external_name":"width","restriction":"Int64 | ::Nil"}],"args_string":"(width : Int64 | Nil)","args_html":"(width : Int64 | Nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":6,"url":null},"def":{"name":"width=","args":[{"name":"width","external_name":"width","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@width = width"}},{"html_id":"x:Int64|Nil-instance-method","name":"x","abstract":false,"location":{"filename":"src/selenium/window_rect.cr","line_number":4,"url":null},"def":{"name":"x","return_type":"Int64 | ::Nil","visibility":"Public","body":"@x"}},{"html_id":"x=(x:Int64|Nil)-instance-method","name":"x=","abstract":false,"args":[{"name":"x","external_name":"x","restriction":"Int64 | ::Nil"}],"args_string":"(x : Int64 | Nil)","args_html":"(x : Int64 | Nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":4,"url":null},"def":{"name":"x=","args":[{"name":"x","external_name":"x","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@x = x"}},{"html_id":"y:Int64|Nil-instance-method","name":"y","abstract":false,"location":{"filename":"src/selenium/window_rect.cr","line_number":5,"url":null},"def":{"name":"y","return_type":"Int64 | ::Nil","visibility":"Public","body":"@y"}},{"html_id":"y=(y:Int64|Nil)-instance-method","name":"y=","abstract":false,"args":[{"name":"y","external_name":"y","restriction":"Int64 | ::Nil"}],"args_string":"(y : Int64 | Nil)","args_html":"(y : Int64 | Nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":5,"url":null},"def":{"name":"y=","args":[{"name":"y","external_name":"y","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@y = y"}}]}]}]}} \ No newline at end of file diff --git a/search-index.js b/search-index.js index 2fa99a3..75728e7 100644 --- a/search-index.js +++ b/search-index.js @@ -1 +1 @@ -crystal_doc_search_index_callback({"repository_name":"selenium","body":"# selenium.cr\n\nSelenium client for interacting with web pages for browser automation.\n\n[API Documentation](https://matthewmcgarvey.github.io/selenium.cr/)\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n ```yaml\n dependencies:\n selenium:\n github: matthewmcgarvey/selenium.cr\n ```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"selenium\"\n```\n\n### Creating a Driver\n\n```crystal\ndriver = Selenium::Driver.for(:chrome, base_url: \"http://localhost:9515\")\n```\n\nCreating a driver this way assumes that you have the driver running already.\n\nAvailable drivers:\n\n- :chrome (using chromedriver)\n- :firefox (using geckodriver)\n- :remote (general purpose)\n\n### Running with a service\n\nRather than running chromedriver yourself, you can give the driver a service which will run the process for you.\n\n```crystal\nservice = Selenium::Service.chrome(driver_path: File.expand_path(\"~/.webdrivers/chromedriver\", home: true))\ndriver = Selenium::Driver.for(:chrome, service: service)\n```\n\nYou must call `driver.stop` when you are finished or it will leave the service running.\nConsider using [webdrivers.cr](https://github.com/matthewmcgarvey/webdrivers.cr) for automatically installing drivers and managing the driver path for you.\n\n### Creating a Session\n\n```crystal\ncapabilities = Selenium::Chrome::Capabilities.new\ncapabilities.chrome_options.args = [\"no-sandbox\", \"headless\", \"disable-gpu\"]\ndriver.create_session(capabilities)\n```\n\nUse the appropriate `Capabilities` class for whichever browser you choose.\n\n## Development\n\nRun `crystal spec` to run the tests. It will run the tests in headless mode.\n\nTo run the tests with chrome headlessly:\n\n```crystal\nSELENIUM_BROWSER=chrome crystal spec --tag \"~chrome\"\n```\n\nTo run the tests with firefox headlessly:\n\n```crystal\nSELENIUM_BROWSER=firefox crystal spec --tag \"~firefox\"\n\n```\n\nThe tag skips any specs that are know to break with those browsers.\nRunning just `crystal spec` will use chrome.\n\n## Contributing\n\n1. Fork it (I want to have seperate actions for each type (pause, pointer, key) but when I did that, I wasn't able to get the type union or inheritance working for some reason
","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/action.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new(type:String,duration:Int32|Nil=nil,value:Char|Nil=nil,button:Int32|Nil=nil,origin:Nil|String=nil,x:Int32|Nil=nil,y:Int32|Nil=nil)-class-method","name":"new","abstract":false,"args":[{"name":"type","external_name":"type","restriction":"::String"},{"name":"duration","default_value":"nil","external_name":"duration","restriction":"::Int32 | ::Nil"},{"name":"value","default_value":"nil","external_name":"value","restriction":"Char | ::Nil"},{"name":"button","default_value":"nil","external_name":"button","restriction":"::Int32 | ::Nil"},{"name":"origin","default_value":"nil","external_name":"origin","restriction":"::Nil | ::String"},{"name":"x","default_value":"nil","external_name":"x","restriction":"::Int32 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"::Int32 | ::Nil"}],"args_string":"(type : String, duration : Int32 | Nil = nil, value : Char | Nil = nil, button : Int32 | Nil = nil, origin : Nil | String = nil, x : Int32 | Nil = nil, y : Int32 | Nil = nil)","args_html":"(type : String, duration : Int32 | Nil = nil, value : Char | Nil = nil, button : Int32 | Nil = nil, origin : Nil | String = nil, x : Int32 | Nil = nil, y : Int32 | Nil = nil)","location":{"filename":"src/selenium/action.cr","line_number":16,"url":null},"def":{"name":"new","args":[{"name":"type","external_name":"type","restriction":"::String"},{"name":"duration","default_value":"nil","external_name":"duration","restriction":"::Int32 | ::Nil"},{"name":"value","default_value":"nil","external_name":"value","restriction":"Char | ::Nil"},{"name":"button","default_value":"nil","external_name":"button","restriction":"::Int32 | ::Nil"},{"name":"origin","default_value":"nil","external_name":"origin","restriction":"::Nil | ::String"},{"name":"x","default_value":"nil","external_name":"x","restriction":"::Int32 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"::Int32 | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(type, duration, value, button, origin, x, y)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"button:Int32|Nil-instance-method","name":"button","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":8,"url":null},"def":{"name":"button","return_type":"Int32 | ::Nil","visibility":"Public","body":"@button"}},{"html_id":"duration:Int32|Nil-instance-method","name":"duration","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":7,"url":null},"def":{"name":"duration","return_type":"Int32 | ::Nil","visibility":"Public","body":"@duration"}},{"html_id":"origin:String|Nil-instance-method","name":"origin","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":9,"url":null},"def":{"name":"origin","return_type":"String | ::Nil","visibility":"Public","body":"@origin"}},{"html_id":"type:String-instance-method","name":"type","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":6,"url":null},"def":{"name":"type","return_type":"String","visibility":"Public","body":"@type"}},{"html_id":"value:Char|Nil-instance-method","name":"value","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":28,"url":null},"def":{"name":"value","return_type":"Char | ::Nil","visibility":"Public","body":"value.try(&.char_at(0))"}},{"html_id":"x:Int32|Nil-instance-method","name":"x","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":10,"url":null},"def":{"name":"x","return_type":"Int32 | ::Nil","visibility":"Public","body":"@x"}},{"html_id":"y:Int32|Nil-instance-method","name":"y","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":11,"url":null},"def":{"name":"y","return_type":"Int32 | ::Nil","visibility":"Public","body":"@y"}}]},{"html_id":"selenium/Selenium/ActionSequence","path":"Selenium/ActionSequence.html","kind":"alias","full_name":"Selenium::ActionSequence","name":"ActionSequence","abstract":false,"locations":[{"filename":"src/selenium/types.cr","line_number":5,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":true,"aliased":"Array(Selenium::InputSourceActionSequence)","aliased_html":"Array(Selenium::InputSourceActionSequence)","const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/AlertManager","path":"Selenium/AlertManager.html","kind":"class","full_name":"Selenium::AlertManager","name":"AlertManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/alert_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String)-class-method","name":"new","abstract":false,"args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String)","location":{"filename":"src/selenium/alert_manager.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"accept_alert-instance-method","name":"accept_alert","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":19,"url":null},"def":{"name":"accept_alert","visibility":"Public","body":"command_handler.execute(:accept_alert, path_variables)"}},{"html_id":"alert_text-instance-method","name":"alert_text","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":13,"url":null},"def":{"name":"alert_text","visibility":"Public","body":"data = command_handler.execute(:get_alert_text, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"dismiss_alert-instance-method","name":"dismiss_alert","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":23,"url":null},"def":{"name":"dismiss_alert","visibility":"Public","body":"command_handler.execute(:dismiss_alert, path_variables)"}},{"html_id":"send_alert_text(text)-instance-method","name":"send_alert_text","abstract":false,"args":[{"name":"text","external_name":"text","restriction":""}],"args_string":"(text)","args_html":"(text)","location":{"filename":"src/selenium/alert_manager.cr","line_number":8,"url":null},"def":{"name":"send_alert_text","args":[{"name":"text","external_name":"text","restriction":""}],"visibility":"Public","body":"parameters = {text: text}\ncommand_handler.execute(:send_alert_text, path_variables, parameters)\n"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}}]},{"html_id":"selenium/Selenium/BaseError","path":"Selenium/BaseError.html","kind":"class","full_name":"Selenium::BaseError","name":"BaseError","abstract":true,"superclass":{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},"ancestors":[{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/errors.cr","line_number":2,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"selenium/Selenium/InvalidTagError","kind":"class","full_name":"Selenium::InvalidTagError","name":"InvalidTagError"},{"html_id":"selenium/Selenium/UnsupportedOperationError","kind":"class","full_name":"Selenium::UnsupportedOperationError","name":"UnsupportedOperationError"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/Capabilities","path":"Selenium/Capabilities.html","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"subclasses":[{"html_id":"selenium/Selenium/Chrome/Capabilities","kind":"class","full_name":"Selenium::Chrome::Capabilities","name":"Capabilities"},{"html_id":"selenium/Selenium/Firefox/Capabilities","kind":"class","full_name":"Selenium::Firefox::Capabilities","name":"Capabilities"},{"html_id":"selenium/Selenium/Safari/Capabilities","kind":"class","full_name":"Selenium::Safari::Capabilities","name":"Capabilities"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/capabilities.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":4,"url":null},"def":{"name":"new","visibility":"Public","body":"_ = allocate\n_.initialize\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"accept_insecure_certs:Bool|Nil-instance-method","name":"accept_insecure_certs","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":17,"url":null},"def":{"name":"accept_insecure_certs","return_type":"Bool | ::Nil","visibility":"Public","body":"@accept_insecure_certs"}},{"html_id":"accept_insecure_certs=(accept_insecure_certs:Bool|Nil)-instance-method","name":"accept_insecure_certs=","abstract":false,"args":[{"name":"accept_insecure_certs","external_name":"accept_insecure_certs","restriction":"Bool | ::Nil"}],"args_string":"(accept_insecure_certs : Bool | Nil)","args_html":"(accept_insecure_certs : Bool | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":17,"url":null},"def":{"name":"accept_insecure_certs=","args":[{"name":"accept_insecure_certs","external_name":"accept_insecure_certs","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@accept_insecure_certs = accept_insecure_certs"}},{"html_id":"browser_name:String|Nil-instance-method","name":"browser_name","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":8,"url":null},"def":{"name":"browser_name","return_type":"String | ::Nil","visibility":"Public","body":"@browser_name"}},{"html_id":"browser_name=(browser_name:String|Nil)-instance-method","name":"browser_name=","abstract":false,"args":[{"name":"browser_name","external_name":"browser_name","restriction":"String | ::Nil"}],"args_string":"(browser_name : String | Nil)","args_html":"(browser_name : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":8,"url":null},"def":{"name":"browser_name=","args":[{"name":"browser_name","external_name":"browser_name","restriction":"String | ::Nil"}],"visibility":"Public","body":"@browser_name = browser_name"}},{"html_id":"browser_version:String|Nil-instance-method","name":"browser_version","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":11,"url":null},"def":{"name":"browser_version","return_type":"String | ::Nil","visibility":"Public","body":"@browser_version"}},{"html_id":"browser_version=(browser_version:String|Nil)-instance-method","name":"browser_version=","abstract":false,"args":[{"name":"browser_version","external_name":"browser_version","restriction":"String | ::Nil"}],"args_string":"(browser_version : String | Nil)","args_html":"(browser_version : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":11,"url":null},"def":{"name":"browser_version=","args":[{"name":"browser_version","external_name":"browser_version","restriction":"String | ::Nil"}],"visibility":"Public","body":"@browser_version = browser_version"}},{"html_id":"page_load_strategy:String|Nil-instance-method","name":"page_load_strategy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":20,"url":null},"def":{"name":"page_load_strategy","return_type":"String | ::Nil","visibility":"Public","body":"@page_load_strategy"}},{"html_id":"page_load_strategy=(page_load_strategy:String|Nil)-instance-method","name":"page_load_strategy=","abstract":false,"args":[{"name":"page_load_strategy","external_name":"page_load_strategy","restriction":"String | ::Nil"}],"args_string":"(page_load_strategy : String | Nil)","args_html":"(page_load_strategy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":20,"url":null},"def":{"name":"page_load_strategy=","args":[{"name":"page_load_strategy","external_name":"page_load_strategy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@page_load_strategy = page_load_strategy"}},{"html_id":"platform_name:String|Nil-instance-method","name":"platform_name","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":14,"url":null},"def":{"name":"platform_name","return_type":"String | ::Nil","visibility":"Public","body":"@platform_name"}},{"html_id":"platform_name=(platform_name:String|Nil)-instance-method","name":"platform_name=","abstract":false,"args":[{"name":"platform_name","external_name":"platform_name","restriction":"String | ::Nil"}],"args_string":"(platform_name : String | Nil)","args_html":"(platform_name : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":14,"url":null},"def":{"name":"platform_name=","args":[{"name":"platform_name","external_name":"platform_name","restriction":"String | ::Nil"}],"visibility":"Public","body":"@platform_name = platform_name"}},{"html_id":"proxy:ProxyConfiguration|Nil-instance-method","name":"proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":22,"url":null},"def":{"name":"proxy","return_type":"ProxyConfiguration | ::Nil","visibility":"Public","body":"@proxy"}},{"html_id":"proxy=(proxy:ProxyConfiguration|Nil)-instance-method","name":"proxy=","abstract":false,"args":[{"name":"proxy","external_name":"proxy","restriction":"ProxyConfiguration | ::Nil"}],"args_string":"(proxy : ProxyConfiguration | Nil)","args_html":"(proxy : ProxyConfiguration | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":22,"url":null},"def":{"name":"proxy=","args":[{"name":"proxy","external_name":"proxy","restriction":"ProxyConfiguration | ::Nil"}],"visibility":"Public","body":"@proxy = proxy"}},{"html_id":"set_window_rect:Bool|Nil-instance-method","name":"set_window_rect","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":25,"url":null},"def":{"name":"set_window_rect","return_type":"Bool | ::Nil","visibility":"Public","body":"@set_window_rect"}},{"html_id":"set_window_rect=(set_window_rect:Bool|Nil)-instance-method","name":"set_window_rect=","abstract":false,"args":[{"name":"set_window_rect","external_name":"set_window_rect","restriction":"Bool | ::Nil"}],"args_string":"(set_window_rect : Bool | Nil)","args_html":"(set_window_rect : Bool | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":25,"url":null},"def":{"name":"set_window_rect=","args":[{"name":"set_window_rect","external_name":"set_window_rect","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@set_window_rect = set_window_rect"}},{"html_id":"strict_file_interactability:Bool|Nil-instance-method","name":"strict_file_interactability","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":30,"url":null},"def":{"name":"strict_file_interactability","return_type":"Bool | ::Nil","visibility":"Public","body":"@strict_file_interactability"}},{"html_id":"strict_file_interactability=(strict_file_interactability:Bool|Nil)-instance-method","name":"strict_file_interactability=","abstract":false,"args":[{"name":"strict_file_interactability","external_name":"strict_file_interactability","restriction":"Bool | ::Nil"}],"args_string":"(strict_file_interactability : Bool | Nil)","args_html":"(strict_file_interactability : Bool | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":30,"url":null},"def":{"name":"strict_file_interactability=","args":[{"name":"strict_file_interactability","external_name":"strict_file_interactability","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@strict_file_interactability = strict_file_interactability"}},{"html_id":"timeouts:TimeoutConfiguration|Nil-instance-method","name":"timeouts","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":27,"url":null},"def":{"name":"timeouts","return_type":"TimeoutConfiguration | ::Nil","visibility":"Public","body":"@timeouts"}},{"html_id":"timeouts=(timeouts:TimeoutConfiguration|Nil)-instance-method","name":"timeouts=","abstract":false,"args":[{"name":"timeouts","external_name":"timeouts","restriction":"TimeoutConfiguration | ::Nil"}],"args_string":"(timeouts : TimeoutConfiguration | Nil)","args_html":"(timeouts : TimeoutConfiguration | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":27,"url":null},"def":{"name":"timeouts=","args":[{"name":"timeouts","external_name":"timeouts","restriction":"TimeoutConfiguration | ::Nil"}],"visibility":"Public","body":"@timeouts = timeouts"}},{"html_id":"unhandled_prompt_behavior:String|Nil-instance-method","name":"unhandled_prompt_behavior","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":33,"url":null},"def":{"name":"unhandled_prompt_behavior","return_type":"String | ::Nil","visibility":"Public","body":"@unhandled_prompt_behavior"}},{"html_id":"unhandled_prompt_behavior=(unhandled_prompt_behavior:String|Nil)-instance-method","name":"unhandled_prompt_behavior=","abstract":false,"args":[{"name":"unhandled_prompt_behavior","external_name":"unhandled_prompt_behavior","restriction":"String | ::Nil"}],"args_string":"(unhandled_prompt_behavior : String | Nil)","args_html":"(unhandled_prompt_behavior : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":33,"url":null},"def":{"name":"unhandled_prompt_behavior=","args":[{"name":"unhandled_prompt_behavior","external_name":"unhandled_prompt_behavior","restriction":"String | ::Nil"}],"visibility":"Public","body":"@unhandled_prompt_behavior = unhandled_prompt_behavior"}}],"types":[{"html_id":"selenium/Selenium/Capabilities/ProxyConfiguration","path":"Selenium/Capabilities/ProxyConfiguration.html","kind":"class","full_name":"Selenium::Capabilities::ProxyConfiguration","name":"ProxyConfiguration","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/capabilities.cr","line_number":35,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/capabilities.cr","line_number":36,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"ftp_proxy:String|Nil-instance-method","name":"ftp_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":45,"url":null},"def":{"name":"ftp_proxy","return_type":"String | ::Nil","visibility":"Public","body":"@ftp_proxy"}},{"html_id":"ftp_proxy=(ftp_proxy:String|Nil)-instance-method","name":"ftp_proxy=","abstract":false,"args":[{"name":"ftp_proxy","external_name":"ftp_proxy","restriction":"String | ::Nil"}],"args_string":"(ftp_proxy : String | Nil)","args_html":"(ftp_proxy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":45,"url":null},"def":{"name":"ftp_proxy=","args":[{"name":"ftp_proxy","external_name":"ftp_proxy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@ftp_proxy = ftp_proxy"}},{"html_id":"http_proxy:String|Nil-instance-method","name":"http_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":48,"url":null},"def":{"name":"http_proxy","return_type":"String | ::Nil","visibility":"Public","body":"@http_proxy"}},{"html_id":"http_proxy=(http_proxy:String|Nil)-instance-method","name":"http_proxy=","abstract":false,"args":[{"name":"http_proxy","external_name":"http_proxy","restriction":"String | ::Nil"}],"args_string":"(http_proxy : String | Nil)","args_html":"(http_proxy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":48,"url":null},"def":{"name":"http_proxy=","args":[{"name":"http_proxy","external_name":"http_proxy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@http_proxy = http_proxy"}},{"html_id":"no_proxy:Array(String)|Nil-instance-method","name":"no_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":51,"url":null},"def":{"name":"no_proxy","return_type":"Array(String) | ::Nil","visibility":"Public","body":"@no_proxy"}},{"html_id":"no_proxy=(no_proxy:Array(String)|Nil)-instance-method","name":"no_proxy=","abstract":false,"args":[{"name":"no_proxy","external_name":"no_proxy","restriction":"Array(String) | ::Nil"}],"args_string":"(no_proxy : Array(String) | Nil)","args_html":"(no_proxy : Array(String) | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":51,"url":null},"def":{"name":"no_proxy=","args":[{"name":"no_proxy","external_name":"no_proxy","restriction":"Array(String) | ::Nil"}],"visibility":"Public","body":"@no_proxy = no_proxy"}},{"html_id":"proxy_autoconfig_url:String|Nil-instance-method","name":"proxy_autoconfig_url","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":42,"url":null},"def":{"name":"proxy_autoconfig_url","return_type":"String | ::Nil","visibility":"Public","body":"@proxy_autoconfig_url"}},{"html_id":"proxy_autoconfig_url=(proxy_autoconfig_url:String|Nil)-instance-method","name":"proxy_autoconfig_url=","abstract":false,"args":[{"name":"proxy_autoconfig_url","external_name":"proxy_autoconfig_url","restriction":"String | ::Nil"}],"args_string":"(proxy_autoconfig_url : String | Nil)","args_html":"(proxy_autoconfig_url : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":42,"url":null},"def":{"name":"proxy_autoconfig_url=","args":[{"name":"proxy_autoconfig_url","external_name":"proxy_autoconfig_url","restriction":"String | ::Nil"}],"visibility":"Public","body":"@proxy_autoconfig_url = proxy_autoconfig_url"}},{"html_id":"proxy_type:String|Nil-instance-method","name":"proxy_type","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":39,"url":null},"def":{"name":"proxy_type","return_type":"String | ::Nil","visibility":"Public","body":"@proxy_type"}},{"html_id":"proxy_type=(proxy_type:String|Nil)-instance-method","name":"proxy_type=","abstract":false,"args":[{"name":"proxy_type","external_name":"proxy_type","restriction":"String | ::Nil"}],"args_string":"(proxy_type : String | Nil)","args_html":"(proxy_type : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":39,"url":null},"def":{"name":"proxy_type=","args":[{"name":"proxy_type","external_name":"proxy_type","restriction":"String | ::Nil"}],"visibility":"Public","body":"@proxy_type = proxy_type"}},{"html_id":"socks_proxy:String|Nil-instance-method","name":"socks_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":57,"url":null},"def":{"name":"socks_proxy","return_type":"String | ::Nil","visibility":"Public","body":"@socks_proxy"}},{"html_id":"socks_proxy=(socks_proxy:String|Nil)-instance-method","name":"socks_proxy=","abstract":false,"args":[{"name":"socks_proxy","external_name":"socks_proxy","restriction":"String | ::Nil"}],"args_string":"(socks_proxy : String | Nil)","args_html":"(socks_proxy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":57,"url":null},"def":{"name":"socks_proxy=","args":[{"name":"socks_proxy","external_name":"socks_proxy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@socks_proxy = socks_proxy"}},{"html_id":"socks_version:Int32|Nil-instance-method","name":"socks_version","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":60,"url":null},"def":{"name":"socks_version","return_type":"Int32 | ::Nil","visibility":"Public","body":"@socks_version"}},{"html_id":"socks_version=(socks_version:Int32|Nil)-instance-method","name":"socks_version=","abstract":false,"args":[{"name":"socks_version","external_name":"socks_version","restriction":"Int32 | ::Nil"}],"args_string":"(socks_version : Int32 | Nil)","args_html":"(socks_version : Int32 | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":60,"url":null},"def":{"name":"socks_version=","args":[{"name":"socks_version","external_name":"socks_version","restriction":"Int32 | ::Nil"}],"visibility":"Public","body":"@socks_version = socks_version"}},{"html_id":"ssl_proxy:String|Nil-instance-method","name":"ssl_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":54,"url":null},"def":{"name":"ssl_proxy","return_type":"String | ::Nil","visibility":"Public","body":"@ssl_proxy"}},{"html_id":"ssl_proxy=(ssl_proxy:String|Nil)-instance-method","name":"ssl_proxy=","abstract":false,"args":[{"name":"ssl_proxy","external_name":"ssl_proxy","restriction":"String | ::Nil"}],"args_string":"(ssl_proxy : String | Nil)","args_html":"(ssl_proxy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":54,"url":null},"def":{"name":"ssl_proxy=","args":[{"name":"ssl_proxy","external_name":"ssl_proxy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@ssl_proxy = ssl_proxy"}}]}]},{"html_id":"selenium/Selenium/Chrome","path":"Selenium/Chrome.html","kind":"module","full_name":"Selenium::Chrome","name":"Chrome","abstract":false,"locations":[{"filename":"src/selenium/chrome/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"types":[{"html_id":"selenium/Selenium/Chrome/Capabilities","path":"Selenium/Chrome/Capabilities.html","kind":"class","full_name":"Selenium::Chrome::Capabilities","name":"Capabilities","abstract":false,"superclass":{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},"ancestors":[{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/chrome/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Chrome","kind":"module","full_name":"Selenium::Chrome","name":"Chrome"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":1,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"chrome_options:Selenium::Chrome::Capabilities::ChromeOptions-instance-method","name":"chrome_options","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":5,"url":null},"def":{"name":"chrome_options","visibility":"Public","body":"@chrome_options"}},{"html_id":"chrome_options=(chrome_options:Selenium::Chrome::Capabilities::ChromeOptions)-instance-method","name":"chrome_options=","abstract":false,"args":[{"name":"chrome_options","external_name":"chrome_options","restriction":"::Selenium::Chrome::Capabilities::ChromeOptions"}],"args_string":"(chrome_options : Selenium::Chrome::Capabilities::ChromeOptions)","args_html":"(chrome_options : Selenium::Chrome::Capabilities::ChromeOptions)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":5,"url":null},"def":{"name":"chrome_options=","args":[{"name":"chrome_options","external_name":"chrome_options","restriction":"::Selenium::Chrome::Capabilities::ChromeOptions"}],"visibility":"Public","body":"@chrome_options = chrome_options"}}],"types":[{"html_id":"selenium/Selenium/Chrome/Capabilities/ChromeOptions","path":"Selenium/Chrome/Capabilities/ChromeOptions.html","kind":"class","full_name":"Selenium::Chrome::Capabilities::ChromeOptions","name":"ChromeOptions","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/chrome/capabilities.cr","line_number":7,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium/Chrome/Capabilities","kind":"class","full_name":"Selenium::Chrome::Capabilities","name":"Capabilities"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":10,"url":null},"def":{"name":"new","visibility":"Public","body":"_ = allocate\n_.initialize\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"args:Array(String)-instance-method","name":"args","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":13,"url":null},"def":{"name":"args","visibility":"Public","body":"@args"}},{"html_id":"args=(args:Array(String))-instance-method","name":"args=","abstract":false,"args":[{"name":"args","external_name":"args","restriction":"::Array(::String)"}],"args_string":"(args : Array(String))","args_html":"(args : Array(String))","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":13,"url":null},"def":{"name":"args=","args":[{"name":"args","external_name":"args","restriction":"::Array(::String)"}],"visibility":"Public","body":"@args = args"}},{"html_id":"binary:String|Nil-instance-method","name":"binary","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":15,"url":null},"def":{"name":"binary","return_type":"String | ::Nil","visibility":"Public","body":"@binary"}},{"html_id":"binary=(binary:String|Nil)-instance-method","name":"binary=","abstract":false,"args":[{"name":"binary","external_name":"binary","restriction":"String | ::Nil"}],"args_string":"(binary : String | Nil)","args_html":"(binary : String | Nil)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":15,"url":null},"def":{"name":"binary=","args":[{"name":"binary","external_name":"binary","restriction":"String | ::Nil"}],"visibility":"Public","body":"@binary = binary"}},{"html_id":"debugger_address:String|Nil-instance-method","name":"debugger_address","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":22,"url":null},"def":{"name":"debugger_address","return_type":"String | ::Nil","visibility":"Public","body":"@debugger_address"}},{"html_id":"debugger_address=(debugger_address:String|Nil)-instance-method","name":"debugger_address=","abstract":false,"args":[{"name":"debugger_address","external_name":"debugger_address","restriction":"String | ::Nil"}],"args_string":"(debugger_address : String | Nil)","args_html":"(debugger_address : String | Nil)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":22,"url":null},"def":{"name":"debugger_address=","args":[{"name":"debugger_address","external_name":"debugger_address","restriction":"String | ::Nil"}],"visibility":"Public","body":"@debugger_address = debugger_address"}},{"html_id":"detach:Bool|Nil-instance-method","name":"detach","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":19,"url":null},"def":{"name":"detach","return_type":"Bool | ::Nil","visibility":"Public","body":"@detach"}},{"html_id":"detach=(detach:Bool|Nil)-instance-method","name":"detach=","abstract":false,"args":[{"name":"detach","external_name":"detach","restriction":"Bool | ::Nil"}],"args_string":"(detach : Bool | Nil)","args_html":"(detach : Bool | Nil)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":19,"url":null},"def":{"name":"detach=","args":[{"name":"detach","external_name":"detach","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@detach = detach"}},{"html_id":"extensions:Array(String)|Nil-instance-method","name":"extensions","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":17,"url":null},"def":{"name":"extensions","return_type":"Array(String) | ::Nil","visibility":"Public","body":"@extensions"}},{"html_id":"extensions=(extensions:Array(String)|Nil)-instance-method","name":"extensions=","abstract":false,"args":[{"name":"extensions","external_name":"extensions","restriction":"Array(String) | ::Nil"}],"args_string":"(extensions : Array(String) | Nil)","args_html":"(extensions : Array(String) | Nil)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":17,"url":null},"def":{"name":"extensions=","args":[{"name":"extensions","external_name":"extensions","restriction":"Array(String) | ::Nil"}],"visibility":"Public","body":"@extensions = extensions"}}]}]},{"html_id":"selenium/Selenium/Chrome/Driver","path":"Selenium/Chrome/Driver.html","kind":"class","full_name":"Selenium::Chrome::Driver","name":"Driver","abstract":false,"superclass":{"html_id":"selenium/Selenium/Driver","kind":"class","full_name":"Selenium::Driver","name":"Driver"},"ancestors":[{"html_id":"selenium/Selenium/Driver","kind":"class","full_name":"Selenium::Driver","name":"Driver"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/chrome/driver.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Chrome","kind":"module","full_name":"Selenium::Chrome","name":"Chrome"},"instance_methods":[{"html_id":"create_session(capabilities:Chrome::Capabilities):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"capabilities","external_name":"capabilities","restriction":"Chrome::Capabilities"}],"args_string":"(capabilities : Chrome::Capabilities) : Session","args_html":"(capabilities : Chrome::Capabilities) : Session","location":{"filename":"src/selenium/chrome/driver.cr","line_number":2,"url":null},"def":{"name":"create_session","args":[{"name":"capabilities","external_name":"capabilities","restriction":"Chrome::Capabilities"}],"return_type":"Session","visibility":"Public","body":"super(capabilities)"}},{"html_id":"create_session(args:Array(String)):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"args_string":"(args : Array(String)) : Session","args_html":"(args : Array(String)) : Session","location":{"filename":"src/selenium/chrome/driver.cr","line_number":6,"url":null},"def":{"name":"create_session","args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"return_type":"Session","visibility":"Public","body":"capabilities = Chrome::Capabilities.new\ncapabilities.chrome_options.args = args\ncreate_session(capabilities)\n"}}]},{"html_id":"selenium/Selenium/Chrome/Service","path":"Selenium/Chrome/Service.html","kind":"class","full_name":"Selenium::Chrome::Service","name":"Service","abstract":false,"superclass":{"html_id":"selenium/Selenium/Service","kind":"class","full_name":"Selenium::Service","name":"Service"},"ancestors":[{"html_id":"selenium/Selenium/Service","kind":"class","full_name":"Selenium::Service","name":"Service"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/chrome/service.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Chrome","kind":"module","full_name":"Selenium::Chrome","name":"Chrome"},"instance_methods":[{"html_id":"default_port:Int32-instance-method","name":"default_port","abstract":false,"location":{"filename":"src/selenium/chrome/service.cr","line_number":2,"url":null},"def":{"name":"default_port","return_type":"Int32","visibility":"Public","body":"9515"}}]}]},{"html_id":"selenium/Selenium/CommandHandler","path":"Selenium/CommandHandler.html","kind":"class","full_name":"Selenium::CommandHandler","name":"CommandHandler","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Selenium/DefaultCommands","kind":"module","full_name":"Selenium::DefaultCommands","name":"DefaultCommands"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/command_handler.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/Selenium/DefaultCommands","kind":"module","full_name":"Selenium::DefaultCommands","name":"DefaultCommands"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(http_client:Selenium::HttpClient)-class-method","name":"new","abstract":false,"args":[{"name":"http_client","external_name":"http_client","restriction":"::Selenium::HttpClient"}],"args_string":"(http_client : Selenium::HttpClient)","args_html":"(http_client : Selenium::HttpClient)","location":{"filename":"src/selenium/command_handler.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"http_client","external_name":"http_client","restriction":"::Selenium::HttpClient"}],"visibility":"Public","body":"_ = allocate\n_.initialize(http_client)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"execute(command,path_variables:Hash(String,String)={}ofString=>String,parameters={}ofString=>String):JSON::Any-instance-method","name":"execute","abstract":false,"args":[{"name":"command","external_name":"command","restriction":""},{"name":"path_variables","default_value":"{} of String => String","external_name":"path_variables","restriction":"Hash(String, String)"},{"name":"parameters","default_value":"{} of String => String","external_name":"parameters","restriction":""}],"args_string":"(command, path_variables : Hash(String, String) = {} of String => String, parameters = {} of String => String) : JSON::Any","args_html":"(command, path_variables : Hash(String, String) = {} of String => String, parameters = {} of String => String) : JSON::Any","location":{"filename":"src/selenium/command_handler.cr","line_number":8,"url":null},"def":{"name":"execute","args":[{"name":"command","external_name":"command","restriction":""},{"name":"path_variables","default_value":"{} of String => String","external_name":"path_variables","restriction":"Hash(String, String)"},{"name":"parameters","default_value":"{} of String => String","external_name":"parameters","restriction":""}],"return_type":"JSON::Any","visibility":"Public","body":"method, path = DEFAULT_COMMANDS[command]\nfull_path = path_variables.reduce(path) do |acc, entry|\n acc.sub(entry.first, entry.last)\nend\nexecute(method, full_path, parameters.to_json)\n"}},{"html_id":"http_client:HttpClient-instance-method","name":"http_client","abstract":false,"location":{"filename":"src/selenium/command_handler.cr","line_number":3,"url":null},"def":{"name":"http_client","return_type":"HttpClient","visibility":"Public","body":"@http_client"}}]},{"html_id":"selenium/Selenium/Cookie","path":"Selenium/Cookie.html","kind":"struct","full_name":"Selenium::Cookie","name":"Cookie","abstract":false,"superclass":{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"selenium/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/cookie.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(name:String,value:String,path:Nil|String=nil,domain:Nil|String=nil,secure:Bool|Nil=nil,http_only:Bool|Nil=nil,expiry:Int64|Nil=nil,same_site:Nil|String=nil)-class-method","name":"new","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"::String"},{"name":"value","external_name":"value","restriction":"::String"},{"name":"path","default_value":"nil","external_name":"path","restriction":"::Nil | ::String"},{"name":"domain","default_value":"nil","external_name":"domain","restriction":"::Nil | ::String"},{"name":"secure","default_value":"nil","external_name":"secure","restriction":"::Bool | ::Nil"},{"name":"http_only","default_value":"nil","external_name":"http_only","restriction":"::Bool | ::Nil"},{"name":"expiry","default_value":"nil","external_name":"expiry","restriction":"::Int64 | ::Nil"},{"name":"same_site","default_value":"nil","external_name":"same_site","restriction":"::Nil | ::String"}],"args_string":"(name : String, value : String, path : Nil | String = nil, domain : Nil | String = nil, secure : Bool | Nil = nil, http_only : Bool | Nil = nil, expiry : Int64 | Nil = nil, same_site : Nil | String = nil)","args_html":"(name : String, value : String, path : Nil | String = nil, domain : Nil | String = nil, secure : Bool | Nil = nil, http_only : Bool | Nil = nil, expiry : Int64 | Nil = nil, same_site : Nil | String = nil)","location":{"filename":"src/selenium/cookie.cr","line_number":15,"url":null},"def":{"name":"new","args":[{"name":"name","external_name":"name","restriction":"::String"},{"name":"value","external_name":"value","restriction":"::String"},{"name":"path","default_value":"nil","external_name":"path","restriction":"::Nil | ::String"},{"name":"domain","default_value":"nil","external_name":"domain","restriction":"::Nil | ::String"},{"name":"secure","default_value":"nil","external_name":"secure","restriction":"::Bool | ::Nil"},{"name":"http_only","default_value":"nil","external_name":"http_only","restriction":"::Bool | ::Nil"},{"name":"expiry","default_value":"nil","external_name":"expiry","restriction":"::Int64 | ::Nil"},{"name":"same_site","default_value":"nil","external_name":"same_site","restriction":"::Nil | ::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(name, value, path, domain, secure, http_only, expiry, same_site)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/cookie.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"domain:String|Nil-instance-method","name":"domain","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":7,"url":null},"def":{"name":"domain","return_type":"String | ::Nil","visibility":"Public","body":"@domain"}},{"html_id":"domain=(domain:String|Nil)-instance-method","name":"domain=","abstract":false,"args":[{"name":"domain","external_name":"domain","restriction":"String | ::Nil"}],"args_string":"(domain : String | Nil)","args_html":"(domain : String | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":7,"url":null},"def":{"name":"domain=","args":[{"name":"domain","external_name":"domain","restriction":"String | ::Nil"}],"visibility":"Public","body":"@domain = domain"}},{"html_id":"expiry:Int64|Nil-instance-method","name":"expiry","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":11,"url":null},"def":{"name":"expiry","return_type":"Int64 | ::Nil","visibility":"Public","body":"@expiry"}},{"html_id":"expiry=(expiry:Int64|Nil)-instance-method","name":"expiry=","abstract":false,"args":[{"name":"expiry","external_name":"expiry","restriction":"Int64 | ::Nil"}],"args_string":"(expiry : Int64 | Nil)","args_html":"(expiry : Int64 | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":11,"url":null},"def":{"name":"expiry=","args":[{"name":"expiry","external_name":"expiry","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@expiry = expiry"}},{"html_id":"http_only:Bool|Nil-instance-method","name":"http_only","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":10,"url":null},"def":{"name":"http_only","return_type":"Bool | ::Nil","visibility":"Public","body":"@http_only"}},{"html_id":"http_only=(http_only:Bool|Nil)-instance-method","name":"http_only=","abstract":false,"args":[{"name":"http_only","external_name":"http_only","restriction":"Bool | ::Nil"}],"args_string":"(http_only : Bool | Nil)","args_html":"(http_only : Bool | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":10,"url":null},"def":{"name":"http_only=","args":[{"name":"http_only","external_name":"http_only","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@http_only = http_only"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":4,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"path:String|Nil-instance-method","name":"path","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":6,"url":null},"def":{"name":"path","return_type":"String | ::Nil","visibility":"Public","body":"@path"}},{"html_id":"path=(path:String|Nil)-instance-method","name":"path=","abstract":false,"args":[{"name":"path","external_name":"path","restriction":"String | ::Nil"}],"args_string":"(path : String | Nil)","args_html":"(path : String | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":6,"url":null},"def":{"name":"path=","args":[{"name":"path","external_name":"path","restriction":"String | ::Nil"}],"visibility":"Public","body":"@path = path"}},{"html_id":"same_site:String|Nil-instance-method","name":"same_site","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":13,"url":null},"def":{"name":"same_site","return_type":"String | ::Nil","visibility":"Public","body":"@same_site"}},{"html_id":"same_site=(same_site:String|Nil)-instance-method","name":"same_site=","abstract":false,"args":[{"name":"same_site","external_name":"same_site","restriction":"String | ::Nil"}],"args_string":"(same_site : String | Nil)","args_html":"(same_site : String | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":13,"url":null},"def":{"name":"same_site=","args":[{"name":"same_site","external_name":"same_site","restriction":"String | ::Nil"}],"visibility":"Public","body":"@same_site = same_site"}},{"html_id":"secure:Bool|Nil-instance-method","name":"secure","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":8,"url":null},"def":{"name":"secure","return_type":"Bool | ::Nil","visibility":"Public","body":"@secure"}},{"html_id":"secure=(secure:Bool|Nil)-instance-method","name":"secure=","abstract":false,"args":[{"name":"secure","external_name":"secure","restriction":"Bool | ::Nil"}],"args_string":"(secure : Bool | Nil)","args_html":"(secure : Bool | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":8,"url":null},"def":{"name":"secure=","args":[{"name":"secure","external_name":"secure","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@secure = secure"}},{"html_id":"value:String-instance-method","name":"value","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":5,"url":null},"def":{"name":"value","return_type":"String","visibility":"Public","body":"@value"}}]},{"html_id":"selenium/Selenium/CookieManager","path":"Selenium/CookieManager.html","kind":"class","full_name":"Selenium::CookieManager","name":"CookieManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/cookie_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String)-class-method","name":"new","abstract":false,"args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"add_cookie(name,value)-instance-method","name":"add_cookie","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""},{"name":"value","external_name":"value","restriction":""}],"args_string":"(name, value)","args_html":"(name, value)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":25,"url":null},"def":{"name":"add_cookie","args":[{"name":"name","external_name":"name","restriction":""},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"cookie = Cookie.new(name, value)\nadd_cookie(cookie)\n"}},{"html_id":"add_cookie(cookie)-instance-method","name":"add_cookie","abstract":false,"args":[{"name":"cookie","external_name":"cookie","restriction":""}],"args_string":"(cookie)","args_html":"(cookie)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":20,"url":null},"def":{"name":"add_cookie","args":[{"name":"cookie","external_name":"cookie","restriction":""}],"visibility":"Public","body":"parameters = {cookie: cookie}\ncommand_handler.execute(:add_cookie, path_variables, parameters)\n"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/cookie_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"delete_all_cookies-instance-method","name":"delete_all_cookies","abstract":false,"location":{"filename":"src/selenium/cookie_manager.cr","line_number":34,"url":null},"def":{"name":"delete_all_cookies","visibility":"Public","body":"command_handler.execute(:delete_all_cookies, path_variables)"}},{"html_id":"delete_cookie(name)-instance-method","name":"delete_cookie","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""}],"args_string":"(name)","args_html":"(name)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":30,"url":null},"def":{"name":"delete_cookie","args":[{"name":"name","external_name":"name","restriction":""}],"visibility":"Public","body":"command_handler.execute(:delete_cookie, path_variables.merge({\":name\" => name}))"}},{"html_id":"get_all_cookies-instance-method","name":"get_all_cookies","abstract":false,"location":{"filename":"src/selenium/cookie_manager.cr","line_number":8,"url":null},"def":{"name":"get_all_cookies","visibility":"Public","body":"data = command_handler.execute(:get_all_cookies, path_variables)\nArray(Cookie).from_json(data[\"value\"].to_json)\n"}},{"html_id":"get_cookie(name)-instance-method","name":"get_cookie","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""}],"args_string":"(name)","args_html":"(name)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":14,"url":null},"def":{"name":"get_cookie","args":[{"name":"name","external_name":"name","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:get_named_cookie, path_variables.merge({\":name\" => name}))\nCookie.from_json(data[\"value\"].to_json)\n"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/cookie_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}}]},{"html_id":"selenium/Selenium/Coordinate","path":"Selenium/Coordinate.html","kind":"struct","full_name":"Selenium::Coordinate","name":"Coordinate","abstract":false,"superclass":{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"selenium/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/coordinate.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(x:Int32,y:Int32)-class-method","name":"new","abstract":false,"args":[{"name":"x","external_name":"x","restriction":"::Int32"},{"name":"y","external_name":"y","restriction":"::Int32"}],"args_string":"(x : Int32, y : Int32)","args_html":"(x : Int32, y : Int32)","location":{"filename":"src/selenium/coordinate.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"x","external_name":"x","restriction":"::Int32"},{"name":"y","external_name":"y","restriction":"::Int32"}],"visibility":"Public","body":"_ = allocate\n_.initialize(x, y)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"x:Int32-instance-method","name":"x","abstract":false,"location":{"filename":"src/selenium/coordinate.cr","line_number":2,"url":null},"def":{"name":"x","return_type":"Int32","visibility":"Public","body":"@x"}},{"html_id":"y:Int32-instance-method","name":"y","abstract":false,"location":{"filename":"src/selenium/coordinate.cr","line_number":3,"url":null},"def":{"name":"y","return_type":"Int32","visibility":"Public","body":"@y"}}]},{"html_id":"selenium/Selenium/DefaultCommands","path":"Selenium/DefaultCommands.html","kind":"module","full_name":"Selenium::DefaultCommands","name":"DefaultCommands","abstract":false,"locations":[{"filename":"src/selenium/default_commands.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"DEFAULT_COMMANDS","name":"DEFAULT_COMMANDS","value":"{new_session: {:post, \"/session\"}, delete_session: {:delete, \"/session/:session_id\"}, status: {:get, \"/status\"}, get_timeouts: {:get, \"/session/:session_id/timeouts\"}, set_timeouts: {:post, \"/session/:session_id/timeouts\"}, navigate_to: {:post, \"/session/:session_id/url\"}, get_current_url: {:get, \"/session/:session_id/url\"}, back: {:post, \"/session/:session_id/back\"}, forward: {:post, \"/session/:session_id/forward\"}, refresh: {:post, \"/session/:session_id/refresh\"}, get_title: {:get, \"/session/:session_id/title\"}, get_window_handle: {:get, \"/session/:session_id/window\"}, close_window: {:delete, \"/session/:session_id/window\"}, switch_to_window: {:post, \"/session/:session_id/window\"}, get_window_handles: {:get, \"/session/:session_id/window/handles\"}, new_window: {:post, \"/session/:session_id/window/new\"}, switch_to_frame: {:post, \"/session/:session_id/frame\"}, switch_to_parent_frame: {:post, \"/session/:session_id/frame/parent\"}, get_window_rect: {:get, \"/session/:session_id/window/rect\"}, set_window_rect: {:post, \"/session/:session_id/window/rect\"}, maximize_window: {:post, \"/session/:session_id/window/maximize\"}, minimize_window: {:post, \"/session/:session_id/window/minimize\"}, fullscreen_window: {:post, \"/session/:session_id/window/fullscreen\"}, get_active_element: {:get, \"/session/:session_id/element/active\"}, find_element: {:post, \"/session/:session_id/element\"}, find_elements: {:post, \"/session/:session_id/elements\"}, find_element_from_element: {:post, \"/session/:session_id/element/:element_id/element\"}, find_elements_from_element: {:post, \"/session/:session_id/element/:element_id/elements\"}, is_element_selected: {:get, \"/session/:session_id/element/:element_id/selected\"}, get_element_attribute: {:get, \"/session/:session_id/element/:element_id/attribute/:name\"}, get_element_property: {:get, \"/session/:session_id/element/:element_id/property/:name\"}, get_element_css_value: {:get, \"/session/:session_id/element/:element_id/css/:property_name\"}, get_element_text: {:get, \"/session/:session_id/element/:element_id/text\"}, get_element_tag_name: {:get, \"/session/:session_id/element/:element_id/name\"}, get_element_rect: {:get, \"/session/:session_id/element/:element_id/rect\"}, is_element_enabled: {:get, \"/session/:session_id/element/:element_id/enabled\"}, is_element_displayed: {:get, \"/session/:session_id/element/:element_id/displayed\"}, element_click: {:post, \"/session/:session_id/element/:element_id/click\"}, element_clear: {:post, \"/session/:session_id/element/:element_id/clear\"}, element_send_keys: {:post, \"/session/:session_id/element/:element_id/value\"}, get_page_source: {:get, \"/session/:session_id/source\"}, execute_script: {:post, \"/session/:session_id/execute/sync\"}, execute_async_script: {:post, \"/session/:session_id/execute/async\"}, get_all_cookies: {:get, \"/session/:session_id/cookie\"}, get_named_cookie: {:get, \"/session/:session_id/cookie/:name\"}, add_cookie: {:post, \"/session/:session_id/cookie\"}, delete_cookie: {:delete, \"/session/:session_id/cookie/:name\"}, delete_all_cookies: {:delete, \"/session/:session_id/cookie\"}, perform_actions: {:post, \"/session/:session_id/actions\"}, release_actions: {:delete, \"/session/:session_id/actions\"}, dismiss_alert: {:post, \"/session/:session_id/alert/dismiss\"}, accept_alert: {:post, \"/session/:session_id/alert/accept\"}, get_alert_text: {:get, \"/session/:session_id/alert/text\"}, send_alert_text: {:post, \"/session/:session_id/alert/text\"}, take_screenshot: {:get, \"/session/:session_id/screenshot\"}, take_element_screenshot: {:get, \"/session/:session_id/element/:element_id/screenshot\"}}"}],"including_types":[{"html_id":"selenium/Selenium/CommandHandler","kind":"class","full_name":"Selenium::CommandHandler","name":"CommandHandler"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/DocumentManager","path":"Selenium/DocumentManager.html","kind":"class","full_name":"Selenium::DocumentManager","name":"DocumentManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/document_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String)-class-method","name":"new","abstract":false,"args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String)","location":{"filename":"src/selenium/document_manager.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/document_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"execute_async_script(script,args:Array(_)=[]ofString)-instance-method","name":"execute_async_script","abstract":false,"args":[{"name":"script","external_name":"script","restriction":""},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"Array(_)"}],"args_string":"(script, args : Array(_) = [] of String)","args_html":"(script, args : Array(_) = [] of String)","location":{"filename":"src/selenium/document_manager.cr","line_number":22,"url":null},"def":{"name":"execute_async_script","args":[{"name":"script","external_name":"script","restriction":""},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"Array(_)"}],"visibility":"Public","body":"parameters = {script: script, args: args}\ndata = command_handler.execute(:execute_async_script, path_variables, parameters)\ndata[\"value\"].as_s? || data[\"value\"].to_json\n"}},{"html_id":"execute_script(script,args:Array(_)=[]ofString)-instance-method","name":"execute_script","abstract":false,"args":[{"name":"script","external_name":"script","restriction":""},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"Array(_)"}],"args_string":"(script, args : Array(_) = [] of String)","args_html":"(script, args : Array(_) = [] of String)","location":{"filename":"src/selenium/document_manager.cr","line_number":13,"url":null},"def":{"name":"execute_script","args":[{"name":"script","external_name":"script","restriction":""},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"Array(_)"}],"visibility":"Public","body":"parameters = {script: script, args: args}\ndata = command_handler.execute(:execute_script, path_variables, parameters)\ndata[\"value\"].as_s? || data[\"value\"].to_json\n"}},{"html_id":"page_source-instance-method","name":"page_source","abstract":false,"location":{"filename":"src/selenium/document_manager.cr","line_number":8,"url":null},"def":{"name":"page_source","visibility":"Public","body":"data = command_handler.execute(:get_page_source, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"path_variables-instance-method","name":"path_variables","abstract":false,"location":{"filename":"src/selenium/document_manager.cr","line_number":31,"url":null},"def":{"name":"path_variables","visibility":"Public","body":"{\":session_id\" => session_id}"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/document_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}}]},{"html_id":"selenium/Selenium/Driver","path":"Selenium/Driver.html","kind":"class","full_name":"Selenium::Driver","name":"Driver","abstract":true,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/driver.cr","line_number":7,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"selenium/Selenium/Chrome/Driver","kind":"class","full_name":"Selenium::Chrome::Driver","name":"Driver"},{"html_id":"selenium/Selenium/Firefox/Driver","kind":"class","full_name":"Selenium::Firefox::Driver","name":"Driver"},{"html_id":"selenium/Selenium/Remote/Driver","kind":"class","full_name":"Selenium::Remote::Driver","name":"Driver"},{"html_id":"selenium/Selenium/Safari/Driver","kind":"class","full_name":"Selenium::Safari::Driver","name":"Driver"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"doc":"The `Selenium::Driver` is the root class for interacting with browsers\n\n### Using with `Selenium::Service`\n\nIf you passed in a `Selenium::Service` you *MUST* call `Selenium::Driver#stop` when you are done to stop the service\nor else the process it starts will continue running on your computer after the program ends","summary":"The Selenium::Driver
is the root class for interacting with browsers
browser options: - :chrome (see Selenium::Chrome::Driver
) - :firefox or :gecko (see Selenium::Firefox::Driver
) - :safari (see Selenium::Safari::Driver
) - :remote (see Selenium::Remote::Driver
)
#attribute
is for referencing static fields if you are trying to access fields that change you should use #property
TODO I don't remember why I made the properties floats nor why they are nilable.
","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/element_rect.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"height:Float64|Nil-instance-method","name":"height","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":9,"url":null},"def":{"name":"height","return_type":"Float64 | ::Nil","visibility":"Public","body":"@height"}},{"html_id":"height=(height:Float64|Nil)-instance-method","name":"height=","abstract":false,"args":[{"name":"height","external_name":"height","restriction":"Float64 | ::Nil"}],"args_string":"(height : Float64 | Nil)","args_html":"(height : Float64 | Nil)","location":{"filename":"src/selenium/element_rect.cr","line_number":9,"url":null},"def":{"name":"height=","args":[{"name":"height","external_name":"height","restriction":"Float64 | ::Nil"}],"visibility":"Public","body":"@height = height"}},{"html_id":"midpoint:Selenium::Coordinate|Nil-instance-method","name":"midpoint","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":11,"url":null},"def":{"name":"midpoint","return_type":"Selenium::Coordinate | ::Nil","visibility":"Public","body":"temp_x = x\ntemp_y = y\ntemp_width = width\ntemp_height = height\nif temp_x.nil?\n return\nend\nif temp_y.nil?\n return\nend\nif temp_width.nil?\n return\nend\nif temp_height.nil?\n return\nend\nSelenium::Coordinate.new(x: (temp_x + (temp_width / 2)).to_i, y: (temp_y + (temp_height / 2)).to_i)\n"}},{"html_id":"width:Float64|Nil-instance-method","name":"width","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":8,"url":null},"def":{"name":"width","return_type":"Float64 | ::Nil","visibility":"Public","body":"@width"}},{"html_id":"width=(width:Float64|Nil)-instance-method","name":"width=","abstract":false,"args":[{"name":"width","external_name":"width","restriction":"Float64 | ::Nil"}],"args_string":"(width : Float64 | Nil)","args_html":"(width : Float64 | Nil)","location":{"filename":"src/selenium/element_rect.cr","line_number":8,"url":null},"def":{"name":"width=","args":[{"name":"width","external_name":"width","restriction":"Float64 | ::Nil"}],"visibility":"Public","body":"@width = width"}},{"html_id":"x:Float64|Nil-instance-method","name":"x","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":6,"url":null},"def":{"name":"x","return_type":"Float64 | ::Nil","visibility":"Public","body":"@x"}},{"html_id":"x=(x:Float64|Nil)-instance-method","name":"x=","abstract":false,"args":[{"name":"x","external_name":"x","restriction":"Float64 | ::Nil"}],"args_string":"(x : Float64 | Nil)","args_html":"(x : Float64 | Nil)","location":{"filename":"src/selenium/element_rect.cr","line_number":6,"url":null},"def":{"name":"x=","args":[{"name":"x","external_name":"x","restriction":"Float64 | ::Nil"}],"visibility":"Public","body":"@x = x"}},{"html_id":"y:Float64|Nil-instance-method","name":"y","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":7,"url":null},"def":{"name":"y","return_type":"Float64 | ::Nil","visibility":"Public","body":"@y"}},{"html_id":"y=(y:Float64|Nil)-instance-method","name":"y=","abstract":false,"args":[{"name":"y","external_name":"y","restriction":"Float64 | ::Nil"}],"args_string":"(y : Float64 | Nil)","args_html":"(y : Float64 | Nil)","location":{"filename":"src/selenium/element_rect.cr","line_number":7,"url":null},"def":{"name":"y=","args":[{"name":"y","external_name":"y","restriction":"Float64 | ::Nil"}],"visibility":"Public","body":"@y = y"}}]},{"html_id":"selenium/Selenium/Error","path":"Selenium/Error.html","kind":"class","full_name":"Selenium::Error","name":"Error","abstract":false,"superclass":{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},"ancestors":[{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/error.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"class_methods":[{"html_id":"from_json(json)-class-method","name":"from_json","abstract":false,"args":[{"name":"json","external_name":"json","restriction":""}],"args_string":"(json)","args_html":"(json)","location":{"filename":"src/selenium/error.cr","line_number":2,"url":null},"def":{"name":"from_json","args":[{"name":"json","external_name":"json","restriction":""}],"visibility":"Public","body":"new(InternalData.from_json(json))"}}],"constructors":[{"html_id":"new(internal_data:Selenium::Error::InternalData)-class-method","name":"new","abstract":false,"args":[{"name":"internal_data","external_name":"internal_data","restriction":"::Selenium::Error::InternalData"}],"args_string":"(internal_data : Selenium::Error::InternalData)","args_html":"(internal_data : Selenium::Error::InternalData)","location":{"filename":"src/selenium/error.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"internal_data","external_name":"internal_data","restriction":"::Selenium::Error::InternalData"}],"visibility":"Public","body":"_ = allocate\n_.initialize(internal_data)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"message-instance-method","name":"message","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":11,"url":null},"def":{"name":"message","visibility":"Public","body":"[internal_data.error, internal_data.error_message].reject(&.blank?).join(\": \")"}}],"types":[{"html_id":"selenium/Selenium/Error/InternalData","path":"Selenium/Error/InternalData.html","kind":"class","full_name":"Selenium::Error::InternalData","name":"InternalData","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/error.cr","line_number":15,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium/Error","kind":"class","full_name":"Selenium::Error","name":"Error"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/error.cr","line_number":16,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:JSON::Any|Nil-instance-method","name":"data","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":20,"url":null},"def":{"name":"data","return_type":"JSON::Any | ::Nil","visibility":"Public","body":"@data"}},{"html_id":"data=(data:JSON::Any|Nil)-instance-method","name":"data=","abstract":false,"args":[{"name":"data","external_name":"data","restriction":"JSON::Any | ::Nil"}],"args_string":"(data : JSON::Any | Nil)","args_html":"(data : JSON::Any | Nil)","location":{"filename":"src/selenium/error.cr","line_number":20,"url":null},"def":{"name":"data=","args":[{"name":"data","external_name":"data","restriction":"JSON::Any | ::Nil"}],"visibility":"Public","body":"@data = data"}},{"html_id":"error:String-instance-method","name":"error","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":18,"url":null},"def":{"name":"error","return_type":"String","visibility":"Public","body":"@error"}},{"html_id":"error=(error:String)-instance-method","name":"error=","abstract":false,"args":[{"name":"error","external_name":"error","restriction":"String"}],"args_string":"(error : String)","args_html":"(error : String)","location":{"filename":"src/selenium/error.cr","line_number":18,"url":null},"def":{"name":"error=","args":[{"name":"error","external_name":"error","restriction":"String"}],"visibility":"Public","body":"@error = error"}},{"html_id":"error_message:String-instance-method","name":"error_message","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":23,"url":null},"def":{"name":"error_message","return_type":"String","visibility":"Public","body":"@error_message"}},{"html_id":"error_message=(error_message:String)-instance-method","name":"error_message=","abstract":false,"args":[{"name":"error_message","external_name":"error_message","restriction":"String"}],"args_string":"(error_message : String)","args_html":"(error_message : String)","location":{"filename":"src/selenium/error.cr","line_number":23,"url":null},"def":{"name":"error_message=","args":[{"name":"error_message","external_name":"error_message","restriction":"String"}],"visibility":"Public","body":"@error_message = error_message"}},{"html_id":"stacktrace:String-instance-method","name":"stacktrace","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":19,"url":null},"def":{"name":"stacktrace","return_type":"String","visibility":"Public","body":"@stacktrace"}},{"html_id":"stacktrace=(stacktrace:String)-instance-method","name":"stacktrace=","abstract":false,"args":[{"name":"stacktrace","external_name":"stacktrace","restriction":"String"}],"args_string":"(stacktrace : String)","args_html":"(stacktrace : String)","location":{"filename":"src/selenium/error.cr","line_number":19,"url":null},"def":{"name":"stacktrace=","args":[{"name":"stacktrace","external_name":"stacktrace","restriction":"String"}],"visibility":"Public","body":"@stacktrace = stacktrace"}}]}]},{"html_id":"selenium/Selenium/Firefox","path":"Selenium/Firefox.html","kind":"module","full_name":"Selenium::Firefox","name":"Firefox","abstract":false,"locations":[{"filename":"src/selenium/firefox/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"types":[{"html_id":"selenium/Selenium/Firefox/Capabilities","path":"Selenium/Firefox/Capabilities.html","kind":"class","full_name":"Selenium::Firefox::Capabilities","name":"Capabilities","abstract":false,"superclass":{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},"ancestors":[{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/firefox/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Firefox","kind":"module","full_name":"Selenium::Firefox","name":"Firefox"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":1,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"firefox_options:Selenium::Firefox::Capabilities::FirefoxOptions-instance-method","name":"firefox_options","abstract":false,"location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":5,"url":null},"def":{"name":"firefox_options","visibility":"Public","body":"@firefox_options"}},{"html_id":"firefox_options=(firefox_options:Selenium::Firefox::Capabilities::FirefoxOptions)-instance-method","name":"firefox_options=","abstract":false,"args":[{"name":"firefox_options","external_name":"firefox_options","restriction":"::Selenium::Firefox::Capabilities::FirefoxOptions"}],"args_string":"(firefox_options : Selenium::Firefox::Capabilities::FirefoxOptions)","args_html":"(firefox_options : Selenium::Firefox::Capabilities::FirefoxOptions)","location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":5,"url":null},"def":{"name":"firefox_options=","args":[{"name":"firefox_options","external_name":"firefox_options","restriction":"::Selenium::Firefox::Capabilities::FirefoxOptions"}],"visibility":"Public","body":"@firefox_options = firefox_options"}}],"types":[{"html_id":"selenium/Selenium/Firefox/Capabilities/FirefoxOptions","path":"Selenium/Firefox/Capabilities/FirefoxOptions.html","kind":"class","full_name":"Selenium::Firefox::Capabilities::FirefoxOptions","name":"FirefoxOptions","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/firefox/capabilities.cr","line_number":7,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium/Firefox/Capabilities","kind":"class","full_name":"Selenium::Firefox::Capabilities","name":"Capabilities"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":10,"url":null},"def":{"name":"new","visibility":"Public","body":"_ = allocate\n_.initialize\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"args:Array(String)-instance-method","name":"args","abstract":false,"location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":13,"url":null},"def":{"name":"args","visibility":"Public","body":"@args"}},{"html_id":"args=(args:Array(String))-instance-method","name":"args=","abstract":false,"args":[{"name":"args","external_name":"args","restriction":"::Array(::String)"}],"args_string":"(args : Array(String))","args_html":"(args : Array(String))","location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":13,"url":null},"def":{"name":"args=","args":[{"name":"args","external_name":"args","restriction":"::Array(::String)"}],"visibility":"Public","body":"@args = args"}}]}]},{"html_id":"selenium/Selenium/Firefox/Driver","path":"Selenium/Firefox/Driver.html","kind":"class","full_name":"Selenium::Firefox::Driver","name":"Driver","abstract":false,"superclass":{"html_id":"selenium/Selenium/Driver","kind":"class","full_name":"Selenium::Driver","name":"Driver"},"ancestors":[{"html_id":"selenium/Selenium/Driver","kind":"class","full_name":"Selenium::Driver","name":"Driver"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/firefox/driver.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Firefox","kind":"module","full_name":"Selenium::Firefox","name":"Firefox"},"instance_methods":[{"html_id":"create_session(capabilities:Firefox::Capabilities):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"capabilities","external_name":"capabilities","restriction":"Firefox::Capabilities"}],"args_string":"(capabilities : Firefox::Capabilities) : Session","args_html":"(capabilities : Firefox::Capabilities) : Session","location":{"filename":"src/selenium/firefox/driver.cr","line_number":2,"url":null},"def":{"name":"create_session","args":[{"name":"capabilities","external_name":"capabilities","restriction":"Firefox::Capabilities"}],"return_type":"Session","visibility":"Public","body":"super(capabilities)"}},{"html_id":"create_session(args:Array(String)):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"args_string":"(args : Array(String)) : Session","args_html":"(args : Array(String)) : Session","location":{"filename":"src/selenium/firefox/driver.cr","line_number":6,"url":null},"def":{"name":"create_session","args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"return_type":"Session","visibility":"Public","body":"capabilities = Firefox::Capabilities.new\ncapabilities.firefox_options.args = args\ncreate_session(capabilities)\n"}}]},{"html_id":"selenium/Selenium/Firefox/Service","path":"Selenium/Firefox/Service.html","kind":"class","full_name":"Selenium::Firefox::Service","name":"Service","abstract":false,"superclass":{"html_id":"selenium/Selenium/Service","kind":"class","full_name":"Selenium::Service","name":"Service"},"ancestors":[{"html_id":"selenium/Selenium/Service","kind":"class","full_name":"Selenium::Service","name":"Service"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/firefox/service.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Firefox","kind":"module","full_name":"Selenium::Firefox","name":"Firefox"},"instance_methods":[{"html_id":"default_port:Int32-instance-method","name":"default_port","abstract":false,"location":{"filename":"src/selenium/firefox/service.cr","line_number":2,"url":null},"def":{"name":"default_port","return_type":"Int32","visibility":"Public","body":"4444"}},{"html_id":"stop-instance-method","name":"stop","abstract":false,"location":{"filename":"src/selenium/firefox/service.cr","line_number":6,"url":null},"def":{"name":"stop","visibility":"Public","body":"stop_process(process)"}}]}]},{"html_id":"selenium/Selenium/Helpers","path":"Selenium/Helpers.html","kind":"module","full_name":"Selenium::Helpers","name":"Helpers","abstract":false,"locations":[{"filename":"src/selenium/helpers/select.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"types":[{"html_id":"selenium/Selenium/Helpers/Select","path":"Selenium/Helpers/Select.html","kind":"class","full_name":"Selenium::Helpers::Select","name":"Select","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/helpers/select.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Helpers","kind":"module","full_name":"Selenium::Helpers","name":"Helpers"},"class_methods":[{"html_id":"from_element(element)-class-method","name":"from_element","abstract":false,"args":[{"name":"element","external_name":"element","restriction":""}],"args_string":"(element)","args_html":"(element)","location":{"filename":"src/selenium/helpers/select.cr","line_number":2,"url":null},"def":{"name":"from_element","args":[{"name":"element","external_name":"element","restriction":""}],"visibility":"Public","body":"tag_name = element.tag_name\nif tag_name == \"select\"\nelse\n raise(InvalidTagError.new(expected: \"select\", got: tag_name))\nend\nnew(element)\n"}}],"instance_methods":[{"html_id":"deselect_all-instance-method","name":"deselect_all","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":39,"url":null},"def":{"name":"deselect_all","visibility":"Public","body":"if multiple?\nelse\n raise(UnsupportedOperationError.new(\"you may only deselect multiple options in a multi-select\"))\nend\noptions.each do |option|\n deselect_option(option)\nend\n"}},{"html_id":"deselect_by_value(value)-instance-method","name":"deselect_by_value","abstract":false,"args":[{"name":"value","external_name":"value","restriction":""}],"args_string":"(value)","args_html":"(value)","location":{"filename":"src/selenium/helpers/select.cr","line_number":29,"url":null},"def":{"name":"deselect_by_value","args":[{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"deselect_option(find_option_by_value(value))"}},{"html_id":"multiple?:Bool-instance-method","name":"multiple?","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":10,"url":null},"def":{"name":"multiple?","return_type":"Bool","visibility":"Public","body":"@multiple"}},{"html_id":"options-instance-method","name":"options","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":17,"url":null},"def":{"name":"options","visibility":"Public","body":"element.find_child_elements(LocationStrategy::TAG_NAME, \"option\")"}},{"html_id":"select_all-instance-method","name":"select_all","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":33,"url":null},"def":{"name":"select_all","visibility":"Public","body":"if multiple?\nelse\n raise(UnsupportedOperationError.new(\"you may only select multiple options in a multi-select\"))\nend\noptions.each do |option|\n select_option(option)\nend\n"}},{"html_id":"select_by_value(value)-instance-method","name":"select_by_value","abstract":false,"args":[{"name":"value","external_name":"value","restriction":""}],"args_string":"(value)","args_html":"(value)","location":{"filename":"src/selenium/helpers/select.cr","line_number":25,"url":null},"def":{"name":"select_by_value","args":[{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"select_option(find_option_by_value(value))"}},{"html_id":"selected_options-instance-method","name":"selected_options","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":21,"url":null},"def":{"name":"selected_options","visibility":"Public","body":"options.select(&.selected?)"}}]},{"html_id":"selenium/Selenium/Helpers/Wait","path":"Selenium/Helpers/Wait.html","kind":"class","full_name":"Selenium::Helpers::Wait","name":"Wait","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/helpers/wait.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Helpers","kind":"module","full_name":"Selenium::Helpers","name":"Helpers"},"constructors":[{"html_id":"new(timeout:Time::Span=5.seconds,interval:Time::Span=0.2.seconds,ignored:Array(Exception)|Array(::Selenium::Error.class)=[Selenium::Error],message:String|Nil=nil)-class-method","name":"new","doc":"Create a new `Wait` instance.\n\n`timeout` - seconds to wait before timing out\n`interval` - seconds to sleep between polls\n`message` - exception mesage if timed out\n`ignored` - exceptions to ignore while polling","summary":"Create a new Wait
instance.
Wait until the given block returns a true
value.
TODO write test once it is understood: - how to know/acquire the frame id - what a frame is - what switching frames will do
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":""}],"args_string":"(id)","args_html":"(id)","location":{"filename":"src/selenium/session.cr","line_number":120,"url":null},"def":{"name":"switch_to_frame","args":[{"name":"id","external_name":"id","restriction":""}],"visibility":"Public","body":"parameters = {id: id}\ncommand_handler.execute(:switch_to_frame, path_variables, parameters)\n"}},{"html_id":"switch_to_parent_frame-instance-method","name":"switch_to_parent_frame","doc":"TODO: reference switch_to_frame","summary":"TODO reference switch_to_frame
","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":126,"url":null},"def":{"name":"switch_to_parent_frame","visibility":"Public","body":"command_handler.execute(:switch_to_parent_frame, path_variables)"}},{"html_id":"timeouts-instance-method","name":"timeouts","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":98,"url":null},"def":{"name":"timeouts","visibility":"Public","body":"data = command_handler.execute(:get_timeouts, path_variables)\nTimeoutConfiguration.from_json(data[\"value\"].to_json)\n"}},{"html_id":"title-instance-method","name":"title","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":88,"url":null},"def":{"name":"title","visibility":"Public","body":"data = command_handler.execute(:get_title, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"window_manager-instance-method","name":"window_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":9,"url":null},"def":{"name":"window_manager","visibility":"Public","body":"WindowManager.new(command_handler, id)"}}]},{"html_id":"selenium/Selenium/SessionId","path":"Selenium/SessionId.html","kind":"alias","full_name":"Selenium::SessionId","name":"SessionId","abstract":false,"locations":[{"filename":"src/selenium/types.cr","line_number":2,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":true,"aliased":"String","aliased_html":"String","const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/Status","path":"Selenium/Status.html","kind":"class","full_name":"Selenium::Status","name":"Status","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/status.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/status.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"message:String-instance-method","name":"message","abstract":false,"location":{"filename":"src/selenium/status.cr","line_number":5,"url":null},"def":{"name":"message","return_type":"String","visibility":"Public","body":"@message"}},{"html_id":"message=(message:String)-instance-method","name":"message=","abstract":false,"args":[{"name":"message","external_name":"message","restriction":"String"}],"args_string":"(message : String)","args_html":"(message : String)","location":{"filename":"src/selenium/status.cr","line_number":5,"url":null},"def":{"name":"message=","args":[{"name":"message","external_name":"message","restriction":"String"}],"visibility":"Public","body":"@message = message"}},{"html_id":"ready=(ready:Bool)-instance-method","name":"ready=","abstract":false,"args":[{"name":"ready","external_name":"ready","restriction":"Bool"}],"args_string":"(ready : Bool)","args_html":"(ready : Bool)","location":{"filename":"src/selenium/status.cr","line_number":4,"url":null},"def":{"name":"ready=","args":[{"name":"ready","external_name":"ready","restriction":"Bool"}],"visibility":"Public","body":"@ready = ready"}},{"html_id":"ready?:Bool-instance-method","name":"ready?","abstract":false,"location":{"filename":"src/selenium/status.cr","line_number":4,"url":null},"def":{"name":"ready?","return_type":"Bool","visibility":"Public","body":"@ready"}}]},{"html_id":"selenium/Selenium/TimeoutConfiguration","path":"Selenium/TimeoutConfiguration.html","kind":"class","full_name":"Selenium::TimeoutConfiguration","name":"TimeoutConfiguration","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/timeout_configuration.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/timeout_configuration.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new(script:Int32|Nil=nil,page_load:Int32|Nil=nil,implicit:Int32|Nil=nil)-class-method","name":"new","abstract":false,"args":[{"name":"script","default_value":"nil","external_name":"script","restriction":"::Int32 | ::Nil"},{"name":"page_load","default_value":"nil","external_name":"page_load","restriction":"::Int32 | ::Nil"},{"name":"implicit","default_value":"nil","external_name":"implicit","restriction":"::Int32 | ::Nil"}],"args_string":"(script : Int32 | Nil = nil, page_load : Int32 | Nil = nil, implicit : Int32 | Nil = nil)","args_html":"(script : Int32 | Nil = nil, page_load : Int32 | Nil = nil, implicit : Int32 | Nil = nil)","location":{"filename":"src/selenium/timeout_configuration.cr","line_number":11,"url":null},"def":{"name":"new","args":[{"name":"script","default_value":"nil","external_name":"script","restriction":"::Int32 | ::Nil"},{"name":"page_load","default_value":"nil","external_name":"page_load","restriction":"::Int32 | ::Nil"},{"name":"implicit","default_value":"nil","external_name":"implicit","restriction":"::Int32 | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(script, page_load, implicit)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"implicit:Int32|Nil-instance-method","name":"implicit","abstract":false,"location":{"filename":"src/selenium/timeout_configuration.cr","line_number":9,"url":null},"def":{"name":"implicit","return_type":"Int32 | ::Nil","visibility":"Public","body":"@implicit"}},{"html_id":"page_load:Int32|Nil-instance-method","name":"page_load","abstract":false,"location":{"filename":"src/selenium/timeout_configuration.cr","line_number":8,"url":null},"def":{"name":"page_load","return_type":"Int32 | ::Nil","visibility":"Public","body":"@page_load"}},{"html_id":"script:Int32|Nil-instance-method","name":"script","abstract":false,"location":{"filename":"src/selenium/timeout_configuration.cr","line_number":5,"url":null},"def":{"name":"script","return_type":"Int32 | ::Nil","visibility":"Public","body":"@script"}}]},{"html_id":"selenium/Selenium/UnsupportedOperationError","path":"Selenium/UnsupportedOperationError.html","kind":"class","full_name":"Selenium::UnsupportedOperationError","name":"UnsupportedOperationError","abstract":false,"superclass":{"html_id":"selenium/Selenium/BaseError","kind":"class","full_name":"Selenium::BaseError","name":"BaseError"},"ancestors":[{"html_id":"selenium/Selenium/BaseError","kind":"class","full_name":"Selenium::BaseError","name":"BaseError"},{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/errors.cr","line_number":11,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/WebStorageManager","path":"Selenium/WebStorageManager.html","kind":"class","full_name":"Selenium::WebStorageManager","name":"WebStorageManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/web_storage_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(document_manager:Selenium::DocumentManager,storage:StorageType=StorageType::LocalStorage)-class-method","name":"new","abstract":false,"args":[{"name":"document_manager","external_name":"document_manager","restriction":"::Selenium::DocumentManager"},{"name":"storage","default_value":"StorageType::LocalStorage","external_name":"storage","restriction":"StorageType"}],"args_string":"(document_manager : Selenium::DocumentManager, storage : StorageType = StorageType::LocalStorage)","args_html":"(document_manager : Selenium::DocumentManager, storage : StorageType = StorageType::LocalStorage)","location":{"filename":"src/selenium/web_storage_manager.cr","line_number":11,"url":null},"def":{"name":"new","args":[{"name":"document_manager","external_name":"document_manager","restriction":"::Selenium::DocumentManager"},{"name":"storage","default_value":"StorageType::LocalStorage","external_name":"storage","restriction":"StorageType"}],"visibility":"Public","body":"_ = allocate\n_.initialize(document_manager, storage)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"clear-instance-method","name":"clear","doc":"Clear all items from the Storage","summary":"Clear all items from the Storage
","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":15,"url":null},"def":{"name":"clear","visibility":"Public","body":"document_manager.execute_script(\"#{storage_type_in_js}.clear()\")"}},{"html_id":"document_manager:DocumentManager-instance-method","name":"document_manager","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":7,"url":null},"def":{"name":"document_manager","return_type":"DocumentManager","visibility":"Public","body":"@document_manager"}},{"html_id":"item(name:String,value=nil):String|Nil-instance-method","name":"item","doc":"Retrieve and insert item from/into the Storage.\nIf no value is given, it will return the item specified in `name`.\nFor a given `value`, it will be added or updated for the item specified in `name`.","summary":"Retrieve and insert item from/into the Storage.
","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"value","default_value":"nil","external_name":"value","restriction":""}],"args_string":"(name : String, value = nil) : String | Nil","args_html":"(name : String, value = nil) : String | Nil","location":{"filename":"src/selenium/web_storage_manager.cr","line_number":22,"url":null},"def":{"name":"item","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"value","default_value":"nil","external_name":"value","restriction":""}],"return_type":"String | Nil","visibility":"Public","body":"if value.nil?\n document_manager.execute_script(\"return #{storage_type_in_js}.getItem('#{name}')\")\nelse\n document_manager.execute_script(\"#{storage_type_in_js}.setItem('#{name}', '#{value}')\")\nend"}},{"html_id":"keys:JSON::Any-instance-method","name":"keys","doc":"Retrieve the list of keys from the Storage","summary":"Retrieve the list of keys from the Storage
","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":31,"url":null},"def":{"name":"keys","return_type":"JSON::Any","visibility":"Public","body":"str = document_manager.execute_script(\"return Object.keys(#{storage_type_in_js})\")\nJSON.parse(str)\n"}},{"html_id":"remove(name:String)-instance-method","name":"remove","doc":"Remove the item specified in `name` from the Storage","summary":"Remove the item specified in name
from the Storage
Retrieve the number of items in the Storage
","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":42,"url":null},"def":{"name":"size","return_type":"Int","visibility":"Public","body":"(document_manager.execute_script(\"return #{storage_type_in_js}.length\")).to_i"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","location":{"filename":"src/selenium/web_storage_manager.cr","line_number":9,"url":null},"def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" @document_manager.\n{{ call }}\n\n \n"}}],"types":[{"html_id":"selenium/Selenium/WebStorageManager/StorageType","path":"Selenium/WebStorageManager/StorageType.html","kind":"enum","full_name":"Selenium::WebStorageManager::StorageType","name":"StorageType","abstract":false,"ancestors":[{"html_id":"selenium/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"selenium/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"selenium/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/web_storage_manager.cr","line_number":2,"url":null}],"repository_name":"selenium","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"LocalStorage","name":"LocalStorage","value":"0"},{"id":"SessionStorage","name":"SessionStorage","value":"1"}],"namespace":{"html_id":"selenium/Selenium/WebStorageManager","kind":"class","full_name":"Selenium::WebStorageManager","name":"WebStorageManager"},"instance_methods":[{"html_id":"local_storage?-instance-method","name":"local_storage?","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":3,"url":null},"def":{"name":"local_storage?","visibility":"Public","body":"self == LocalStorage"}},{"html_id":"session_storage?-instance-method","name":"session_storage?","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":4,"url":null},"def":{"name":"session_storage?","visibility":"Public","body":"self == SessionStorage"}}]}]},{"html_id":"selenium/Selenium/WindowHandle","path":"Selenium/WindowHandle.html","kind":"alias","full_name":"Selenium::WindowHandle","name":"WindowHandle","abstract":false,"locations":[{"filename":"src/selenium/types.cr","line_number":3,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":true,"aliased":"String","aliased_html":"String","const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/WindowManager","path":"Selenium/WindowManager.html","kind":"class","full_name":"Selenium::WindowManager","name":"WindowManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/window_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String)-class-method","name":"new","abstract":false,"args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String)","location":{"filename":"src/selenium/window_manager.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"close_window-instance-method","name":"close_window","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":68,"url":null},"def":{"name":"close_window","visibility":"Public","body":"command_handler.execute(:close_window, path_variables)"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"fullscreen-instance-method","name":"fullscreen","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":8,"url":null},"def":{"name":"fullscreen","visibility":"Public","body":"data = command_handler.execute(:fullscreen_window, path_variables)\nWindowRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"maximize-instance-method","name":"maximize","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":13,"url":null},"def":{"name":"maximize","visibility":"Public","body":"data = command_handler.execute(:maximize_window, path_variables)\nWindowRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"minimize-instance-method","name":"minimize","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":18,"url":null},"def":{"name":"minimize","visibility":"Public","body":"data = command_handler.execute(:minimize_window, path_variables)\nWindowRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"new_window(type:Symbol=:tab)-instance-method","name":"new_window","abstract":false,"args":[{"name":"type","default_value":":tab","external_name":"type","restriction":"Symbol"}],"args_string":"(type : Symbol = :tab)","args_html":"(type : Symbol = :tab)","location":{"filename":"src/selenium/window_manager.cr","line_number":33,"url":null},"def":{"name":"new_window","args":[{"name":"type","default_value":":tab","external_name":"type","restriction":"Symbol"}],"visibility":"Public","body":"parameters = {type: type}\ndata = command_handler.execute(:new_window, path_variables, parameters)\n(data.dig(\"value\", \"handle\")).as_s\n"}},{"html_id":"resize_window(width:Int64|Nil=nil,height:Int64|Nil=nil)-instance-method","name":"resize_window","abstract":false,"args":[{"name":"width","default_value":"nil","external_name":"width","restriction":"Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"Int64 | ::Nil"}],"args_string":"(width : Int64 | Nil = nil, height : Int64 | Nil = nil)","args_html":"(width : Int64 | Nil = nil, height : Int64 | Nil = nil)","location":{"filename":"src/selenium/window_manager.cr","line_number":59,"url":null},"def":{"name":"resize_window","args":[{"name":"width","default_value":"nil","external_name":"width","restriction":"Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"set_window_rect(width, height)"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}},{"html_id":"set_window_rect(width:Int64|Nil=nil,height:Int64|Nil=nil,x:Int64|Nil=nil,y:Int64|Nil=nil):WindowRect-instance-method","name":"set_window_rect","abstract":false,"args":[{"name":"width","default_value":"nil","external_name":"width","restriction":"Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"Int64 | ::Nil"},{"name":"x","default_value":"nil","external_name":"x","restriction":"Int64 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"Int64 | ::Nil"}],"args_string":"(width : Int64 | Nil = nil, height : Int64 | Nil = nil, x : Int64 | Nil = nil, y : Int64 | Nil = nil) : WindowRect","args_html":"(width : Int64 | Nil = nil, height : Int64 | Nil = nil, x : Int64 | Nil = nil, y : Int64 | Nil = nil) : WindowRect","location":{"filename":"src/selenium/window_manager.cr","line_number":49,"url":null},"def":{"name":"set_window_rect","args":[{"name":"width","default_value":"nil","external_name":"width","restriction":"Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"Int64 | ::Nil"},{"name":"x","default_value":"nil","external_name":"x","restriction":"Int64 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"Int64 | ::Nil"}],"return_type":"WindowRect","visibility":"Public","body":"window_rect = WindowRect.new(width: width, height: height, x: x, y: y)\nset_window_rect(window_rect)\n"}},{"html_id":"set_window_rect(window_rect)-instance-method","name":"set_window_rect","abstract":false,"args":[{"name":"window_rect","external_name":"window_rect","restriction":""}],"args_string":"(window_rect)","args_html":"(window_rect)","location":{"filename":"src/selenium/window_manager.cr","line_number":43,"url":null},"def":{"name":"set_window_rect","args":[{"name":"window_rect","external_name":"window_rect","restriction":""}],"visibility":"Public","body":"parameters = window_rect\ndata = command_handler.execute(:set_window_rect, path_variables, parameters)\nWindowRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"switch_to_window(window_handle)-instance-method","name":"switch_to_window","abstract":false,"args":[{"name":"window_handle","external_name":"window_handle","restriction":""}],"args_string":"(window_handle)","args_html":"(window_handle)","location":{"filename":"src/selenium/window_manager.cr","line_number":39,"url":null},"def":{"name":"switch_to_window","args":[{"name":"window_handle","external_name":"window_handle","restriction":""}],"visibility":"Public","body":"command_handler.execute(:switch_to_window, path_variables, {handle: window_handle})"}},{"html_id":"window_handle-instance-method","name":"window_handle","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":23,"url":null},"def":{"name":"window_handle","visibility":"Public","body":"data = command_handler.execute(:get_window_handle, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"window_handles-instance-method","name":"window_handles","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":28,"url":null},"def":{"name":"window_handles","visibility":"Public","body":"data = command_handler.execute(:get_window_handles, path_variables)\ndata[\"value\"].as_a.map(&.as_s)\n"}},{"html_id":"window_rect-instance-method","name":"window_rect","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":63,"url":null},"def":{"name":"window_rect","visibility":"Public","body":"data = command_handler.execute(:get_window_rect, path_variables)\nWindowRect.from_json(data[\"value\"].to_json)\n"}}]},{"html_id":"selenium/Selenium/WindowRect","path":"Selenium/WindowRect.html","kind":"struct","full_name":"Selenium::WindowRect","name":"WindowRect","abstract":false,"superclass":{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"selenium/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/window_rect.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/window_rect.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new(x:Int64|Nil=nil,y:Int64|Nil=nil,width:Int64|Nil=nil,height:Int64|Nil=nil)-class-method","name":"new","abstract":false,"args":[{"name":"x","default_value":"nil","external_name":"x","restriction":"::Int64 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"::Int64 | ::Nil"},{"name":"width","default_value":"nil","external_name":"width","restriction":"::Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"::Int64 | ::Nil"}],"args_string":"(x : Int64 | Nil = nil, y : Int64 | Nil = nil, width : Int64 | Nil = nil, height : Int64 | Nil = nil)","args_html":"(x : Int64 | Nil = nil, y : Int64 | Nil = nil, width : Int64 | Nil = nil, height : Int64 | Nil = nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":9,"url":null},"def":{"name":"new","args":[{"name":"x","default_value":"nil","external_name":"x","restriction":"::Int64 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"::Int64 | ::Nil"},{"name":"width","default_value":"nil","external_name":"width","restriction":"::Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"::Int64 | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(x, y, width, height)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"height:Int64|Nil-instance-method","name":"height","abstract":false,"location":{"filename":"src/selenium/window_rect.cr","line_number":7,"url":null},"def":{"name":"height","return_type":"Int64 | ::Nil","visibility":"Public","body":"@height"}},{"html_id":"height=(height:Int64|Nil)-instance-method","name":"height=","abstract":false,"args":[{"name":"height","external_name":"height","restriction":"Int64 | ::Nil"}],"args_string":"(height : Int64 | Nil)","args_html":"(height : Int64 | Nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":7,"url":null},"def":{"name":"height=","args":[{"name":"height","external_name":"height","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@height = height"}},{"html_id":"width:Int64|Nil-instance-method","name":"width","abstract":false,"location":{"filename":"src/selenium/window_rect.cr","line_number":6,"url":null},"def":{"name":"width","return_type":"Int64 | ::Nil","visibility":"Public","body":"@width"}},{"html_id":"width=(width:Int64|Nil)-instance-method","name":"width=","abstract":false,"args":[{"name":"width","external_name":"width","restriction":"Int64 | ::Nil"}],"args_string":"(width : Int64 | Nil)","args_html":"(width : Int64 | Nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":6,"url":null},"def":{"name":"width=","args":[{"name":"width","external_name":"width","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@width = width"}},{"html_id":"x:Int64|Nil-instance-method","name":"x","abstract":false,"location":{"filename":"src/selenium/window_rect.cr","line_number":4,"url":null},"def":{"name":"x","return_type":"Int64 | ::Nil","visibility":"Public","body":"@x"}},{"html_id":"x=(x:Int64|Nil)-instance-method","name":"x=","abstract":false,"args":[{"name":"x","external_name":"x","restriction":"Int64 | ::Nil"}],"args_string":"(x : Int64 | Nil)","args_html":"(x : Int64 | Nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":4,"url":null},"def":{"name":"x=","args":[{"name":"x","external_name":"x","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@x = x"}},{"html_id":"y:Int64|Nil-instance-method","name":"y","abstract":false,"location":{"filename":"src/selenium/window_rect.cr","line_number":5,"url":null},"def":{"name":"y","return_type":"Int64 | ::Nil","visibility":"Public","body":"@y"}},{"html_id":"y=(y:Int64|Nil)-instance-method","name":"y=","abstract":false,"args":[{"name":"y","external_name":"y","restriction":"Int64 | ::Nil"}],"args_string":"(y : Int64 | Nil)","args_html":"(y : Int64 | Nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":5,"url":null},"def":{"name":"y=","args":[{"name":"y","external_name":"y","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@y = y"}}]}]}]}}) \ No newline at end of file +crystal_doc_search_index_callback({"repository_name":"selenium","body":"# selenium.cr\n\nSelenium client for interacting with web pages for browser automation.\n\n[API Documentation](https://matthewmcgarvey.github.io/selenium.cr/)\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n ```yaml\n dependencies:\n selenium:\n github: matthewmcgarvey/selenium.cr\n ```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"selenium\"\n```\n\n### Creating a Driver\n\n```crystal\ndriver = Selenium::Driver.for(:chrome, base_url: \"http://localhost:9515\")\n```\n\nCreating a driver this way assumes that you have the driver running already.\n\nAvailable drivers:\n\n- :chrome (using chromedriver)\n- :firefox (using geckodriver)\n- :remote (general purpose)\n\n### Running with a service\n\nRather than running chromedriver yourself, you can give the driver a service which will run the process for you.\n\n```crystal\nservice = Selenium::Service.chrome(driver_path: File.expand_path(\"~/.webdrivers/chromedriver\", home: true))\ndriver = Selenium::Driver.for(:chrome, service: service)\n```\n\nYou must call `driver.stop` when you are finished or it will leave the service running.\nConsider using [webdrivers.cr](https://github.com/matthewmcgarvey/webdrivers.cr) for automatically installing drivers and managing the driver path for you.\n\n### Creating a Session\n\n```crystal\ncapabilities = Selenium::Chrome::Capabilities.new\ncapabilities.chrome_options.args = [\"no-sandbox\", \"headless\", \"disable-gpu\"]\ndriver.create_session(capabilities)\n```\n\nUse the appropriate `Capabilities` class for whichever browser you choose.\n\n## Development\n\nRun `crystal spec` to run the tests. It will run the tests in headless mode.\n\nTo run the tests with chrome headlessly:\n\n```crystal\nSELENIUM_BROWSER=chrome crystal spec --tag \"~chrome\"\n```\n\nTo run the tests with firefox headlessly:\n\n```crystal\nSELENIUM_BROWSER=firefox crystal spec --tag \"~firefox\"\n\n```\n\nThe tag skips any specs that are know to break with those browsers.\nRunning just `crystal spec` will use chrome.\n\n## Contributing\n\n1. Fork it (I want to have seperate actions for each type (pause, pointer, key) but when I did that, I wasn't able to get the type union or inheritance working for some reason
","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/action.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new(type:String,duration:Int32|Nil=nil,value:Char|Nil=nil,button:Int32|Nil=nil,origin:Nil|String=nil,x:Int32|Nil=nil,y:Int32|Nil=nil)-class-method","name":"new","abstract":false,"args":[{"name":"type","external_name":"type","restriction":"::String"},{"name":"duration","default_value":"nil","external_name":"duration","restriction":"::Int32 | ::Nil"},{"name":"value","default_value":"nil","external_name":"value","restriction":"Char | ::Nil"},{"name":"button","default_value":"nil","external_name":"button","restriction":"::Int32 | ::Nil"},{"name":"origin","default_value":"nil","external_name":"origin","restriction":"::Nil | ::String"},{"name":"x","default_value":"nil","external_name":"x","restriction":"::Int32 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"::Int32 | ::Nil"}],"args_string":"(type : String, duration : Int32 | Nil = nil, value : Char | Nil = nil, button : Int32 | Nil = nil, origin : Nil | String = nil, x : Int32 | Nil = nil, y : Int32 | Nil = nil)","args_html":"(type : String, duration : Int32 | Nil = nil, value : Char | Nil = nil, button : Int32 | Nil = nil, origin : Nil | String = nil, x : Int32 | Nil = nil, y : Int32 | Nil = nil)","location":{"filename":"src/selenium/action.cr","line_number":16,"url":null},"def":{"name":"new","args":[{"name":"type","external_name":"type","restriction":"::String"},{"name":"duration","default_value":"nil","external_name":"duration","restriction":"::Int32 | ::Nil"},{"name":"value","default_value":"nil","external_name":"value","restriction":"Char | ::Nil"},{"name":"button","default_value":"nil","external_name":"button","restriction":"::Int32 | ::Nil"},{"name":"origin","default_value":"nil","external_name":"origin","restriction":"::Nil | ::String"},{"name":"x","default_value":"nil","external_name":"x","restriction":"::Int32 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"::Int32 | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(type, duration, value, button, origin, x, y)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"button:Int32|Nil-instance-method","name":"button","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":8,"url":null},"def":{"name":"button","return_type":"Int32 | ::Nil","visibility":"Public","body":"@button"}},{"html_id":"duration:Int32|Nil-instance-method","name":"duration","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":7,"url":null},"def":{"name":"duration","return_type":"Int32 | ::Nil","visibility":"Public","body":"@duration"}},{"html_id":"origin:String|Nil-instance-method","name":"origin","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":9,"url":null},"def":{"name":"origin","return_type":"String | ::Nil","visibility":"Public","body":"@origin"}},{"html_id":"type:String-instance-method","name":"type","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":6,"url":null},"def":{"name":"type","return_type":"String","visibility":"Public","body":"@type"}},{"html_id":"value:Char|Nil-instance-method","name":"value","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":28,"url":null},"def":{"name":"value","return_type":"Char | ::Nil","visibility":"Public","body":"value.try(&.char_at(0))"}},{"html_id":"x:Int32|Nil-instance-method","name":"x","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":10,"url":null},"def":{"name":"x","return_type":"Int32 | ::Nil","visibility":"Public","body":"@x"}},{"html_id":"y:Int32|Nil-instance-method","name":"y","abstract":false,"location":{"filename":"src/selenium/action.cr","line_number":11,"url":null},"def":{"name":"y","return_type":"Int32 | ::Nil","visibility":"Public","body":"@y"}}]},{"html_id":"selenium/Selenium/ActionSequence","path":"Selenium/ActionSequence.html","kind":"alias","full_name":"Selenium::ActionSequence","name":"ActionSequence","abstract":false,"locations":[{"filename":"src/selenium/types.cr","line_number":5,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":true,"aliased":"Array(Selenium::InputSourceActionSequence)","aliased_html":"Array(Selenium::InputSourceActionSequence)","const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/AlertManager","path":"Selenium/AlertManager.html","kind":"class","full_name":"Selenium::AlertManager","name":"AlertManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/alert_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String)-class-method","name":"new","abstract":false,"args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String)","location":{"filename":"src/selenium/alert_manager.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"accept_alert-instance-method","name":"accept_alert","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":19,"url":null},"def":{"name":"accept_alert","visibility":"Public","body":"command_handler.execute(:accept_alert, path_variables)"}},{"html_id":"alert_text-instance-method","name":"alert_text","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":13,"url":null},"def":{"name":"alert_text","visibility":"Public","body":"data = command_handler.execute(:get_alert_text, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"dismiss_alert-instance-method","name":"dismiss_alert","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":23,"url":null},"def":{"name":"dismiss_alert","visibility":"Public","body":"command_handler.execute(:dismiss_alert, path_variables)"}},{"html_id":"send_alert_text(text)-instance-method","name":"send_alert_text","abstract":false,"args":[{"name":"text","external_name":"text","restriction":""}],"args_string":"(text)","args_html":"(text)","location":{"filename":"src/selenium/alert_manager.cr","line_number":8,"url":null},"def":{"name":"send_alert_text","args":[{"name":"text","external_name":"text","restriction":""}],"visibility":"Public","body":"parameters = {text: text}\ncommand_handler.execute(:send_alert_text, path_variables, parameters)\n"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/alert_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}}]},{"html_id":"selenium/Selenium/BaseError","path":"Selenium/BaseError.html","kind":"class","full_name":"Selenium::BaseError","name":"BaseError","abstract":true,"superclass":{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},"ancestors":[{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/errors.cr","line_number":2,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"selenium/Selenium/InvalidTagError","kind":"class","full_name":"Selenium::InvalidTagError","name":"InvalidTagError"},{"html_id":"selenium/Selenium/UnsupportedOperationError","kind":"class","full_name":"Selenium::UnsupportedOperationError","name":"UnsupportedOperationError"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/Capabilities","path":"Selenium/Capabilities.html","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"subclasses":[{"html_id":"selenium/Selenium/Chrome/Capabilities","kind":"class","full_name":"Selenium::Chrome::Capabilities","name":"Capabilities"},{"html_id":"selenium/Selenium/Firefox/Capabilities","kind":"class","full_name":"Selenium::Firefox::Capabilities","name":"Capabilities"},{"html_id":"selenium/Selenium/Safari/Capabilities","kind":"class","full_name":"Selenium::Safari::Capabilities","name":"Capabilities"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/capabilities.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":4,"url":null},"def":{"name":"new","visibility":"Public","body":"_ = allocate\n_.initialize\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"accept_insecure_certs:Bool|Nil-instance-method","name":"accept_insecure_certs","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":17,"url":null},"def":{"name":"accept_insecure_certs","return_type":"Bool | ::Nil","visibility":"Public","body":"@accept_insecure_certs"}},{"html_id":"accept_insecure_certs=(accept_insecure_certs:Bool|Nil)-instance-method","name":"accept_insecure_certs=","abstract":false,"args":[{"name":"accept_insecure_certs","external_name":"accept_insecure_certs","restriction":"Bool | ::Nil"}],"args_string":"(accept_insecure_certs : Bool | Nil)","args_html":"(accept_insecure_certs : Bool | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":17,"url":null},"def":{"name":"accept_insecure_certs=","args":[{"name":"accept_insecure_certs","external_name":"accept_insecure_certs","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@accept_insecure_certs = accept_insecure_certs"}},{"html_id":"browser_name:String|Nil-instance-method","name":"browser_name","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":8,"url":null},"def":{"name":"browser_name","return_type":"String | ::Nil","visibility":"Public","body":"@browser_name"}},{"html_id":"browser_name=(browser_name:String|Nil)-instance-method","name":"browser_name=","abstract":false,"args":[{"name":"browser_name","external_name":"browser_name","restriction":"String | ::Nil"}],"args_string":"(browser_name : String | Nil)","args_html":"(browser_name : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":8,"url":null},"def":{"name":"browser_name=","args":[{"name":"browser_name","external_name":"browser_name","restriction":"String | ::Nil"}],"visibility":"Public","body":"@browser_name = browser_name"}},{"html_id":"browser_version:String|Nil-instance-method","name":"browser_version","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":11,"url":null},"def":{"name":"browser_version","return_type":"String | ::Nil","visibility":"Public","body":"@browser_version"}},{"html_id":"browser_version=(browser_version:String|Nil)-instance-method","name":"browser_version=","abstract":false,"args":[{"name":"browser_version","external_name":"browser_version","restriction":"String | ::Nil"}],"args_string":"(browser_version : String | Nil)","args_html":"(browser_version : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":11,"url":null},"def":{"name":"browser_version=","args":[{"name":"browser_version","external_name":"browser_version","restriction":"String | ::Nil"}],"visibility":"Public","body":"@browser_version = browser_version"}},{"html_id":"page_load_strategy:String|Nil-instance-method","name":"page_load_strategy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":20,"url":null},"def":{"name":"page_load_strategy","return_type":"String | ::Nil","visibility":"Public","body":"@page_load_strategy"}},{"html_id":"page_load_strategy=(page_load_strategy:String|Nil)-instance-method","name":"page_load_strategy=","abstract":false,"args":[{"name":"page_load_strategy","external_name":"page_load_strategy","restriction":"String | ::Nil"}],"args_string":"(page_load_strategy : String | Nil)","args_html":"(page_load_strategy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":20,"url":null},"def":{"name":"page_load_strategy=","args":[{"name":"page_load_strategy","external_name":"page_load_strategy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@page_load_strategy = page_load_strategy"}},{"html_id":"platform_name:String|Nil-instance-method","name":"platform_name","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":14,"url":null},"def":{"name":"platform_name","return_type":"String | ::Nil","visibility":"Public","body":"@platform_name"}},{"html_id":"platform_name=(platform_name:String|Nil)-instance-method","name":"platform_name=","abstract":false,"args":[{"name":"platform_name","external_name":"platform_name","restriction":"String | ::Nil"}],"args_string":"(platform_name : String | Nil)","args_html":"(platform_name : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":14,"url":null},"def":{"name":"platform_name=","args":[{"name":"platform_name","external_name":"platform_name","restriction":"String | ::Nil"}],"visibility":"Public","body":"@platform_name = platform_name"}},{"html_id":"proxy:ProxyConfiguration|Nil-instance-method","name":"proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":22,"url":null},"def":{"name":"proxy","return_type":"ProxyConfiguration | ::Nil","visibility":"Public","body":"@proxy"}},{"html_id":"proxy=(proxy:ProxyConfiguration|Nil)-instance-method","name":"proxy=","abstract":false,"args":[{"name":"proxy","external_name":"proxy","restriction":"ProxyConfiguration | ::Nil"}],"args_string":"(proxy : ProxyConfiguration | Nil)","args_html":"(proxy : ProxyConfiguration | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":22,"url":null},"def":{"name":"proxy=","args":[{"name":"proxy","external_name":"proxy","restriction":"ProxyConfiguration | ::Nil"}],"visibility":"Public","body":"@proxy = proxy"}},{"html_id":"set_window_rect:Bool|Nil-instance-method","name":"set_window_rect","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":25,"url":null},"def":{"name":"set_window_rect","return_type":"Bool | ::Nil","visibility":"Public","body":"@set_window_rect"}},{"html_id":"set_window_rect=(set_window_rect:Bool|Nil)-instance-method","name":"set_window_rect=","abstract":false,"args":[{"name":"set_window_rect","external_name":"set_window_rect","restriction":"Bool | ::Nil"}],"args_string":"(set_window_rect : Bool | Nil)","args_html":"(set_window_rect : Bool | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":25,"url":null},"def":{"name":"set_window_rect=","args":[{"name":"set_window_rect","external_name":"set_window_rect","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@set_window_rect = set_window_rect"}},{"html_id":"strict_file_interactability:Bool|Nil-instance-method","name":"strict_file_interactability","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":30,"url":null},"def":{"name":"strict_file_interactability","return_type":"Bool | ::Nil","visibility":"Public","body":"@strict_file_interactability"}},{"html_id":"strict_file_interactability=(strict_file_interactability:Bool|Nil)-instance-method","name":"strict_file_interactability=","abstract":false,"args":[{"name":"strict_file_interactability","external_name":"strict_file_interactability","restriction":"Bool | ::Nil"}],"args_string":"(strict_file_interactability : Bool | Nil)","args_html":"(strict_file_interactability : Bool | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":30,"url":null},"def":{"name":"strict_file_interactability=","args":[{"name":"strict_file_interactability","external_name":"strict_file_interactability","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@strict_file_interactability = strict_file_interactability"}},{"html_id":"timeouts:TimeoutConfiguration|Nil-instance-method","name":"timeouts","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":27,"url":null},"def":{"name":"timeouts","return_type":"TimeoutConfiguration | ::Nil","visibility":"Public","body":"@timeouts"}},{"html_id":"timeouts=(timeouts:TimeoutConfiguration|Nil)-instance-method","name":"timeouts=","abstract":false,"args":[{"name":"timeouts","external_name":"timeouts","restriction":"TimeoutConfiguration | ::Nil"}],"args_string":"(timeouts : TimeoutConfiguration | Nil)","args_html":"(timeouts : TimeoutConfiguration | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":27,"url":null},"def":{"name":"timeouts=","args":[{"name":"timeouts","external_name":"timeouts","restriction":"TimeoutConfiguration | ::Nil"}],"visibility":"Public","body":"@timeouts = timeouts"}},{"html_id":"unhandled_prompt_behavior:String|Nil-instance-method","name":"unhandled_prompt_behavior","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":33,"url":null},"def":{"name":"unhandled_prompt_behavior","return_type":"String | ::Nil","visibility":"Public","body":"@unhandled_prompt_behavior"}},{"html_id":"unhandled_prompt_behavior=(unhandled_prompt_behavior:String|Nil)-instance-method","name":"unhandled_prompt_behavior=","abstract":false,"args":[{"name":"unhandled_prompt_behavior","external_name":"unhandled_prompt_behavior","restriction":"String | ::Nil"}],"args_string":"(unhandled_prompt_behavior : String | Nil)","args_html":"(unhandled_prompt_behavior : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":33,"url":null},"def":{"name":"unhandled_prompt_behavior=","args":[{"name":"unhandled_prompt_behavior","external_name":"unhandled_prompt_behavior","restriction":"String | ::Nil"}],"visibility":"Public","body":"@unhandled_prompt_behavior = unhandled_prompt_behavior"}}],"types":[{"html_id":"selenium/Selenium/Capabilities/ProxyConfiguration","path":"Selenium/Capabilities/ProxyConfiguration.html","kind":"class","full_name":"Selenium::Capabilities::ProxyConfiguration","name":"ProxyConfiguration","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/capabilities.cr","line_number":35,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/capabilities.cr","line_number":36,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"ftp_proxy:String|Nil-instance-method","name":"ftp_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":45,"url":null},"def":{"name":"ftp_proxy","return_type":"String | ::Nil","visibility":"Public","body":"@ftp_proxy"}},{"html_id":"ftp_proxy=(ftp_proxy:String|Nil)-instance-method","name":"ftp_proxy=","abstract":false,"args":[{"name":"ftp_proxy","external_name":"ftp_proxy","restriction":"String | ::Nil"}],"args_string":"(ftp_proxy : String | Nil)","args_html":"(ftp_proxy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":45,"url":null},"def":{"name":"ftp_proxy=","args":[{"name":"ftp_proxy","external_name":"ftp_proxy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@ftp_proxy = ftp_proxy"}},{"html_id":"http_proxy:String|Nil-instance-method","name":"http_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":48,"url":null},"def":{"name":"http_proxy","return_type":"String | ::Nil","visibility":"Public","body":"@http_proxy"}},{"html_id":"http_proxy=(http_proxy:String|Nil)-instance-method","name":"http_proxy=","abstract":false,"args":[{"name":"http_proxy","external_name":"http_proxy","restriction":"String | ::Nil"}],"args_string":"(http_proxy : String | Nil)","args_html":"(http_proxy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":48,"url":null},"def":{"name":"http_proxy=","args":[{"name":"http_proxy","external_name":"http_proxy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@http_proxy = http_proxy"}},{"html_id":"no_proxy:Array(String)|Nil-instance-method","name":"no_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":51,"url":null},"def":{"name":"no_proxy","return_type":"Array(String) | ::Nil","visibility":"Public","body":"@no_proxy"}},{"html_id":"no_proxy=(no_proxy:Array(String)|Nil)-instance-method","name":"no_proxy=","abstract":false,"args":[{"name":"no_proxy","external_name":"no_proxy","restriction":"Array(String) | ::Nil"}],"args_string":"(no_proxy : Array(String) | Nil)","args_html":"(no_proxy : Array(String) | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":51,"url":null},"def":{"name":"no_proxy=","args":[{"name":"no_proxy","external_name":"no_proxy","restriction":"Array(String) | ::Nil"}],"visibility":"Public","body":"@no_proxy = no_proxy"}},{"html_id":"proxy_autoconfig_url:String|Nil-instance-method","name":"proxy_autoconfig_url","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":42,"url":null},"def":{"name":"proxy_autoconfig_url","return_type":"String | ::Nil","visibility":"Public","body":"@proxy_autoconfig_url"}},{"html_id":"proxy_autoconfig_url=(proxy_autoconfig_url:String|Nil)-instance-method","name":"proxy_autoconfig_url=","abstract":false,"args":[{"name":"proxy_autoconfig_url","external_name":"proxy_autoconfig_url","restriction":"String | ::Nil"}],"args_string":"(proxy_autoconfig_url : String | Nil)","args_html":"(proxy_autoconfig_url : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":42,"url":null},"def":{"name":"proxy_autoconfig_url=","args":[{"name":"proxy_autoconfig_url","external_name":"proxy_autoconfig_url","restriction":"String | ::Nil"}],"visibility":"Public","body":"@proxy_autoconfig_url = proxy_autoconfig_url"}},{"html_id":"proxy_type:String|Nil-instance-method","name":"proxy_type","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":39,"url":null},"def":{"name":"proxy_type","return_type":"String | ::Nil","visibility":"Public","body":"@proxy_type"}},{"html_id":"proxy_type=(proxy_type:String|Nil)-instance-method","name":"proxy_type=","abstract":false,"args":[{"name":"proxy_type","external_name":"proxy_type","restriction":"String | ::Nil"}],"args_string":"(proxy_type : String | Nil)","args_html":"(proxy_type : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":39,"url":null},"def":{"name":"proxy_type=","args":[{"name":"proxy_type","external_name":"proxy_type","restriction":"String | ::Nil"}],"visibility":"Public","body":"@proxy_type = proxy_type"}},{"html_id":"socks_proxy:String|Nil-instance-method","name":"socks_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":57,"url":null},"def":{"name":"socks_proxy","return_type":"String | ::Nil","visibility":"Public","body":"@socks_proxy"}},{"html_id":"socks_proxy=(socks_proxy:String|Nil)-instance-method","name":"socks_proxy=","abstract":false,"args":[{"name":"socks_proxy","external_name":"socks_proxy","restriction":"String | ::Nil"}],"args_string":"(socks_proxy : String | Nil)","args_html":"(socks_proxy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":57,"url":null},"def":{"name":"socks_proxy=","args":[{"name":"socks_proxy","external_name":"socks_proxy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@socks_proxy = socks_proxy"}},{"html_id":"socks_version:Int32|Nil-instance-method","name":"socks_version","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":60,"url":null},"def":{"name":"socks_version","return_type":"Int32 | ::Nil","visibility":"Public","body":"@socks_version"}},{"html_id":"socks_version=(socks_version:Int32|Nil)-instance-method","name":"socks_version=","abstract":false,"args":[{"name":"socks_version","external_name":"socks_version","restriction":"Int32 | ::Nil"}],"args_string":"(socks_version : Int32 | Nil)","args_html":"(socks_version : Int32 | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":60,"url":null},"def":{"name":"socks_version=","args":[{"name":"socks_version","external_name":"socks_version","restriction":"Int32 | ::Nil"}],"visibility":"Public","body":"@socks_version = socks_version"}},{"html_id":"ssl_proxy:String|Nil-instance-method","name":"ssl_proxy","abstract":false,"location":{"filename":"src/selenium/capabilities.cr","line_number":54,"url":null},"def":{"name":"ssl_proxy","return_type":"String | ::Nil","visibility":"Public","body":"@ssl_proxy"}},{"html_id":"ssl_proxy=(ssl_proxy:String|Nil)-instance-method","name":"ssl_proxy=","abstract":false,"args":[{"name":"ssl_proxy","external_name":"ssl_proxy","restriction":"String | ::Nil"}],"args_string":"(ssl_proxy : String | Nil)","args_html":"(ssl_proxy : String | Nil)","location":{"filename":"src/selenium/capabilities.cr","line_number":54,"url":null},"def":{"name":"ssl_proxy=","args":[{"name":"ssl_proxy","external_name":"ssl_proxy","restriction":"String | ::Nil"}],"visibility":"Public","body":"@ssl_proxy = ssl_proxy"}}]}]},{"html_id":"selenium/Selenium/Chrome","path":"Selenium/Chrome.html","kind":"module","full_name":"Selenium::Chrome","name":"Chrome","abstract":false,"locations":[{"filename":"src/selenium/chrome/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"types":[{"html_id":"selenium/Selenium/Chrome/Capabilities","path":"Selenium/Chrome/Capabilities.html","kind":"class","full_name":"Selenium::Chrome::Capabilities","name":"Capabilities","abstract":false,"superclass":{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},"ancestors":[{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/chrome/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Chrome","kind":"module","full_name":"Selenium::Chrome","name":"Chrome"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":1,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"chrome_options:Selenium::Chrome::Capabilities::ChromeOptions-instance-method","name":"chrome_options","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":5,"url":null},"def":{"name":"chrome_options","visibility":"Public","body":"@chrome_options"}},{"html_id":"chrome_options=(chrome_options:Selenium::Chrome::Capabilities::ChromeOptions)-instance-method","name":"chrome_options=","abstract":false,"args":[{"name":"chrome_options","external_name":"chrome_options","restriction":"::Selenium::Chrome::Capabilities::ChromeOptions"}],"args_string":"(chrome_options : Selenium::Chrome::Capabilities::ChromeOptions)","args_html":"(chrome_options : Selenium::Chrome::Capabilities::ChromeOptions)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":5,"url":null},"def":{"name":"chrome_options=","args":[{"name":"chrome_options","external_name":"chrome_options","restriction":"::Selenium::Chrome::Capabilities::ChromeOptions"}],"visibility":"Public","body":"@chrome_options = chrome_options"}}],"types":[{"html_id":"selenium/Selenium/Chrome/Capabilities/ChromeOptions","path":"Selenium/Chrome/Capabilities/ChromeOptions.html","kind":"class","full_name":"Selenium::Chrome::Capabilities::ChromeOptions","name":"ChromeOptions","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/chrome/capabilities.cr","line_number":7,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium/Chrome/Capabilities","kind":"class","full_name":"Selenium::Chrome::Capabilities","name":"Capabilities"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":10,"url":null},"def":{"name":"new","visibility":"Public","body":"_ = allocate\n_.initialize\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"args:Array(String)-instance-method","name":"args","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":13,"url":null},"def":{"name":"args","visibility":"Public","body":"@args"}},{"html_id":"args=(args:Array(String))-instance-method","name":"args=","abstract":false,"args":[{"name":"args","external_name":"args","restriction":"::Array(::String)"}],"args_string":"(args : Array(String))","args_html":"(args : Array(String))","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":13,"url":null},"def":{"name":"args=","args":[{"name":"args","external_name":"args","restriction":"::Array(::String)"}],"visibility":"Public","body":"@args = args"}},{"html_id":"binary:String|Nil-instance-method","name":"binary","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":15,"url":null},"def":{"name":"binary","return_type":"String | ::Nil","visibility":"Public","body":"@binary"}},{"html_id":"binary=(binary:String|Nil)-instance-method","name":"binary=","abstract":false,"args":[{"name":"binary","external_name":"binary","restriction":"String | ::Nil"}],"args_string":"(binary : String | Nil)","args_html":"(binary : String | Nil)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":15,"url":null},"def":{"name":"binary=","args":[{"name":"binary","external_name":"binary","restriction":"String | ::Nil"}],"visibility":"Public","body":"@binary = binary"}},{"html_id":"debugger_address:String|Nil-instance-method","name":"debugger_address","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":22,"url":null},"def":{"name":"debugger_address","return_type":"String | ::Nil","visibility":"Public","body":"@debugger_address"}},{"html_id":"debugger_address=(debugger_address:String|Nil)-instance-method","name":"debugger_address=","abstract":false,"args":[{"name":"debugger_address","external_name":"debugger_address","restriction":"String | ::Nil"}],"args_string":"(debugger_address : String | Nil)","args_html":"(debugger_address : String | Nil)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":22,"url":null},"def":{"name":"debugger_address=","args":[{"name":"debugger_address","external_name":"debugger_address","restriction":"String | ::Nil"}],"visibility":"Public","body":"@debugger_address = debugger_address"}},{"html_id":"detach:Bool|Nil-instance-method","name":"detach","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":19,"url":null},"def":{"name":"detach","return_type":"Bool | ::Nil","visibility":"Public","body":"@detach"}},{"html_id":"detach=(detach:Bool|Nil)-instance-method","name":"detach=","abstract":false,"args":[{"name":"detach","external_name":"detach","restriction":"Bool | ::Nil"}],"args_string":"(detach : Bool | Nil)","args_html":"(detach : Bool | Nil)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":19,"url":null},"def":{"name":"detach=","args":[{"name":"detach","external_name":"detach","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@detach = detach"}},{"html_id":"extensions:Array(String)|Nil-instance-method","name":"extensions","abstract":false,"location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":17,"url":null},"def":{"name":"extensions","return_type":"Array(String) | ::Nil","visibility":"Public","body":"@extensions"}},{"html_id":"extensions=(extensions:Array(String)|Nil)-instance-method","name":"extensions=","abstract":false,"args":[{"name":"extensions","external_name":"extensions","restriction":"Array(String) | ::Nil"}],"args_string":"(extensions : Array(String) | Nil)","args_html":"(extensions : Array(String) | Nil)","location":{"filename":"src/selenium/chrome/capabilities.cr","line_number":17,"url":null},"def":{"name":"extensions=","args":[{"name":"extensions","external_name":"extensions","restriction":"Array(String) | ::Nil"}],"visibility":"Public","body":"@extensions = extensions"}}]}]},{"html_id":"selenium/Selenium/Chrome/Driver","path":"Selenium/Chrome/Driver.html","kind":"class","full_name":"Selenium::Chrome::Driver","name":"Driver","abstract":false,"superclass":{"html_id":"selenium/Selenium/Driver","kind":"class","full_name":"Selenium::Driver","name":"Driver"},"ancestors":[{"html_id":"selenium/Selenium/Driver","kind":"class","full_name":"Selenium::Driver","name":"Driver"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/chrome/driver.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Chrome","kind":"module","full_name":"Selenium::Chrome","name":"Chrome"},"instance_methods":[{"html_id":"create_session(capabilities:Chrome::Capabilities):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"capabilities","external_name":"capabilities","restriction":"Chrome::Capabilities"}],"args_string":"(capabilities : Chrome::Capabilities) : Session","args_html":"(capabilities : Chrome::Capabilities) : Session","location":{"filename":"src/selenium/chrome/driver.cr","line_number":2,"url":null},"def":{"name":"create_session","args":[{"name":"capabilities","external_name":"capabilities","restriction":"Chrome::Capabilities"}],"return_type":"Session","visibility":"Public","body":"super(capabilities)"}},{"html_id":"create_session(args:Array(String)):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"args_string":"(args : Array(String)) : Session","args_html":"(args : Array(String)) : Session","location":{"filename":"src/selenium/chrome/driver.cr","line_number":6,"url":null},"def":{"name":"create_session","args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"return_type":"Session","visibility":"Public","body":"capabilities = Chrome::Capabilities.new\ncapabilities.chrome_options.args = args\ncreate_session(capabilities)\n"}}]},{"html_id":"selenium/Selenium/Chrome/Service","path":"Selenium/Chrome/Service.html","kind":"class","full_name":"Selenium::Chrome::Service","name":"Service","abstract":false,"superclass":{"html_id":"selenium/Selenium/Service","kind":"class","full_name":"Selenium::Service","name":"Service"},"ancestors":[{"html_id":"selenium/Selenium/Service","kind":"class","full_name":"Selenium::Service","name":"Service"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/chrome/service.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Chrome","kind":"module","full_name":"Selenium::Chrome","name":"Chrome"},"instance_methods":[{"html_id":"default_port:Int32-instance-method","name":"default_port","abstract":false,"location":{"filename":"src/selenium/chrome/service.cr","line_number":2,"url":null},"def":{"name":"default_port","return_type":"Int32","visibility":"Public","body":"9515"}}]}]},{"html_id":"selenium/Selenium/CommandHandler","path":"Selenium/CommandHandler.html","kind":"class","full_name":"Selenium::CommandHandler","name":"CommandHandler","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Selenium/DefaultCommands","kind":"module","full_name":"Selenium::DefaultCommands","name":"DefaultCommands"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/command_handler.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/Selenium/DefaultCommands","kind":"module","full_name":"Selenium::DefaultCommands","name":"DefaultCommands"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(http_client:Selenium::HttpClient)-class-method","name":"new","abstract":false,"args":[{"name":"http_client","external_name":"http_client","restriction":"::Selenium::HttpClient"}],"args_string":"(http_client : Selenium::HttpClient)","args_html":"(http_client : Selenium::HttpClient)","location":{"filename":"src/selenium/command_handler.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"http_client","external_name":"http_client","restriction":"::Selenium::HttpClient"}],"visibility":"Public","body":"_ = allocate\n_.initialize(http_client)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"execute(command,path_variables:Hash(String,String)={}ofString=>String,parameters={}ofString=>String):JSON::Any-instance-method","name":"execute","abstract":false,"args":[{"name":"command","external_name":"command","restriction":""},{"name":"path_variables","default_value":"{} of String => String","external_name":"path_variables","restriction":"Hash(String, String)"},{"name":"parameters","default_value":"{} of String => String","external_name":"parameters","restriction":""}],"args_string":"(command, path_variables : Hash(String, String) = {} of String => String, parameters = {} of String => String) : JSON::Any","args_html":"(command, path_variables : Hash(String, String) = {} of String => String, parameters = {} of String => String) : JSON::Any","location":{"filename":"src/selenium/command_handler.cr","line_number":8,"url":null},"def":{"name":"execute","args":[{"name":"command","external_name":"command","restriction":""},{"name":"path_variables","default_value":"{} of String => String","external_name":"path_variables","restriction":"Hash(String, String)"},{"name":"parameters","default_value":"{} of String => String","external_name":"parameters","restriction":""}],"return_type":"JSON::Any","visibility":"Public","body":"method, path = DEFAULT_COMMANDS[command]\nfull_path = path_variables.reduce(path) do |acc, entry|\n acc.sub(entry.first, entry.last)\nend\nexecute(method, full_path, parameters.to_json)\n"}},{"html_id":"http_client:HttpClient-instance-method","name":"http_client","abstract":false,"location":{"filename":"src/selenium/command_handler.cr","line_number":3,"url":null},"def":{"name":"http_client","return_type":"HttpClient","visibility":"Public","body":"@http_client"}}]},{"html_id":"selenium/Selenium/Cookie","path":"Selenium/Cookie.html","kind":"struct","full_name":"Selenium::Cookie","name":"Cookie","abstract":false,"superclass":{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"selenium/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/cookie.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(name:String,value:String,path:Nil|String=nil,domain:Nil|String=nil,secure:Bool|Nil=nil,http_only:Bool|Nil=nil,expiry:Int64|Nil=nil,same_site:Nil|String=nil)-class-method","name":"new","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"::String"},{"name":"value","external_name":"value","restriction":"::String"},{"name":"path","default_value":"nil","external_name":"path","restriction":"::Nil | ::String"},{"name":"domain","default_value":"nil","external_name":"domain","restriction":"::Nil | ::String"},{"name":"secure","default_value":"nil","external_name":"secure","restriction":"::Bool | ::Nil"},{"name":"http_only","default_value":"nil","external_name":"http_only","restriction":"::Bool | ::Nil"},{"name":"expiry","default_value":"nil","external_name":"expiry","restriction":"::Int64 | ::Nil"},{"name":"same_site","default_value":"nil","external_name":"same_site","restriction":"::Nil | ::String"}],"args_string":"(name : String, value : String, path : Nil | String = nil, domain : Nil | String = nil, secure : Bool | Nil = nil, http_only : Bool | Nil = nil, expiry : Int64 | Nil = nil, same_site : Nil | String = nil)","args_html":"(name : String, value : String, path : Nil | String = nil, domain : Nil | String = nil, secure : Bool | Nil = nil, http_only : Bool | Nil = nil, expiry : Int64 | Nil = nil, same_site : Nil | String = nil)","location":{"filename":"src/selenium/cookie.cr","line_number":15,"url":null},"def":{"name":"new","args":[{"name":"name","external_name":"name","restriction":"::String"},{"name":"value","external_name":"value","restriction":"::String"},{"name":"path","default_value":"nil","external_name":"path","restriction":"::Nil | ::String"},{"name":"domain","default_value":"nil","external_name":"domain","restriction":"::Nil | ::String"},{"name":"secure","default_value":"nil","external_name":"secure","restriction":"::Bool | ::Nil"},{"name":"http_only","default_value":"nil","external_name":"http_only","restriction":"::Bool | ::Nil"},{"name":"expiry","default_value":"nil","external_name":"expiry","restriction":"::Int64 | ::Nil"},{"name":"same_site","default_value":"nil","external_name":"same_site","restriction":"::Nil | ::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(name, value, path, domain, secure, http_only, expiry, same_site)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/cookie.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"domain:String|Nil-instance-method","name":"domain","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":7,"url":null},"def":{"name":"domain","return_type":"String | ::Nil","visibility":"Public","body":"@domain"}},{"html_id":"domain=(domain:String|Nil)-instance-method","name":"domain=","abstract":false,"args":[{"name":"domain","external_name":"domain","restriction":"String | ::Nil"}],"args_string":"(domain : String | Nil)","args_html":"(domain : String | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":7,"url":null},"def":{"name":"domain=","args":[{"name":"domain","external_name":"domain","restriction":"String | ::Nil"}],"visibility":"Public","body":"@domain = domain"}},{"html_id":"expiry:Int64|Nil-instance-method","name":"expiry","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":11,"url":null},"def":{"name":"expiry","return_type":"Int64 | ::Nil","visibility":"Public","body":"@expiry"}},{"html_id":"expiry=(expiry:Int64|Nil)-instance-method","name":"expiry=","abstract":false,"args":[{"name":"expiry","external_name":"expiry","restriction":"Int64 | ::Nil"}],"args_string":"(expiry : Int64 | Nil)","args_html":"(expiry : Int64 | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":11,"url":null},"def":{"name":"expiry=","args":[{"name":"expiry","external_name":"expiry","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@expiry = expiry"}},{"html_id":"http_only:Bool|Nil-instance-method","name":"http_only","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":10,"url":null},"def":{"name":"http_only","return_type":"Bool | ::Nil","visibility":"Public","body":"@http_only"}},{"html_id":"http_only=(http_only:Bool|Nil)-instance-method","name":"http_only=","abstract":false,"args":[{"name":"http_only","external_name":"http_only","restriction":"Bool | ::Nil"}],"args_string":"(http_only : Bool | Nil)","args_html":"(http_only : Bool | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":10,"url":null},"def":{"name":"http_only=","args":[{"name":"http_only","external_name":"http_only","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@http_only = http_only"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":4,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"path:String|Nil-instance-method","name":"path","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":6,"url":null},"def":{"name":"path","return_type":"String | ::Nil","visibility":"Public","body":"@path"}},{"html_id":"path=(path:String|Nil)-instance-method","name":"path=","abstract":false,"args":[{"name":"path","external_name":"path","restriction":"String | ::Nil"}],"args_string":"(path : String | Nil)","args_html":"(path : String | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":6,"url":null},"def":{"name":"path=","args":[{"name":"path","external_name":"path","restriction":"String | ::Nil"}],"visibility":"Public","body":"@path = path"}},{"html_id":"same_site:String|Nil-instance-method","name":"same_site","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":13,"url":null},"def":{"name":"same_site","return_type":"String | ::Nil","visibility":"Public","body":"@same_site"}},{"html_id":"same_site=(same_site:String|Nil)-instance-method","name":"same_site=","abstract":false,"args":[{"name":"same_site","external_name":"same_site","restriction":"String | ::Nil"}],"args_string":"(same_site : String | Nil)","args_html":"(same_site : String | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":13,"url":null},"def":{"name":"same_site=","args":[{"name":"same_site","external_name":"same_site","restriction":"String | ::Nil"}],"visibility":"Public","body":"@same_site = same_site"}},{"html_id":"secure:Bool|Nil-instance-method","name":"secure","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":8,"url":null},"def":{"name":"secure","return_type":"Bool | ::Nil","visibility":"Public","body":"@secure"}},{"html_id":"secure=(secure:Bool|Nil)-instance-method","name":"secure=","abstract":false,"args":[{"name":"secure","external_name":"secure","restriction":"Bool | ::Nil"}],"args_string":"(secure : Bool | Nil)","args_html":"(secure : Bool | Nil)","location":{"filename":"src/selenium/cookie.cr","line_number":8,"url":null},"def":{"name":"secure=","args":[{"name":"secure","external_name":"secure","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"@secure = secure"}},{"html_id":"value:String-instance-method","name":"value","abstract":false,"location":{"filename":"src/selenium/cookie.cr","line_number":5,"url":null},"def":{"name":"value","return_type":"String","visibility":"Public","body":"@value"}}]},{"html_id":"selenium/Selenium/CookieManager","path":"Selenium/CookieManager.html","kind":"class","full_name":"Selenium::CookieManager","name":"CookieManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/cookie_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String)-class-method","name":"new","abstract":false,"args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"add_cookie(name,value)-instance-method","name":"add_cookie","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""},{"name":"value","external_name":"value","restriction":""}],"args_string":"(name, value)","args_html":"(name, value)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":25,"url":null},"def":{"name":"add_cookie","args":[{"name":"name","external_name":"name","restriction":""},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"cookie = Cookie.new(name, value)\nadd_cookie(cookie)\n"}},{"html_id":"add_cookie(cookie)-instance-method","name":"add_cookie","abstract":false,"args":[{"name":"cookie","external_name":"cookie","restriction":""}],"args_string":"(cookie)","args_html":"(cookie)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":20,"url":null},"def":{"name":"add_cookie","args":[{"name":"cookie","external_name":"cookie","restriction":""}],"visibility":"Public","body":"parameters = {cookie: cookie}\ncommand_handler.execute(:add_cookie, path_variables, parameters)\n"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/cookie_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"delete_all_cookies-instance-method","name":"delete_all_cookies","abstract":false,"location":{"filename":"src/selenium/cookie_manager.cr","line_number":34,"url":null},"def":{"name":"delete_all_cookies","visibility":"Public","body":"command_handler.execute(:delete_all_cookies, path_variables)"}},{"html_id":"delete_cookie(name)-instance-method","name":"delete_cookie","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""}],"args_string":"(name)","args_html":"(name)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":30,"url":null},"def":{"name":"delete_cookie","args":[{"name":"name","external_name":"name","restriction":""}],"visibility":"Public","body":"command_handler.execute(:delete_cookie, path_variables.merge({\":name\" => name}))"}},{"html_id":"get_all_cookies-instance-method","name":"get_all_cookies","abstract":false,"location":{"filename":"src/selenium/cookie_manager.cr","line_number":8,"url":null},"def":{"name":"get_all_cookies","visibility":"Public","body":"data = command_handler.execute(:get_all_cookies, path_variables)\nArray(Cookie).from_json(data[\"value\"].to_json)\n"}},{"html_id":"get_cookie(name)-instance-method","name":"get_cookie","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""}],"args_string":"(name)","args_html":"(name)","location":{"filename":"src/selenium/cookie_manager.cr","line_number":14,"url":null},"def":{"name":"get_cookie","args":[{"name":"name","external_name":"name","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:get_named_cookie, path_variables.merge({\":name\" => name}))\nCookie.from_json(data[\"value\"].to_json)\n"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/cookie_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}}]},{"html_id":"selenium/Selenium/Coordinate","path":"Selenium/Coordinate.html","kind":"struct","full_name":"Selenium::Coordinate","name":"Coordinate","abstract":false,"superclass":{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"selenium/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/coordinate.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(x:Int32,y:Int32)-class-method","name":"new","abstract":false,"args":[{"name":"x","external_name":"x","restriction":"::Int32"},{"name":"y","external_name":"y","restriction":"::Int32"}],"args_string":"(x : Int32, y : Int32)","args_html":"(x : Int32, y : Int32)","location":{"filename":"src/selenium/coordinate.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"x","external_name":"x","restriction":"::Int32"},{"name":"y","external_name":"y","restriction":"::Int32"}],"visibility":"Public","body":"_ = allocate\n_.initialize(x, y)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"x:Int32-instance-method","name":"x","abstract":false,"location":{"filename":"src/selenium/coordinate.cr","line_number":2,"url":null},"def":{"name":"x","return_type":"Int32","visibility":"Public","body":"@x"}},{"html_id":"y:Int32-instance-method","name":"y","abstract":false,"location":{"filename":"src/selenium/coordinate.cr","line_number":3,"url":null},"def":{"name":"y","return_type":"Int32","visibility":"Public","body":"@y"}}]},{"html_id":"selenium/Selenium/DefaultCommands","path":"Selenium/DefaultCommands.html","kind":"module","full_name":"Selenium::DefaultCommands","name":"DefaultCommands","abstract":false,"locations":[{"filename":"src/selenium/default_commands.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"DEFAULT_COMMANDS","name":"DEFAULT_COMMANDS","value":"{new_session: {:post, \"/session\"}, delete_session: {:delete, \"/session/:session_id\"}, status: {:get, \"/status\"}, get_timeouts: {:get, \"/session/:session_id/timeouts\"}, set_timeouts: {:post, \"/session/:session_id/timeouts\"}, navigate_to: {:post, \"/session/:session_id/url\"}, get_current_url: {:get, \"/session/:session_id/url\"}, back: {:post, \"/session/:session_id/back\"}, forward: {:post, \"/session/:session_id/forward\"}, refresh: {:post, \"/session/:session_id/refresh\"}, get_title: {:get, \"/session/:session_id/title\"}, get_window_handle: {:get, \"/session/:session_id/window\"}, close_window: {:delete, \"/session/:session_id/window\"}, switch_to_window: {:post, \"/session/:session_id/window\"}, get_window_handles: {:get, \"/session/:session_id/window/handles\"}, new_window: {:post, \"/session/:session_id/window/new\"}, switch_to_frame: {:post, \"/session/:session_id/frame\"}, switch_to_parent_frame: {:post, \"/session/:session_id/frame/parent\"}, get_window_rect: {:get, \"/session/:session_id/window/rect\"}, set_window_rect: {:post, \"/session/:session_id/window/rect\"}, maximize_window: {:post, \"/session/:session_id/window/maximize\"}, minimize_window: {:post, \"/session/:session_id/window/minimize\"}, fullscreen_window: {:post, \"/session/:session_id/window/fullscreen\"}, get_active_element: {:get, \"/session/:session_id/element/active\"}, find_element: {:post, \"/session/:session_id/element\"}, find_elements: {:post, \"/session/:session_id/elements\"}, find_element_from_element: {:post, \"/session/:session_id/element/:element_id/element\"}, find_elements_from_element: {:post, \"/session/:session_id/element/:element_id/elements\"}, is_element_selected: {:get, \"/session/:session_id/element/:element_id/selected\"}, get_element_attribute: {:get, \"/session/:session_id/element/:element_id/attribute/:name\"}, get_element_property: {:get, \"/session/:session_id/element/:element_id/property/:name\"}, get_element_css_value: {:get, \"/session/:session_id/element/:element_id/css/:property_name\"}, get_element_text: {:get, \"/session/:session_id/element/:element_id/text\"}, get_element_tag_name: {:get, \"/session/:session_id/element/:element_id/name\"}, get_element_rect: {:get, \"/session/:session_id/element/:element_id/rect\"}, is_element_enabled: {:get, \"/session/:session_id/element/:element_id/enabled\"}, is_element_displayed: {:get, \"/session/:session_id/element/:element_id/displayed\"}, element_click: {:post, \"/session/:session_id/element/:element_id/click\"}, element_clear: {:post, \"/session/:session_id/element/:element_id/clear\"}, element_send_keys: {:post, \"/session/:session_id/element/:element_id/value\"}, get_page_source: {:get, \"/session/:session_id/source\"}, execute_script: {:post, \"/session/:session_id/execute/sync\"}, execute_async_script: {:post, \"/session/:session_id/execute/async\"}, get_all_cookies: {:get, \"/session/:session_id/cookie\"}, get_named_cookie: {:get, \"/session/:session_id/cookie/:name\"}, add_cookie: {:post, \"/session/:session_id/cookie\"}, delete_cookie: {:delete, \"/session/:session_id/cookie/:name\"}, delete_all_cookies: {:delete, \"/session/:session_id/cookie\"}, perform_actions: {:post, \"/session/:session_id/actions\"}, release_actions: {:delete, \"/session/:session_id/actions\"}, dismiss_alert: {:post, \"/session/:session_id/alert/dismiss\"}, accept_alert: {:post, \"/session/:session_id/alert/accept\"}, get_alert_text: {:get, \"/session/:session_id/alert/text\"}, send_alert_text: {:post, \"/session/:session_id/alert/text\"}, take_screenshot: {:get, \"/session/:session_id/screenshot\"}, take_element_screenshot: {:get, \"/session/:session_id/element/:element_id/screenshot\"}}"}],"including_types":[{"html_id":"selenium/Selenium/CommandHandler","kind":"class","full_name":"Selenium::CommandHandler","name":"CommandHandler"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/DocumentManager","path":"Selenium/DocumentManager.html","kind":"class","full_name":"Selenium::DocumentManager","name":"DocumentManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/document_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String)-class-method","name":"new","abstract":false,"args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String)","location":{"filename":"src/selenium/document_manager.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/document_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"execute_async_script(script,args:Array(_)=[]ofString)-instance-method","name":"execute_async_script","abstract":false,"args":[{"name":"script","external_name":"script","restriction":""},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"Array(_)"}],"args_string":"(script, args : Array(_) = [] of String)","args_html":"(script, args : Array(_) = [] of String)","location":{"filename":"src/selenium/document_manager.cr","line_number":22,"url":null},"def":{"name":"execute_async_script","args":[{"name":"script","external_name":"script","restriction":""},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"Array(_)"}],"visibility":"Public","body":"parameters = {script: script, args: args}\ndata = command_handler.execute(:execute_async_script, path_variables, parameters)\ndata[\"value\"].as_s? || data[\"value\"].to_json\n"}},{"html_id":"execute_script(script,args:Array(_)=[]ofString)-instance-method","name":"execute_script","abstract":false,"args":[{"name":"script","external_name":"script","restriction":""},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"Array(_)"}],"args_string":"(script, args : Array(_) = [] of String)","args_html":"(script, args : Array(_) = [] of String)","location":{"filename":"src/selenium/document_manager.cr","line_number":13,"url":null},"def":{"name":"execute_script","args":[{"name":"script","external_name":"script","restriction":""},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"Array(_)"}],"visibility":"Public","body":"parameters = {script: script, args: args}\ndata = command_handler.execute(:execute_script, path_variables, parameters)\ndata[\"value\"].as_s? || data[\"value\"].to_json\n"}},{"html_id":"page_source-instance-method","name":"page_source","abstract":false,"location":{"filename":"src/selenium/document_manager.cr","line_number":8,"url":null},"def":{"name":"page_source","visibility":"Public","body":"data = command_handler.execute(:get_page_source, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"path_variables-instance-method","name":"path_variables","abstract":false,"location":{"filename":"src/selenium/document_manager.cr","line_number":31,"url":null},"def":{"name":"path_variables","visibility":"Public","body":"{\":session_id\" => session_id}"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/document_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}}]},{"html_id":"selenium/Selenium/Driver","path":"Selenium/Driver.html","kind":"class","full_name":"Selenium::Driver","name":"Driver","abstract":true,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/driver.cr","line_number":7,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"subclasses":[{"html_id":"selenium/Selenium/Chrome/Driver","kind":"class","full_name":"Selenium::Chrome::Driver","name":"Driver"},{"html_id":"selenium/Selenium/Firefox/Driver","kind":"class","full_name":"Selenium::Firefox::Driver","name":"Driver"},{"html_id":"selenium/Selenium/Remote/Driver","kind":"class","full_name":"Selenium::Remote::Driver","name":"Driver"},{"html_id":"selenium/Selenium/Safari/Driver","kind":"class","full_name":"Selenium::Safari::Driver","name":"Driver"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"doc":"The `Selenium::Driver` is the root class for interacting with browsers\n\n### Using with `Selenium::Service`\n\nIf you passed in a `Selenium::Service` you *MUST* call `Selenium::Driver#stop` when you are done to stop the service\nor else the process it starts will continue running on your computer after the program ends","summary":"The Selenium::Driver
is the root class for interacting with browsers
browser options: - :chrome (see Selenium::Chrome::Driver
) - :firefox or :gecko (see Selenium::Firefox::Driver
) - :safari (see Selenium::Safari::Driver
) - :remote (see Selenium::Remote::Driver
)
#attribute
is for referencing static fields if you are trying to access fields that change you should use #property
TODO I don't remember why I made the properties floats nor why they are nilable.
","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/element_rect.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"height:Float64|Nil-instance-method","name":"height","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":9,"url":null},"def":{"name":"height","return_type":"Float64 | ::Nil","visibility":"Public","body":"@height"}},{"html_id":"height=(height:Float64|Nil)-instance-method","name":"height=","abstract":false,"args":[{"name":"height","external_name":"height","restriction":"Float64 | ::Nil"}],"args_string":"(height : Float64 | Nil)","args_html":"(height : Float64 | Nil)","location":{"filename":"src/selenium/element_rect.cr","line_number":9,"url":null},"def":{"name":"height=","args":[{"name":"height","external_name":"height","restriction":"Float64 | ::Nil"}],"visibility":"Public","body":"@height = height"}},{"html_id":"midpoint:Selenium::Coordinate|Nil-instance-method","name":"midpoint","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":11,"url":null},"def":{"name":"midpoint","return_type":"Selenium::Coordinate | ::Nil","visibility":"Public","body":"temp_x = x\ntemp_y = y\ntemp_width = width\ntemp_height = height\nif temp_x.nil?\n return\nend\nif temp_y.nil?\n return\nend\nif temp_width.nil?\n return\nend\nif temp_height.nil?\n return\nend\nSelenium::Coordinate.new(x: (temp_x + (temp_width / 2)).to_i, y: (temp_y + (temp_height / 2)).to_i)\n"}},{"html_id":"width:Float64|Nil-instance-method","name":"width","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":8,"url":null},"def":{"name":"width","return_type":"Float64 | ::Nil","visibility":"Public","body":"@width"}},{"html_id":"width=(width:Float64|Nil)-instance-method","name":"width=","abstract":false,"args":[{"name":"width","external_name":"width","restriction":"Float64 | ::Nil"}],"args_string":"(width : Float64 | Nil)","args_html":"(width : Float64 | Nil)","location":{"filename":"src/selenium/element_rect.cr","line_number":8,"url":null},"def":{"name":"width=","args":[{"name":"width","external_name":"width","restriction":"Float64 | ::Nil"}],"visibility":"Public","body":"@width = width"}},{"html_id":"x:Float64|Nil-instance-method","name":"x","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":6,"url":null},"def":{"name":"x","return_type":"Float64 | ::Nil","visibility":"Public","body":"@x"}},{"html_id":"x=(x:Float64|Nil)-instance-method","name":"x=","abstract":false,"args":[{"name":"x","external_name":"x","restriction":"Float64 | ::Nil"}],"args_string":"(x : Float64 | Nil)","args_html":"(x : Float64 | Nil)","location":{"filename":"src/selenium/element_rect.cr","line_number":6,"url":null},"def":{"name":"x=","args":[{"name":"x","external_name":"x","restriction":"Float64 | ::Nil"}],"visibility":"Public","body":"@x = x"}},{"html_id":"y:Float64|Nil-instance-method","name":"y","abstract":false,"location":{"filename":"src/selenium/element_rect.cr","line_number":7,"url":null},"def":{"name":"y","return_type":"Float64 | ::Nil","visibility":"Public","body":"@y"}},{"html_id":"y=(y:Float64|Nil)-instance-method","name":"y=","abstract":false,"args":[{"name":"y","external_name":"y","restriction":"Float64 | ::Nil"}],"args_string":"(y : Float64 | Nil)","args_html":"(y : Float64 | Nil)","location":{"filename":"src/selenium/element_rect.cr","line_number":7,"url":null},"def":{"name":"y=","args":[{"name":"y","external_name":"y","restriction":"Float64 | ::Nil"}],"visibility":"Public","body":"@y = y"}}]},{"html_id":"selenium/Selenium/Error","path":"Selenium/Error.html","kind":"class","full_name":"Selenium::Error","name":"Error","abstract":false,"superclass":{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},"ancestors":[{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/error.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"class_methods":[{"html_id":"from_json(json)-class-method","name":"from_json","abstract":false,"args":[{"name":"json","external_name":"json","restriction":""}],"args_string":"(json)","args_html":"(json)","location":{"filename":"src/selenium/error.cr","line_number":2,"url":null},"def":{"name":"from_json","args":[{"name":"json","external_name":"json","restriction":""}],"visibility":"Public","body":"new(InternalData.from_json(json))"}}],"constructors":[{"html_id":"new(internal_data:Selenium::Error::InternalData)-class-method","name":"new","abstract":false,"args":[{"name":"internal_data","external_name":"internal_data","restriction":"::Selenium::Error::InternalData"}],"args_string":"(internal_data : Selenium::Error::InternalData)","args_html":"(internal_data : Selenium::Error::InternalData)","location":{"filename":"src/selenium/error.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"internal_data","external_name":"internal_data","restriction":"::Selenium::Error::InternalData"}],"visibility":"Public","body":"_ = allocate\n_.initialize(internal_data)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"message-instance-method","name":"message","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":11,"url":null},"def":{"name":"message","visibility":"Public","body":"[internal_data.error, internal_data.error_message].reject(&.blank?).join(\": \")"}}],"types":[{"html_id":"selenium/Selenium/Error/InternalData","path":"Selenium/Error/InternalData.html","kind":"class","full_name":"Selenium::Error::InternalData","name":"InternalData","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/error.cr","line_number":15,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium/Error","kind":"class","full_name":"Selenium::Error","name":"Error"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/error.cr","line_number":16,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"data:JSON::Any|Nil-instance-method","name":"data","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":20,"url":null},"def":{"name":"data","return_type":"JSON::Any | ::Nil","visibility":"Public","body":"@data"}},{"html_id":"data=(data:JSON::Any|Nil)-instance-method","name":"data=","abstract":false,"args":[{"name":"data","external_name":"data","restriction":"JSON::Any | ::Nil"}],"args_string":"(data : JSON::Any | Nil)","args_html":"(data : JSON::Any | Nil)","location":{"filename":"src/selenium/error.cr","line_number":20,"url":null},"def":{"name":"data=","args":[{"name":"data","external_name":"data","restriction":"JSON::Any | ::Nil"}],"visibility":"Public","body":"@data = data"}},{"html_id":"error:String-instance-method","name":"error","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":18,"url":null},"def":{"name":"error","return_type":"String","visibility":"Public","body":"@error"}},{"html_id":"error=(error:String)-instance-method","name":"error=","abstract":false,"args":[{"name":"error","external_name":"error","restriction":"String"}],"args_string":"(error : String)","args_html":"(error : String)","location":{"filename":"src/selenium/error.cr","line_number":18,"url":null},"def":{"name":"error=","args":[{"name":"error","external_name":"error","restriction":"String"}],"visibility":"Public","body":"@error = error"}},{"html_id":"error_message:String-instance-method","name":"error_message","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":23,"url":null},"def":{"name":"error_message","return_type":"String","visibility":"Public","body":"@error_message"}},{"html_id":"error_message=(error_message:String)-instance-method","name":"error_message=","abstract":false,"args":[{"name":"error_message","external_name":"error_message","restriction":"String"}],"args_string":"(error_message : String)","args_html":"(error_message : String)","location":{"filename":"src/selenium/error.cr","line_number":23,"url":null},"def":{"name":"error_message=","args":[{"name":"error_message","external_name":"error_message","restriction":"String"}],"visibility":"Public","body":"@error_message = error_message"}},{"html_id":"stacktrace:String-instance-method","name":"stacktrace","abstract":false,"location":{"filename":"src/selenium/error.cr","line_number":19,"url":null},"def":{"name":"stacktrace","return_type":"String","visibility":"Public","body":"@stacktrace"}},{"html_id":"stacktrace=(stacktrace:String)-instance-method","name":"stacktrace=","abstract":false,"args":[{"name":"stacktrace","external_name":"stacktrace","restriction":"String"}],"args_string":"(stacktrace : String)","args_html":"(stacktrace : String)","location":{"filename":"src/selenium/error.cr","line_number":19,"url":null},"def":{"name":"stacktrace=","args":[{"name":"stacktrace","external_name":"stacktrace","restriction":"String"}],"visibility":"Public","body":"@stacktrace = stacktrace"}}]}]},{"html_id":"selenium/Selenium/Firefox","path":"Selenium/Firefox.html","kind":"module","full_name":"Selenium::Firefox","name":"Firefox","abstract":false,"locations":[{"filename":"src/selenium/firefox/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"types":[{"html_id":"selenium/Selenium/Firefox/Capabilities","path":"Selenium/Firefox/Capabilities.html","kind":"class","full_name":"Selenium::Firefox::Capabilities","name":"Capabilities","abstract":false,"superclass":{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},"ancestors":[{"html_id":"selenium/Selenium/Capabilities","kind":"class","full_name":"Selenium::Capabilities","name":"Capabilities"},{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/firefox/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Firefox","kind":"module","full_name":"Selenium::Firefox","name":"Firefox"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":1,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"firefox_options:Selenium::Firefox::Capabilities::FirefoxOptions-instance-method","name":"firefox_options","abstract":false,"location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":5,"url":null},"def":{"name":"firefox_options","visibility":"Public","body":"@firefox_options"}},{"html_id":"firefox_options=(firefox_options:Selenium::Firefox::Capabilities::FirefoxOptions)-instance-method","name":"firefox_options=","abstract":false,"args":[{"name":"firefox_options","external_name":"firefox_options","restriction":"::Selenium::Firefox::Capabilities::FirefoxOptions"}],"args_string":"(firefox_options : Selenium::Firefox::Capabilities::FirefoxOptions)","args_html":"(firefox_options : Selenium::Firefox::Capabilities::FirefoxOptions)","location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":5,"url":null},"def":{"name":"firefox_options=","args":[{"name":"firefox_options","external_name":"firefox_options","restriction":"::Selenium::Firefox::Capabilities::FirefoxOptions"}],"visibility":"Public","body":"@firefox_options = firefox_options"}}],"types":[{"html_id":"selenium/Selenium/Firefox/Capabilities/FirefoxOptions","path":"Selenium/Firefox/Capabilities/FirefoxOptions.html","kind":"class","full_name":"Selenium::Firefox::Capabilities::FirefoxOptions","name":"FirefoxOptions","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/firefox/capabilities.cr","line_number":7,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium/Firefox/Capabilities","kind":"class","full_name":"Selenium::Firefox::Capabilities","name":"Capabilities"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":10,"url":null},"def":{"name":"new","visibility":"Public","body":"_ = allocate\n_.initialize\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"args:Array(String)-instance-method","name":"args","abstract":false,"location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":13,"url":null},"def":{"name":"args","visibility":"Public","body":"@args"}},{"html_id":"args=(args:Array(String))-instance-method","name":"args=","abstract":false,"args":[{"name":"args","external_name":"args","restriction":"::Array(::String)"}],"args_string":"(args : Array(String))","args_html":"(args : Array(String))","location":{"filename":"src/selenium/firefox/capabilities.cr","line_number":13,"url":null},"def":{"name":"args=","args":[{"name":"args","external_name":"args","restriction":"::Array(::String)"}],"visibility":"Public","body":"@args = args"}}]}]},{"html_id":"selenium/Selenium/Firefox/Driver","path":"Selenium/Firefox/Driver.html","kind":"class","full_name":"Selenium::Firefox::Driver","name":"Driver","abstract":false,"superclass":{"html_id":"selenium/Selenium/Driver","kind":"class","full_name":"Selenium::Driver","name":"Driver"},"ancestors":[{"html_id":"selenium/Selenium/Driver","kind":"class","full_name":"Selenium::Driver","name":"Driver"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/firefox/driver.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Firefox","kind":"module","full_name":"Selenium::Firefox","name":"Firefox"},"instance_methods":[{"html_id":"create_session(capabilities:Firefox::Capabilities):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"capabilities","external_name":"capabilities","restriction":"Firefox::Capabilities"}],"args_string":"(capabilities : Firefox::Capabilities) : Session","args_html":"(capabilities : Firefox::Capabilities) : Session","location":{"filename":"src/selenium/firefox/driver.cr","line_number":2,"url":null},"def":{"name":"create_session","args":[{"name":"capabilities","external_name":"capabilities","restriction":"Firefox::Capabilities"}],"return_type":"Session","visibility":"Public","body":"super(capabilities)"}},{"html_id":"create_session(args:Array(String)):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"args_string":"(args : Array(String)) : Session","args_html":"(args : Array(String)) : Session","location":{"filename":"src/selenium/firefox/driver.cr","line_number":6,"url":null},"def":{"name":"create_session","args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"return_type":"Session","visibility":"Public","body":"capabilities = Firefox::Capabilities.new\ncapabilities.firefox_options.args = args\ncreate_session(capabilities)\n"}}]},{"html_id":"selenium/Selenium/Firefox/Service","path":"Selenium/Firefox/Service.html","kind":"class","full_name":"Selenium::Firefox::Service","name":"Service","abstract":false,"superclass":{"html_id":"selenium/Selenium/Service","kind":"class","full_name":"Selenium::Service","name":"Service"},"ancestors":[{"html_id":"selenium/Selenium/Service","kind":"class","full_name":"Selenium::Service","name":"Service"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/firefox/service.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Firefox","kind":"module","full_name":"Selenium::Firefox","name":"Firefox"},"instance_methods":[{"html_id":"default_port:Int32-instance-method","name":"default_port","abstract":false,"location":{"filename":"src/selenium/firefox/service.cr","line_number":2,"url":null},"def":{"name":"default_port","return_type":"Int32","visibility":"Public","body":"4444"}},{"html_id":"stop-instance-method","name":"stop","abstract":false,"location":{"filename":"src/selenium/firefox/service.cr","line_number":6,"url":null},"def":{"name":"stop","visibility":"Public","body":"stop_process(process)"}}]}]},{"html_id":"selenium/Selenium/Helpers","path":"Selenium/Helpers.html","kind":"module","full_name":"Selenium::Helpers","name":"Helpers","abstract":false,"locations":[{"filename":"src/selenium/helpers/select.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"types":[{"html_id":"selenium/Selenium/Helpers/Select","path":"Selenium/Helpers/Select.html","kind":"class","full_name":"Selenium::Helpers::Select","name":"Select","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/helpers/select.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Helpers","kind":"module","full_name":"Selenium::Helpers","name":"Helpers"},"class_methods":[{"html_id":"from_element(element)-class-method","name":"from_element","abstract":false,"args":[{"name":"element","external_name":"element","restriction":""}],"args_string":"(element)","args_html":"(element)","location":{"filename":"src/selenium/helpers/select.cr","line_number":2,"url":null},"def":{"name":"from_element","args":[{"name":"element","external_name":"element","restriction":""}],"visibility":"Public","body":"tag_name = element.tag_name\nif tag_name == \"select\"\nelse\n raise(InvalidTagError.new(expected: \"select\", got: tag_name))\nend\nnew(element)\n"}}],"instance_methods":[{"html_id":"deselect_all-instance-method","name":"deselect_all","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":39,"url":null},"def":{"name":"deselect_all","visibility":"Public","body":"if multiple?\nelse\n raise(UnsupportedOperationError.new(\"you may only deselect multiple options in a multi-select\"))\nend\noptions.each do |option|\n deselect_option(option)\nend\n"}},{"html_id":"deselect_by_value(value)-instance-method","name":"deselect_by_value","abstract":false,"args":[{"name":"value","external_name":"value","restriction":""}],"args_string":"(value)","args_html":"(value)","location":{"filename":"src/selenium/helpers/select.cr","line_number":29,"url":null},"def":{"name":"deselect_by_value","args":[{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"deselect_option(find_option_by_value(value))"}},{"html_id":"multiple?:Bool-instance-method","name":"multiple?","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":10,"url":null},"def":{"name":"multiple?","return_type":"Bool","visibility":"Public","body":"@multiple"}},{"html_id":"options-instance-method","name":"options","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":17,"url":null},"def":{"name":"options","visibility":"Public","body":"element.find_child_elements(LocationStrategy::TAG_NAME, \"option\")"}},{"html_id":"select_all-instance-method","name":"select_all","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":33,"url":null},"def":{"name":"select_all","visibility":"Public","body":"if multiple?\nelse\n raise(UnsupportedOperationError.new(\"you may only select multiple options in a multi-select\"))\nend\noptions.each do |option|\n select_option(option)\nend\n"}},{"html_id":"select_by_value(value)-instance-method","name":"select_by_value","abstract":false,"args":[{"name":"value","external_name":"value","restriction":""}],"args_string":"(value)","args_html":"(value)","location":{"filename":"src/selenium/helpers/select.cr","line_number":25,"url":null},"def":{"name":"select_by_value","args":[{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"select_option(find_option_by_value(value))"}},{"html_id":"selected_options-instance-method","name":"selected_options","abstract":false,"location":{"filename":"src/selenium/helpers/select.cr","line_number":21,"url":null},"def":{"name":"selected_options","visibility":"Public","body":"options.select(&.selected?)"}}]},{"html_id":"selenium/Selenium/Helpers/Wait","path":"Selenium/Helpers/Wait.html","kind":"class","full_name":"Selenium::Helpers::Wait","name":"Wait","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/helpers/wait.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Helpers","kind":"module","full_name":"Selenium::Helpers","name":"Helpers"},"constructors":[{"html_id":"new(timeout:Time::Span=5.seconds,interval:Time::Span=0.2.seconds,ignored:Array(Exception)|Array(::Selenium::Error.class)=[Selenium::Error],message:String|Nil=nil)-class-method","name":"new","doc":"Create a new `Wait` instance.\n\n`timeout` - seconds to wait before timing out\n`interval` - seconds to sleep between polls\n`message` - exception mesage if timed out\n`ignored` - exceptions to ignore while polling","summary":"Create a new Wait
instance.
Wait until the given block returns a true
value.
TODO write test once it is understood: - how to know/acquire the frame id - what a frame is - what switching frames will do
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":""}],"args_string":"(id)","args_html":"(id)","location":{"filename":"src/selenium/session.cr","line_number":120,"url":null},"def":{"name":"switch_to_frame","args":[{"name":"id","external_name":"id","restriction":""}],"visibility":"Public","body":"parameters = {id: id}\ncommand_handler.execute(:switch_to_frame, path_variables, parameters)\n"}},{"html_id":"switch_to_parent_frame-instance-method","name":"switch_to_parent_frame","doc":"TODO: reference switch_to_frame","summary":"TODO reference switch_to_frame
","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":126,"url":null},"def":{"name":"switch_to_parent_frame","visibility":"Public","body":"command_handler.execute(:switch_to_parent_frame, path_variables)"}},{"html_id":"timeouts-instance-method","name":"timeouts","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":98,"url":null},"def":{"name":"timeouts","visibility":"Public","body":"data = command_handler.execute(:get_timeouts, path_variables)\nTimeoutConfiguration.from_json(data[\"value\"].to_json)\n"}},{"html_id":"title-instance-method","name":"title","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":88,"url":null},"def":{"name":"title","visibility":"Public","body":"data = command_handler.execute(:get_title, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"window_manager-instance-method","name":"window_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":9,"url":null},"def":{"name":"window_manager","visibility":"Public","body":"WindowManager.new(command_handler, id)"}}]},{"html_id":"selenium/Selenium/SessionId","path":"Selenium/SessionId.html","kind":"alias","full_name":"Selenium::SessionId","name":"SessionId","abstract":false,"locations":[{"filename":"src/selenium/types.cr","line_number":2,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":true,"aliased":"String","aliased_html":"String","const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/Status","path":"Selenium/Status.html","kind":"class","full_name":"Selenium::Status","name":"Status","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/status.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/status.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"message:String-instance-method","name":"message","abstract":false,"location":{"filename":"src/selenium/status.cr","line_number":5,"url":null},"def":{"name":"message","return_type":"String","visibility":"Public","body":"@message"}},{"html_id":"message=(message:String)-instance-method","name":"message=","abstract":false,"args":[{"name":"message","external_name":"message","restriction":"String"}],"args_string":"(message : String)","args_html":"(message : String)","location":{"filename":"src/selenium/status.cr","line_number":5,"url":null},"def":{"name":"message=","args":[{"name":"message","external_name":"message","restriction":"String"}],"visibility":"Public","body":"@message = message"}},{"html_id":"ready=(ready:Bool)-instance-method","name":"ready=","abstract":false,"args":[{"name":"ready","external_name":"ready","restriction":"Bool"}],"args_string":"(ready : Bool)","args_html":"(ready : Bool)","location":{"filename":"src/selenium/status.cr","line_number":4,"url":null},"def":{"name":"ready=","args":[{"name":"ready","external_name":"ready","restriction":"Bool"}],"visibility":"Public","body":"@ready = ready"}},{"html_id":"ready?:Bool-instance-method","name":"ready?","abstract":false,"location":{"filename":"src/selenium/status.cr","line_number":4,"url":null},"def":{"name":"ready?","return_type":"Bool","visibility":"Public","body":"@ready"}}]},{"html_id":"selenium/Selenium/TimeoutConfiguration","path":"Selenium/TimeoutConfiguration.html","kind":"class","full_name":"Selenium::TimeoutConfiguration","name":"TimeoutConfiguration","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/timeout_configuration.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/timeout_configuration.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new(script:Int32|Nil=nil,page_load:Int32|Nil=nil,implicit:Int32|Nil=nil)-class-method","name":"new","abstract":false,"args":[{"name":"script","default_value":"nil","external_name":"script","restriction":"::Int32 | ::Nil"},{"name":"page_load","default_value":"nil","external_name":"page_load","restriction":"::Int32 | ::Nil"},{"name":"implicit","default_value":"nil","external_name":"implicit","restriction":"::Int32 | ::Nil"}],"args_string":"(script : Int32 | Nil = nil, page_load : Int32 | Nil = nil, implicit : Int32 | Nil = nil)","args_html":"(script : Int32 | Nil = nil, page_load : Int32 | Nil = nil, implicit : Int32 | Nil = nil)","location":{"filename":"src/selenium/timeout_configuration.cr","line_number":11,"url":null},"def":{"name":"new","args":[{"name":"script","default_value":"nil","external_name":"script","restriction":"::Int32 | ::Nil"},{"name":"page_load","default_value":"nil","external_name":"page_load","restriction":"::Int32 | ::Nil"},{"name":"implicit","default_value":"nil","external_name":"implicit","restriction":"::Int32 | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(script, page_load, implicit)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"implicit:Int32|Nil-instance-method","name":"implicit","abstract":false,"location":{"filename":"src/selenium/timeout_configuration.cr","line_number":9,"url":null},"def":{"name":"implicit","return_type":"Int32 | ::Nil","visibility":"Public","body":"@implicit"}},{"html_id":"page_load:Int32|Nil-instance-method","name":"page_load","abstract":false,"location":{"filename":"src/selenium/timeout_configuration.cr","line_number":8,"url":null},"def":{"name":"page_load","return_type":"Int32 | ::Nil","visibility":"Public","body":"@page_load"}},{"html_id":"script:Int32|Nil-instance-method","name":"script","abstract":false,"location":{"filename":"src/selenium/timeout_configuration.cr","line_number":5,"url":null},"def":{"name":"script","return_type":"Int32 | ::Nil","visibility":"Public","body":"@script"}}]},{"html_id":"selenium/Selenium/UnsupportedOperationError","path":"Selenium/UnsupportedOperationError.html","kind":"class","full_name":"Selenium::UnsupportedOperationError","name":"UnsupportedOperationError","abstract":false,"superclass":{"html_id":"selenium/Selenium/BaseError","kind":"class","full_name":"Selenium::BaseError","name":"BaseError"},"ancestors":[{"html_id":"selenium/Selenium/BaseError","kind":"class","full_name":"Selenium::BaseError","name":"BaseError"},{"html_id":"selenium/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/errors.cr","line_number":11,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/WebStorageManager","path":"Selenium/WebStorageManager.html","kind":"class","full_name":"Selenium::WebStorageManager","name":"WebStorageManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/web_storage_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(document_manager:Selenium::DocumentManager,storage:StorageType=StorageType::LocalStorage)-class-method","name":"new","abstract":false,"args":[{"name":"document_manager","external_name":"document_manager","restriction":"::Selenium::DocumentManager"},{"name":"storage","default_value":"StorageType::LocalStorage","external_name":"storage","restriction":"StorageType"}],"args_string":"(document_manager : Selenium::DocumentManager, storage : StorageType = StorageType::LocalStorage)","args_html":"(document_manager : Selenium::DocumentManager, storage : StorageType = StorageType::LocalStorage)","location":{"filename":"src/selenium/web_storage_manager.cr","line_number":11,"url":null},"def":{"name":"new","args":[{"name":"document_manager","external_name":"document_manager","restriction":"::Selenium::DocumentManager"},{"name":"storage","default_value":"StorageType::LocalStorage","external_name":"storage","restriction":"StorageType"}],"visibility":"Public","body":"_ = allocate\n_.initialize(document_manager, storage)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"clear-instance-method","name":"clear","doc":"Clear all items from the Storage","summary":"Clear all items from the Storage
","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":15,"url":null},"def":{"name":"clear","visibility":"Public","body":"document_manager.execute_script(\"#{storage_type_in_js}.clear()\")"}},{"html_id":"document_manager:DocumentManager-instance-method","name":"document_manager","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":7,"url":null},"def":{"name":"document_manager","return_type":"DocumentManager","visibility":"Public","body":"@document_manager"}},{"html_id":"item(name:String,value=nil):String|Nil-instance-method","name":"item","doc":"Retrieve and insert item from/into the Storage.\nIf no value is given, it will return the item specified in `name`.\nFor a given `value`, it will be added or updated for the item specified in `name`.","summary":"Retrieve and insert item from/into the Storage.
","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"value","default_value":"nil","external_name":"value","restriction":""}],"args_string":"(name : String, value = nil) : String | Nil","args_html":"(name : String, value = nil) : String | Nil","location":{"filename":"src/selenium/web_storage_manager.cr","line_number":22,"url":null},"def":{"name":"item","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"value","default_value":"nil","external_name":"value","restriction":""}],"return_type":"String | Nil","visibility":"Public","body":"if value.nil?\n document_manager.execute_script(\"return #{storage_type_in_js}.getItem('#{name}')\")\nelse\n document_manager.execute_script(\"#{storage_type_in_js}.setItem('#{name}', '#{value}')\")\nend"}},{"html_id":"keys:JSON::Any-instance-method","name":"keys","doc":"Retrieve the list of keys from the Storage","summary":"Retrieve the list of keys from the Storage
","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":31,"url":null},"def":{"name":"keys","return_type":"JSON::Any","visibility":"Public","body":"str = document_manager.execute_script(\"return Object.keys(#{storage_type_in_js})\")\nJSON.parse(str)\n"}},{"html_id":"remove(name:String)-instance-method","name":"remove","doc":"Remove the item specified in `name` from the Storage","summary":"Remove the item specified in name
from the Storage
Retrieve the number of items in the Storage
","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":42,"url":null},"def":{"name":"size","return_type":"Int","visibility":"Public","body":"(document_manager.execute_script(\"return #{storage_type_in_js}.length\")).to_i"}}],"macros":[{"html_id":"method_missing(call)-macro","name":"method_missing","abstract":false,"args":[{"name":"call","external_name":"call","restriction":""}],"args_string":"(call)","args_html":"(call)","location":{"filename":"src/selenium/web_storage_manager.cr","line_number":9,"url":null},"def":{"name":"method_missing","args":[{"name":"call","external_name":"call","restriction":""}],"visibility":"Public","body":" @document_manager.\n{{ call }}\n\n \n"}}],"types":[{"html_id":"selenium/Selenium/WebStorageManager/StorageType","path":"Selenium/WebStorageManager/StorageType.html","kind":"enum","full_name":"Selenium::WebStorageManager::StorageType","name":"StorageType","abstract":false,"ancestors":[{"html_id":"selenium/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"selenium/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"selenium/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/web_storage_manager.cr","line_number":2,"url":null}],"repository_name":"selenium","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"LocalStorage","name":"LocalStorage","value":"0"},{"id":"SessionStorage","name":"SessionStorage","value":"1"}],"namespace":{"html_id":"selenium/Selenium/WebStorageManager","kind":"class","full_name":"Selenium::WebStorageManager","name":"WebStorageManager"},"instance_methods":[{"html_id":"local_storage?-instance-method","name":"local_storage?","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":3,"url":null},"def":{"name":"local_storage?","visibility":"Public","body":"self == LocalStorage"}},{"html_id":"session_storage?-instance-method","name":"session_storage?","abstract":false,"location":{"filename":"src/selenium/web_storage_manager.cr","line_number":4,"url":null},"def":{"name":"session_storage?","visibility":"Public","body":"self == SessionStorage"}}]}]},{"html_id":"selenium/Selenium/WindowHandle","path":"Selenium/WindowHandle.html","kind":"alias","full_name":"Selenium::WindowHandle","name":"WindowHandle","abstract":false,"locations":[{"filename":"src/selenium/types.cr","line_number":3,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":true,"aliased":"String","aliased_html":"String","const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"}},{"html_id":"selenium/Selenium/WindowManager","path":"Selenium/WindowManager.html","kind":"class","full_name":"Selenium::WindowManager","name":"WindowManager","abstract":false,"superclass":{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"selenium/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/window_manager.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String)-class-method","name":"new","abstract":false,"args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String)","location":{"filename":"src/selenium/window_manager.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"session_id","external_name":"session_id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"close_window-instance-method","name":"close_window","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":68,"url":null},"def":{"name":"close_window","visibility":"Public","body":"command_handler.execute(:close_window, path_variables)"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"fullscreen-instance-method","name":"fullscreen","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":8,"url":null},"def":{"name":"fullscreen","visibility":"Public","body":"data = command_handler.execute(:fullscreen_window, path_variables)\nWindowRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"maximize-instance-method","name":"maximize","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":13,"url":null},"def":{"name":"maximize","visibility":"Public","body":"data = command_handler.execute(:maximize_window, path_variables)\nWindowRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"minimize-instance-method","name":"minimize","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":18,"url":null},"def":{"name":"minimize","visibility":"Public","body":"data = command_handler.execute(:minimize_window, path_variables)\nWindowRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"new_window(type:Symbol=:tab)-instance-method","name":"new_window","abstract":false,"args":[{"name":"type","default_value":":tab","external_name":"type","restriction":"Symbol"}],"args_string":"(type : Symbol = :tab)","args_html":"(type : Symbol = :tab)","location":{"filename":"src/selenium/window_manager.cr","line_number":33,"url":null},"def":{"name":"new_window","args":[{"name":"type","default_value":":tab","external_name":"type","restriction":"Symbol"}],"visibility":"Public","body":"parameters = {type: type}\ndata = command_handler.execute(:new_window, path_variables, parameters)\n(data.dig(\"value\", \"handle\")).as_s\n"}},{"html_id":"resize_window(width:Int64|Nil=nil,height:Int64|Nil=nil)-instance-method","name":"resize_window","abstract":false,"args":[{"name":"width","default_value":"nil","external_name":"width","restriction":"Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"Int64 | ::Nil"}],"args_string":"(width : Int64 | Nil = nil, height : Int64 | Nil = nil)","args_html":"(width : Int64 | Nil = nil, height : Int64 | Nil = nil)","location":{"filename":"src/selenium/window_manager.cr","line_number":59,"url":null},"def":{"name":"resize_window","args":[{"name":"width","default_value":"nil","external_name":"width","restriction":"Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"set_window_rect(width, height)"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}},{"html_id":"set_window_rect(width:Int64|Nil=nil,height:Int64|Nil=nil,x:Int64|Nil=nil,y:Int64|Nil=nil):WindowRect-instance-method","name":"set_window_rect","abstract":false,"args":[{"name":"width","default_value":"nil","external_name":"width","restriction":"Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"Int64 | ::Nil"},{"name":"x","default_value":"nil","external_name":"x","restriction":"Int64 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"Int64 | ::Nil"}],"args_string":"(width : Int64 | Nil = nil, height : Int64 | Nil = nil, x : Int64 | Nil = nil, y : Int64 | Nil = nil) : WindowRect","args_html":"(width : Int64 | Nil = nil, height : Int64 | Nil = nil, x : Int64 | Nil = nil, y : Int64 | Nil = nil) : WindowRect","location":{"filename":"src/selenium/window_manager.cr","line_number":49,"url":null},"def":{"name":"set_window_rect","args":[{"name":"width","default_value":"nil","external_name":"width","restriction":"Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"Int64 | ::Nil"},{"name":"x","default_value":"nil","external_name":"x","restriction":"Int64 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"Int64 | ::Nil"}],"return_type":"WindowRect","visibility":"Public","body":"window_rect = WindowRect.new(width: width, height: height, x: x, y: y)\nset_window_rect(window_rect)\n"}},{"html_id":"set_window_rect(window_rect)-instance-method","name":"set_window_rect","abstract":false,"args":[{"name":"window_rect","external_name":"window_rect","restriction":""}],"args_string":"(window_rect)","args_html":"(window_rect)","location":{"filename":"src/selenium/window_manager.cr","line_number":43,"url":null},"def":{"name":"set_window_rect","args":[{"name":"window_rect","external_name":"window_rect","restriction":""}],"visibility":"Public","body":"parameters = window_rect\ndata = command_handler.execute(:set_window_rect, path_variables, parameters)\nWindowRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"switch_to_window(window_handle)-instance-method","name":"switch_to_window","abstract":false,"args":[{"name":"window_handle","external_name":"window_handle","restriction":""}],"args_string":"(window_handle)","args_html":"(window_handle)","location":{"filename":"src/selenium/window_manager.cr","line_number":39,"url":null},"def":{"name":"switch_to_window","args":[{"name":"window_handle","external_name":"window_handle","restriction":""}],"visibility":"Public","body":"command_handler.execute(:switch_to_window, path_variables, {handle: window_handle})"}},{"html_id":"window_handle-instance-method","name":"window_handle","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":23,"url":null},"def":{"name":"window_handle","visibility":"Public","body":"data = command_handler.execute(:get_window_handle, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"window_handles-instance-method","name":"window_handles","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":28,"url":null},"def":{"name":"window_handles","visibility":"Public","body":"data = command_handler.execute(:get_window_handles, path_variables)\ndata[\"value\"].as_a.map(&.as_s)\n"}},{"html_id":"window_rect-instance-method","name":"window_rect","abstract":false,"location":{"filename":"src/selenium/window_manager.cr","line_number":63,"url":null},"def":{"name":"window_rect","visibility":"Public","body":"data = command_handler.execute(:get_window_rect, path_variables)\nWindowRect.from_json(data[\"value\"].to_json)\n"}}]},{"html_id":"selenium/Selenium/WindowRect","path":"Selenium/WindowRect.html","kind":"struct","full_name":"Selenium::WindowRect","name":"WindowRect","abstract":false,"superclass":{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"selenium/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"selenium/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"selenium/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/selenium/window_rect.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"selenium/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/selenium/window_rect.cr","line_number":2,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"html_id":"new(x:Int64|Nil=nil,y:Int64|Nil=nil,width:Int64|Nil=nil,height:Int64|Nil=nil)-class-method","name":"new","abstract":false,"args":[{"name":"x","default_value":"nil","external_name":"x","restriction":"::Int64 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"::Int64 | ::Nil"},{"name":"width","default_value":"nil","external_name":"width","restriction":"::Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"::Int64 | ::Nil"}],"args_string":"(x : Int64 | Nil = nil, y : Int64 | Nil = nil, width : Int64 | Nil = nil, height : Int64 | Nil = nil)","args_html":"(x : Int64 | Nil = nil, y : Int64 | Nil = nil, width : Int64 | Nil = nil, height : Int64 | Nil = nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":9,"url":null},"def":{"name":"new","args":[{"name":"x","default_value":"nil","external_name":"x","restriction":"::Int64 | ::Nil"},{"name":"y","default_value":"nil","external_name":"y","restriction":"::Int64 | ::Nil"},{"name":"width","default_value":"nil","external_name":"width","restriction":"::Int64 | ::Nil"},{"name":"height","default_value":"nil","external_name":"height","restriction":"::Int64 | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(x, y, width, height)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"height:Int64|Nil-instance-method","name":"height","abstract":false,"location":{"filename":"src/selenium/window_rect.cr","line_number":7,"url":null},"def":{"name":"height","return_type":"Int64 | ::Nil","visibility":"Public","body":"@height"}},{"html_id":"height=(height:Int64|Nil)-instance-method","name":"height=","abstract":false,"args":[{"name":"height","external_name":"height","restriction":"Int64 | ::Nil"}],"args_string":"(height : Int64 | Nil)","args_html":"(height : Int64 | Nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":7,"url":null},"def":{"name":"height=","args":[{"name":"height","external_name":"height","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@height = height"}},{"html_id":"width:Int64|Nil-instance-method","name":"width","abstract":false,"location":{"filename":"src/selenium/window_rect.cr","line_number":6,"url":null},"def":{"name":"width","return_type":"Int64 | ::Nil","visibility":"Public","body":"@width"}},{"html_id":"width=(width:Int64|Nil)-instance-method","name":"width=","abstract":false,"args":[{"name":"width","external_name":"width","restriction":"Int64 | ::Nil"}],"args_string":"(width : Int64 | Nil)","args_html":"(width : Int64 | Nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":6,"url":null},"def":{"name":"width=","args":[{"name":"width","external_name":"width","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@width = width"}},{"html_id":"x:Int64|Nil-instance-method","name":"x","abstract":false,"location":{"filename":"src/selenium/window_rect.cr","line_number":4,"url":null},"def":{"name":"x","return_type":"Int64 | ::Nil","visibility":"Public","body":"@x"}},{"html_id":"x=(x:Int64|Nil)-instance-method","name":"x=","abstract":false,"args":[{"name":"x","external_name":"x","restriction":"Int64 | ::Nil"}],"args_string":"(x : Int64 | Nil)","args_html":"(x : Int64 | Nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":4,"url":null},"def":{"name":"x=","args":[{"name":"x","external_name":"x","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@x = x"}},{"html_id":"y:Int64|Nil-instance-method","name":"y","abstract":false,"location":{"filename":"src/selenium/window_rect.cr","line_number":5,"url":null},"def":{"name":"y","return_type":"Int64 | ::Nil","visibility":"Public","body":"@y"}},{"html_id":"y=(y:Int64|Nil)-instance-method","name":"y=","abstract":false,"args":[{"name":"y","external_name":"y","restriction":"Int64 | ::Nil"}],"args_string":"(y : Int64 | Nil)","args_html":"(y : Int64 | Nil)","location":{"filename":"src/selenium/window_rect.cr","line_number":5,"url":null},"def":{"name":"y=","args":[{"name":"y","external_name":"y","restriction":"Int64 | ::Nil"}],"visibility":"Public","body":"@y = y"}}]}]}]}}) \ No newline at end of file