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 @@ - selenium 0.11.0 + selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium.html b/Selenium.html index 75de27d..40645cb 100644 --- a/Selenium.html +++ b/Selenium.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium - selenium 0.11.0 + Selenium - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 @@ -456,7 +456,7 @@

- VERSION = "0.11.0" + VERSION = "0.12.0"
diff --git a/Selenium/Action.html b/Selenium/Action.html index dda5ab8..c3c381e 100644 --- a/Selenium/Action.html +++ b/Selenium/Action.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Action - selenium 0.11.0 + Selenium::Action - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/ActionSequence.html b/Selenium/ActionSequence.html index 19e7327..dd83224 100644 --- a/Selenium/ActionSequence.html +++ b/Selenium/ActionSequence.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::ActionSequence - selenium 0.11.0 + Selenium::ActionSequence - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/AlertManager.html b/Selenium/AlertManager.html index 89e5d08..988efd6 100644 --- a/Selenium/AlertManager.html +++ b/Selenium/AlertManager.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::AlertManager - selenium 0.11.0 + Selenium::AlertManager - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/BaseError.html b/Selenium/BaseError.html index bc2400f..5253643 100644 --- a/Selenium/BaseError.html +++ b/Selenium/BaseError.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::BaseError - selenium 0.11.0 + Selenium::BaseError - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Capabilities.html b/Selenium/Capabilities.html index 138a0eb..183ae5c 100644 --- a/Selenium/Capabilities.html +++ b/Selenium/Capabilities.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Capabilities - selenium 0.11.0 + Selenium::Capabilities - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Capabilities/ProxyConfiguration.html b/Selenium/Capabilities/ProxyConfiguration.html index d254ea1..37c8946 100644 --- a/Selenium/Capabilities/ProxyConfiguration.html +++ b/Selenium/Capabilities/ProxyConfiguration.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Capabilities::ProxyConfiguration - selenium 0.11.0 + Selenium::Capabilities::ProxyConfiguration - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Chrome.html b/Selenium/Chrome.html index 3fc8e57..759423b 100644 --- a/Selenium/Chrome.html +++ b/Selenium/Chrome.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Chrome - selenium 0.11.0 + Selenium::Chrome - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Chrome/Capabilities.html b/Selenium/Chrome/Capabilities.html index 12e0479..5111263 100644 --- a/Selenium/Chrome/Capabilities.html +++ b/Selenium/Chrome/Capabilities.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Chrome::Capabilities - selenium 0.11.0 + Selenium::Chrome::Capabilities - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Chrome/Capabilities/ChromeOptions.html b/Selenium/Chrome/Capabilities/ChromeOptions.html index 02a1b01..f0b3ad1 100644 --- a/Selenium/Chrome/Capabilities/ChromeOptions.html +++ b/Selenium/Chrome/Capabilities/ChromeOptions.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Chrome::Capabilities::ChromeOptions - selenium 0.11.0 + Selenium::Chrome::Capabilities::ChromeOptions - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Chrome/Driver.html b/Selenium/Chrome/Driver.html index cb88ff3..cb50c13 100644 --- a/Selenium/Chrome/Driver.html +++ b/Selenium/Chrome/Driver.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Chrome::Driver - selenium 0.11.0 + Selenium::Chrome::Driver - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Chrome/Service.html b/Selenium/Chrome/Service.html index 39dc2e3..10b5883 100644 --- a/Selenium/Chrome/Service.html +++ b/Selenium/Chrome/Service.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Chrome::Service - selenium 0.11.0 + Selenium::Chrome::Service - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/CommandHandler.html b/Selenium/CommandHandler.html index 7650308..119d84a 100644 --- a/Selenium/CommandHandler.html +++ b/Selenium/CommandHandler.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::CommandHandler - selenium 0.11.0 + Selenium::CommandHandler - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Cookie.html b/Selenium/Cookie.html index 4eb0587..26ce7b1 100644 --- a/Selenium/Cookie.html +++ b/Selenium/Cookie.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Cookie - selenium 0.11.0 + Selenium::Cookie - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/CookieManager.html b/Selenium/CookieManager.html index 18227d9..3fa7e5c 100644 --- a/Selenium/CookieManager.html +++ b/Selenium/CookieManager.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::CookieManager - selenium 0.11.0 + Selenium::CookieManager - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Coordinate.html b/Selenium/Coordinate.html index 10fb941..14be651 100644 --- a/Selenium/Coordinate.html +++ b/Selenium/Coordinate.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Coordinate - selenium 0.11.0 + Selenium::Coordinate - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/DefaultCommands.html b/Selenium/DefaultCommands.html index 863c124..42816a5 100644 --- a/Selenium/DefaultCommands.html +++ b/Selenium/DefaultCommands.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::DefaultCommands - selenium 0.11.0 + Selenium::DefaultCommands - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/DocumentManager.html b/Selenium/DocumentManager.html index a440c31..850164a 100644 --- a/Selenium/DocumentManager.html +++ b/Selenium/DocumentManager.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::DocumentManager - selenium 0.11.0 + Selenium::DocumentManager - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Driver.html b/Selenium/Driver.html index 895de6b..6435981 100644 --- a/Selenium/Driver.html +++ b/Selenium/Driver.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Driver - selenium 0.11.0 + Selenium::Driver - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Element.html b/Selenium/Element.html index e202c57..a1eb1ad 100644 --- a/Selenium/Element.html +++ b/Selenium/Element.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Element - selenium 0.11.0 + Selenium::Element - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/ElementId.html b/Selenium/ElementId.html index 989491d..d5adcf6 100644 --- a/Selenium/ElementId.html +++ b/Selenium/ElementId.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::ElementId - selenium 0.11.0 + Selenium::ElementId - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/ElementRect.html b/Selenium/ElementRect.html index 53c4a81..b3d8d15 100644 --- a/Selenium/ElementRect.html +++ b/Selenium/ElementRect.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::ElementRect - selenium 0.11.0 + Selenium::ElementRect - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Error.html b/Selenium/Error.html index f1d2434..d53a758 100644 --- a/Selenium/Error.html +++ b/Selenium/Error.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Error - selenium 0.11.0 + Selenium::Error - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Error/InternalData.html b/Selenium/Error/InternalData.html index 24ef06e..0015217 100644 --- a/Selenium/Error/InternalData.html +++ b/Selenium/Error/InternalData.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Error::InternalData - selenium 0.11.0 + Selenium::Error::InternalData - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Firefox.html b/Selenium/Firefox.html index b82db7e..be9a6f8 100644 --- a/Selenium/Firefox.html +++ b/Selenium/Firefox.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Firefox - selenium 0.11.0 + Selenium::Firefox - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Firefox/Capabilities.html b/Selenium/Firefox/Capabilities.html index 3dc99ff..059027c 100644 --- a/Selenium/Firefox/Capabilities.html +++ b/Selenium/Firefox/Capabilities.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Firefox::Capabilities - selenium 0.11.0 + Selenium::Firefox::Capabilities - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Firefox/Capabilities/FirefoxOptions.html b/Selenium/Firefox/Capabilities/FirefoxOptions.html index 4298241..407098c 100644 --- a/Selenium/Firefox/Capabilities/FirefoxOptions.html +++ b/Selenium/Firefox/Capabilities/FirefoxOptions.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Firefox::Capabilities::FirefoxOptions - selenium 0.11.0 + Selenium::Firefox::Capabilities::FirefoxOptions - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Firefox/Driver.html b/Selenium/Firefox/Driver.html index eea9187..cb7ad42 100644 --- a/Selenium/Firefox/Driver.html +++ b/Selenium/Firefox/Driver.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Firefox::Driver - selenium 0.11.0 + Selenium::Firefox::Driver - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Firefox/Service.html b/Selenium/Firefox/Service.html index 3300178..c927d73 100644 --- a/Selenium/Firefox/Service.html +++ b/Selenium/Firefox/Service.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Firefox::Service - selenium 0.11.0 + Selenium::Firefox::Service - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Helpers.html b/Selenium/Helpers.html index 87f4f90..61167cd 100644 --- a/Selenium/Helpers.html +++ b/Selenium/Helpers.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Helpers - selenium 0.11.0 + Selenium::Helpers - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Helpers/Select.html b/Selenium/Helpers/Select.html index f40f27c..7226575 100644 --- a/Selenium/Helpers/Select.html +++ b/Selenium/Helpers/Select.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Helpers::Select - selenium 0.11.0 + Selenium::Helpers::Select - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Helpers/Wait.html b/Selenium/Helpers/Wait.html index 824d81e..5b06839 100644 --- a/Selenium/Helpers/Wait.html +++ b/Selenium/Helpers/Wait.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Helpers::Wait - selenium 0.11.0 + Selenium::Helpers::Wait - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/HttpClient.html b/Selenium/HttpClient.html index c669775..6a02509 100644 --- a/Selenium/HttpClient.html +++ b/Selenium/HttpClient.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::HttpClient - selenium 0.11.0 + Selenium::HttpClient - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/InputSourceActionSequence.html b/Selenium/InputSourceActionSequence.html index 69ac21e..5ea9589 100644 --- a/Selenium/InputSourceActionSequence.html +++ b/Selenium/InputSourceActionSequence.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::InputSourceActionSequence - selenium 0.11.0 + Selenium::InputSourceActionSequence - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/InvalidTagError.html b/Selenium/InvalidTagError.html index b89f69f..8453f82 100644 --- a/Selenium/InvalidTagError.html +++ b/Selenium/InvalidTagError.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::InvalidTagError - selenium 0.11.0 + Selenium::InvalidTagError - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/LocationStrategy.html b/Selenium/LocationStrategy.html index 9870626..8d070ff 100644 --- a/Selenium/LocationStrategy.html +++ b/Selenium/LocationStrategy.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::LocationStrategy - selenium 0.11.0 + Selenium::LocationStrategy - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/NavigationManager.html b/Selenium/NavigationManager.html index cb2e9ce..8724ab8 100644 --- a/Selenium/NavigationManager.html +++ b/Selenium/NavigationManager.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::NavigationManager - selenium 0.11.0 + Selenium::NavigationManager - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Remote.html b/Selenium/Remote.html index 192c768..dbf7749 100644 --- a/Selenium/Remote.html +++ b/Selenium/Remote.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Remote - selenium 0.11.0 + Selenium::Remote - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Remote/Driver.html b/Selenium/Remote/Driver.html index f3b3a77..90bd22a 100644 --- a/Selenium/Remote/Driver.html +++ b/Selenium/Remote/Driver.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Remote::Driver - selenium 0.11.0 + Selenium::Remote::Driver - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Safari.html b/Selenium/Safari.html index a376882..9107c94 100644 --- a/Selenium/Safari.html +++ b/Selenium/Safari.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Safari - selenium 0.11.0 + Selenium::Safari - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Safari/Capabilities.html b/Selenium/Safari/Capabilities.html index 8f2df38..a389592 100644 --- a/Selenium/Safari/Capabilities.html +++ b/Selenium/Safari/Capabilities.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Safari::Capabilities - selenium 0.11.0 + Selenium::Safari::Capabilities - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Safari/Driver.html b/Selenium/Safari/Driver.html index 4d88c96..094ad33 100644 --- a/Selenium/Safari/Driver.html +++ b/Selenium/Safari/Driver.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Safari::Driver - selenium 0.11.0 + Selenium::Safari::Driver - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Safari/Service.html b/Selenium/Safari/Service.html index fb180c6..173a81e 100644 --- a/Selenium/Safari/Service.html +++ b/Selenium/Safari/Service.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Safari::Service - selenium 0.11.0 + Selenium::Safari::Service - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/SendKeyConverter.html b/Selenium/SendKeyConverter.html index ca170c3..d62b008 100644 --- a/Selenium/SendKeyConverter.html +++ b/Selenium/SendKeyConverter.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::SendKeyConverter - selenium 0.11.0 + Selenium::SendKeyConverter - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Service.html b/Selenium/Service.html index 562db9b..b7490f6 100644 --- a/Selenium/Service.html +++ b/Selenium/Service.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Service - selenium 0.11.0 + Selenium::Service - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Session.html b/Selenium/Session.html index d5e7ce1..6a8a60d 100644 --- a/Selenium/Session.html +++ b/Selenium/Session.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Session - selenium 0.11.0 + Selenium::Session - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/SessionId.html b/Selenium/SessionId.html index b09f6da..434d083 100644 --- a/Selenium/SessionId.html +++ b/Selenium/SessionId.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::SessionId - selenium 0.11.0 + Selenium::SessionId - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/Status.html b/Selenium/Status.html index 384c70b..e040e08 100644 --- a/Selenium/Status.html +++ b/Selenium/Status.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::Status - selenium 0.11.0 + Selenium::Status - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/TimeoutConfiguration.html b/Selenium/TimeoutConfiguration.html index 64ab588..48e5b56 100644 --- a/Selenium/TimeoutConfiguration.html +++ b/Selenium/TimeoutConfiguration.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::TimeoutConfiguration - selenium 0.11.0 + Selenium::TimeoutConfiguration - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/UnsupportedOperationError.html b/Selenium/UnsupportedOperationError.html index 4e672d8..bddeec8 100644 --- a/Selenium/UnsupportedOperationError.html +++ b/Selenium/UnsupportedOperationError.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::UnsupportedOperationError - selenium 0.11.0 + Selenium::UnsupportedOperationError - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/WebStorageManager.html b/Selenium/WebStorageManager.html index be5c5dd..6368b61 100644 --- a/Selenium/WebStorageManager.html +++ b/Selenium/WebStorageManager.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::WebStorageManager - selenium 0.11.0 + Selenium::WebStorageManager - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/WebStorageManager/StorageType.html b/Selenium/WebStorageManager/StorageType.html index 2a86208..ad2c051 100644 --- a/Selenium/WebStorageManager/StorageType.html +++ b/Selenium/WebStorageManager/StorageType.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::WebStorageManager::StorageType - selenium 0.11.0 + Selenium::WebStorageManager::StorageType - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/WindowHandle.html b/Selenium/WindowHandle.html index f475e59..3107591 100644 --- a/Selenium/WindowHandle.html +++ b/Selenium/WindowHandle.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::WindowHandle - selenium 0.11.0 + Selenium::WindowHandle - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/WindowManager.html b/Selenium/WindowManager.html index 1fdd2c8..ce110a6 100644 --- a/Selenium/WindowManager.html +++ b/Selenium/WindowManager.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::WindowManager - selenium 0.11.0 + Selenium::WindowManager - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/Selenium/WindowRect.html b/Selenium/WindowRect.html index be5b9ba..d088cde 100644 --- a/Selenium/WindowRect.html +++ b/Selenium/WindowRect.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - Selenium::WindowRect - selenium 0.11.0 + Selenium::WindowRect - selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/index.html b/index.html index 6bc0308..234e656 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - selenium 0.11.0 + selenium 0.12.0 @@ -39,7 +39,7 @@

- 0.11.0 + 0.12.0 diff --git a/index.json b/index.json index b385706..fe37caa 100644 --- a/index.json +++ b/index.json @@ -1 +1 @@ -{"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 ()\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Matthew McGarvey](https://github.com/matthewmcgarvey) - creator and maintainer\n","program":{"html_id":"selenium/toplevel","path":"toplevel.html","kind":"module","full_name":"Top Level Namespace","name":"Top Level Namespace","abstract":false,"locations":[],"repository_name":"selenium","program":true,"enum":false,"alias":false,"const":false,"types":[{"html_id":"selenium/Selenium","path":"Selenium.html","kind":"module","full_name":"Selenium","name":"Selenium","abstract":false,"locations":[{"filename":"src/selenium.cr","line_number":15,"url":null},{"filename":"src/selenium/default_commands.cr","line_number":1,"url":null},{"filename":"src/selenium/errors.cr","line_number":1,"url":null},{"filename":"src/selenium/types.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"VERSION","name":"VERSION","value":"\"0.11.0\""}],"types":[{"html_id":"selenium/Selenium/Action","path":"Selenium/Action.html","kind":"class","full_name":"Selenium::Action","name":"Action","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/action.cr","line_number":3,"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"},"doc":"I want to have seperate actions for each type (pause, pointer, key)\nbut when I did that, I wasn't able to get the type union or inheritance working for some reason","summary":"

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

","class_methods":[{"html_id":"for(browser,**opts)-class-method","name":"for","doc":"*browser* options:\n- :chrome (see `Selenium::Chrome::Driver`)\n- :firefox or :gecko (see `Selenium::Firefox::Driver`)\n- :safari (see `Selenium::Safari::Driver`)\n- :remote (see `Selenium::Remote::Driver`)","summary":"

browser options: - :chrome (see Selenium::Chrome::Driver) - :firefox or :gecko (see Selenium::Firefox::Driver) - :safari (see Selenium::Safari::Driver) - :remote (see Selenium::Remote::Driver)

","abstract":false,"args":[{"name":"browser","external_name":"browser","restriction":""}],"args_string":"(browser, **opts)","args_html":"(browser, **opts)","location":{"filename":"src/selenium/driver.cr","line_number":13,"url":null},"def":{"name":"for","args":[{"name":"browser","external_name":"browser","restriction":""}],"double_splat":{"name":"opts","external_name":"opts","restriction":""},"visibility":"Public","body":"case browser\nwhen :chrome\n Chrome::Driver.new(**opts)\nwhen :firefox, :gecko\n Firefox::Driver.new(**opts)\nwhen :remote\n Remote::Driver.new(**opts)\nwhen :safari\n Safari::Driver.new(**opts)\nelse\n raise(ArgumentError.new(\"unknown driver: #{browser}\"))\nend"}}],"constructors":[{"html_id":"new(base_url:String|Nil=nil,service:Service|Nil=nil)-class-method","name":"new","abstract":false,"args":[{"name":"base_url","default_value":"nil","external_name":"base_url","restriction":"String | ::Nil"},{"name":"service","default_value":"nil","external_name":"service","restriction":"Service | ::Nil"}],"args_string":"(base_url : String | Nil = nil, service : Service | Nil = nil)","args_html":"(base_url : String | Nil = nil, service : Service | Nil = nil)","location":{"filename":"src/selenium/driver.cr","line_number":32,"url":null},"def":{"name":"new","args":[{"name":"base_url","default_value":"nil","external_name":"base_url","restriction":"String | ::Nil"},{"name":"service","default_value":"nil","external_name":"service","restriction":"Service | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(base_url, service)\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/driver.cr","line_number":29,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"create_session(args:Array(String)):Session-instance-method","name":"create_session","abstract":true,"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/driver.cr","line_number":39,"url":null},"def":{"name":"create_session","args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"return_type":"Session","visibility":"Public","body":""}},{"html_id":"create_session(capabilities,retry=true):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"capabilities","external_name":"capabilities","restriction":""},{"name":"retry","default_value":"true","external_name":"retry","restriction":""}],"args_string":"(capabilities, retry = true) : Session","args_html":"(capabilities, retry = true) : Session","location":{"filename":"src/selenium/driver.cr","line_number":41,"url":null},"def":{"name":"create_session","args":[{"name":"capabilities","external_name":"capabilities","restriction":""},{"name":"retry","default_value":"true","external_name":"retry","restriction":""}],"return_type":"Session","visibility":"Public","body":"begin\n parameters = {capabilities: {alwaysMatch: capabilities}}\n data = command_handler.execute(:new_session, parameters: parameters)\n Session.new(http_client, command_handler, (data.dig(\"value\", \"sessionId\")).as_s)\nrescue ex : Error\n if retry\n create_session(capabilities, retry: false)\n else\n raise(ex)\n end\nend"}},{"html_id":"http_client:HttpClient-instance-method","name":"http_client","abstract":false,"location":{"filename":"src/selenium/driver.cr","line_number":28,"url":null},"def":{"name":"http_client","return_type":"HttpClient","visibility":"Public","body":"@http_client"}},{"html_id":"service:Service|Nil-instance-method","name":"service","abstract":false,"location":{"filename":"src/selenium/driver.cr","line_number":30,"url":null},"def":{"name":"service","return_type":"Service | ::Nil","visibility":"Public","body":"@service"}},{"html_id":"status:Status-instance-method","name":"status","abstract":false,"location":{"filename":"src/selenium/driver.cr","line_number":54,"url":null},"def":{"name":"status","return_type":"Status","visibility":"Public","body":"data = command_handler.execute(:status)\nStatus.from_json(data[\"value\"].to_json)\n"}},{"html_id":"stop-instance-method","name":"stop","abstract":false,"location":{"filename":"src/selenium/driver.cr","line_number":60,"url":null},"def":{"name":"stop","visibility":"Public","body":"service.try(&.stop)"}}]},{"html_id":"selenium/Selenium/Element","path":"Selenium/Element.html","kind":"class","full_name":"Selenium::Element","name":"Element","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/element.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"ELEMENT_KEY","name":"ELEMENT_KEY","value":"\"element-6066-11e4-a52e-4f735466cecf\""}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String,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"},{"name":"id","external_name":"id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String, id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String, id : String)","location":{"filename":"src/selenium/element.cr","line_number":8,"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"},{"name":"id","external_name":"id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id, id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"attribute(name)-instance-method","name":"attribute","doc":"`attribute` is for referencing static fields\nif you are trying to access fields that change you should use `property`","summary":"

#attribute is for referencing static fields if you are trying to access fields that change you should use #property

","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""}],"args_string":"(name)","args_html":"(name)","location":{"filename":"src/selenium/element.cr","line_number":46,"url":null},"def":{"name":"attribute","args":[{"name":"name","external_name":"name","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:get_element_attribute, path_variables.merge({\":name\" => name}))\ndata[\"value\"].as_s?\n"}},{"html_id":"clear-instance-method","name":"clear","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":40,"url":null},"def":{"name":"clear","visibility":"Public","body":"command_handler.execute(:element_clear, path_variables)"}},{"html_id":"click-instance-method","name":"click","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":11,"url":null},"def":{"name":"click","visibility":"Public","body":"command_handler.execute(:element_click, path_variables)"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"css_value(property_name)-instance-method","name":"css_value","abstract":false,"args":[{"name":"property_name","external_name":"property_name","restriction":""}],"args_string":"(property_name)","args_html":"(property_name)","location":{"filename":"src/selenium/element.cr","line_number":56,"url":null},"def":{"name":"css_value","args":[{"name":"property_name","external_name":"property_name","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:get_element_css_value, path_variables.merge({\":property_name\" => property_name}))\ndata[\"value\"].as_s?\n"}},{"html_id":"displayed?-instance-method","name":"displayed?","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":135,"url":null},"def":{"name":"displayed?","visibility":"Public","body":"data = command_handler.execute(:is_element_displayed, path_variables)\ndata[\"value\"].as_bool\n"}},{"html_id":"enabled?-instance-method","name":"enabled?","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":123,"url":null},"def":{"name":"enabled?","visibility":"Public","body":"data = command_handler.execute(:is_element_enabled, path_variables)\ndata[\"value\"].as_bool\n"}},{"html_id":"find_child_element(using:Symbol,value)-instance-method","name":"find_child_element","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : Symbol, value)","args_html":"(using : Symbol, value)","location":{"filename":"src/selenium/element.cr","line_number":80,"url":null},"def":{"name":"find_child_element","args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"using, value = LocationStrategy.transform_extra_strategies(using, value)\nfind_child_element(LocationStrategy.from_symbol(using), value)\n"}},{"html_id":"find_child_element(using:LocationStrategy,value)-instance-method","name":"find_child_element","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : LocationStrategy, value)","args_html":"(using : LocationStrategy, value)","location":{"filename":"src/selenium/element.cr","line_number":70,"url":null},"def":{"name":"find_child_element","args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"parameters = {using: using, value: value}\ndata = command_handler.execute(:find_element_from_element, path_variables, parameters)\nentry = data[\"value\"].as_h\nElement.new(command_handler, session_id, entry.first_value.as_s)\n"}},{"html_id":"find_child_elements(using:Symbol,value)-instance-method","name":"find_child_elements","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : Symbol, value)","args_html":"(using : Symbol, value)","location":{"filename":"src/selenium/element.cr","line_number":97,"url":null},"def":{"name":"find_child_elements","args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"using, value = LocationStrategy.transform_extra_strategies(using, value)\nfind_child_elements(LocationStrategy.from_symbol(using), value)\n"}},{"html_id":"find_child_elements(using:LocationStrategy,value)-instance-method","name":"find_child_elements","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : LocationStrategy, value)","args_html":"(using : LocationStrategy, value)","location":{"filename":"src/selenium/element.cr","line_number":85,"url":null},"def":{"name":"find_child_elements","args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"parameters = {using: using, value: value}\ndata = command_handler.execute(:find_elements_from_element, path_variables, parameters)\ndata[\"value\"].as_a.map() do |__arg0|\n __arg0.as_h.first_value.as_s\nend.map do |element_id|\n Element.new(command_handler, session_id, element_id)\nend\n"}},{"html_id":"id:ElementId-instance-method","name":"id","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":4,"url":null},"def":{"name":"id","return_type":"ElementId","visibility":"Public","body":"@id"}},{"html_id":"property(name)-instance-method","name":"property","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""}],"args_string":"(name)","args_html":"(name)","location":{"filename":"src/selenium/element.cr","line_number":51,"url":null},"def":{"name":"property","args":[{"name":"name","external_name":"name","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:get_element_property, path_variables.merge({\":name\" => name}))\ndata[\"value\"].as_s?\n"}},{"html_id":"rect-instance-method","name":"rect","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":117,"url":null},"def":{"name":"rect","visibility":"Public","body":"data = command_handler.execute(:get_element_rect, path_variables)\nElementRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"screenshot(file_path:String|File)-instance-method","name":"screenshot","abstract":false,"args":[{"name":"file_path","external_name":"file_path","restriction":"String | File"}],"args_string":"(file_path : String | File)","args_html":"(file_path : String | File)","location":{"filename":"src/selenium/element.cr","line_number":112,"url":null},"def":{"name":"screenshot","args":[{"name":"file_path","external_name":"file_path","restriction":"String | File"}],"visibility":"Public","body":"data = command_handler.execute(:take_element_screenshot, path_variables)\nFile.write(file_path.to_s, Base64.decode(data[\"value\"].as_s))\n"}},{"html_id":"selected?-instance-method","name":"selected?","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":129,"url":null},"def":{"name":"selected?","visibility":"Public","body":"data = command_handler.execute(:is_element_selected, path_variables)\ndata[\"value\"].as_bool\n"}},{"html_id":"send_keys(keys:Array(String|Symbol))-instance-method","name":"send_keys","abstract":false,"args":[{"name":"keys","external_name":"keys","restriction":"Array(String | Symbol)"}],"args_string":"(keys : Array(String | Symbol))","args_html":"(keys : Array(String | Symbol))","location":{"filename":"src/selenium/element.cr","line_number":61,"url":null},"def":{"name":"send_keys","args":[{"name":"keys","external_name":"keys","restriction":"Array(String | Symbol)"}],"visibility":"Public","body":"parameters = {text: SendKeyConverter.encode(keys)}\ncommand_handler.execute(:element_send_keys, path_variables, parameters)\n"}},{"html_id":"send_keys(key:String)-instance-method","name":"send_keys","abstract":false,"args":[{"name":"key","external_name":"key","restriction":"String"}],"args_string":"(key : String)","args_html":"(key : String)","location":{"filename":"src/selenium/element.cr","line_number":66,"url":null},"def":{"name":"send_keys","args":[{"name":"key","external_name":"key","restriction":"String"}],"visibility":"Public","body":"send_keys([key])"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}},{"html_id":"submit-instance-method","name":"submit","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":15,"url":null},"def":{"name":"submit","visibility":"Public","body":"begin\n script = \"/* submitForm */ var form = arguments[0];\\nwhile (form.nodeName != \\\"FORM\\\" && form.parentNode) {\\n form = form.parentNode;\\n}\\nif (!form) { throw Error('Unable to find containing form element'); }\\nif (!form.ownerDocument) { throw Error('Unable to find owning document'); }\\nvar e = form.ownerDocument.createEvent('Event');\\ne.initEvent('submit', true, true);\\nif (form.dispatchEvent(e)) { HTMLFormElement.prototype.submit.call(form) }\"\n args = [{ELEMENT_KEY => id}]\n parameters = {script: script, args: args}\n command_handler.execute(:execute_script, path_variables, parameters)\nrescue Selenium::Error\n raise(UnsupportedOperationError.new(\"To submit an element, it must be nested inside a form element\"))\nend"}},{"html_id":"tag_name-instance-method","name":"tag_name","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":107,"url":null},"def":{"name":"tag_name","visibility":"Public","body":"data = command_handler.execute(:get_element_tag_name, path_variables)\ndata[\"value\"].as_s.downcase\n"}},{"html_id":"text-instance-method","name":"text","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":102,"url":null},"def":{"name":"text","visibility":"Public","body":"data = command_handler.execute(:get_element_text, path_variables)\ndata[\"value\"].as_s\n"}}]},{"html_id":"selenium/Selenium/ElementId","path":"Selenium/ElementId.html","kind":"alias","full_name":"Selenium::ElementId","name":"ElementId","abstract":false,"locations":[{"filename":"src/selenium/types.cr","line_number":4,"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/ElementRect","path":"Selenium/ElementRect.html","kind":"struct","full_name":"Selenium::ElementRect","name":"ElementRect","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/element_rect.cr","line_number":3,"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"},"doc":"TODO: I don't remember why I made the properties floats nor why they are nilable.\nIf they were Int64, this could be combined with `Selenium::WindowRect`","summary":"

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.

","abstract":false,"args":[{"name":"timeout","default_value":"5.seconds","external_name":"timeout","restriction":"::Time::Span"},{"name":"interval","default_value":"0.2.seconds","external_name":"interval","restriction":"::Time::Span"},{"name":"ignored","default_value":"[Selenium::Error]","external_name":"ignored","restriction":"::Array(::Exception) | ::Array(::Selenium::Error.class)"},{"name":"message","default_value":"nil","external_name":"message","restriction":"String | ::Nil"}],"args_string":"(timeout : Time::Span = 5.seconds, interval : Time::Span = 0.2.seconds, ignored : Array(Exception) | Array(::Selenium::Error.class) = [Selenium::Error], message : String | Nil = nil)","args_html":"(timeout : Time::Span = 5.seconds, interval : Time::Span = 0.2.seconds, ignored : Array(Exception) | Array(::Selenium::Error.class) = [Selenium::Error], message : String | Nil = nil)","location":{"filename":"src/selenium/helpers/wait.cr","line_number":12,"url":null},"def":{"name":"new","args":[{"name":"timeout","default_value":"5.seconds","external_name":"timeout","restriction":"::Time::Span"},{"name":"interval","default_value":"0.2.seconds","external_name":"interval","restriction":"::Time::Span"},{"name":"ignored","default_value":"[Selenium::Error]","external_name":"ignored","restriction":"::Array(::Exception) | ::Array(::Selenium::Error.class)"},{"name":"message","default_value":"nil","external_name":"message","restriction":"String | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(timeout, interval, ignored, message)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"until(&):Nil-instance-method","name":"until","doc":"Wait until the given block returns a `true` value.\nOtherwise raise an exception `IO::TimeoutError`.\n\n```\nwait = Selenium::Helpers::Wait.new(timeout: 10.seconds, interval: 1.second)\nwait.until { session.document_manager.execute_script(\"return document.readyState;\") == \"complete\" }\n```","summary":"

Wait until the given block returns a true value.

","abstract":false,"location":{"filename":"src/selenium/helpers/wait.cr","line_number":22,"url":null},"def":{"name":"until","yields":0,"block_arity":0,"return_type":"Nil","visibility":"Public","body":"end_time = current_time + @timeout\nlast_error : Exception | ::Nil = nil\nwhile !current_time > end_time\n begin\n result = yield\n if result\n return result\n end\n rescue ex\n last_error = ex\n if @ignored.includes?(ex.class)\n else\n raise(ex)\n end\n end\n sleep(@interval)\nend\nmessage = @message || \"timed out after #{@timeout.seconds} seconds\"\nif last_error\n message = message + \" (#{last_error.message})\"\nend\nraise(IO::TimeoutError.new(message))\n"}}]}]},{"html_id":"selenium/Selenium/HttpClient","path":"Selenium/HttpClient.html","kind":"class","full_name":"Selenium::HttpClient","name":"HttpClient","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/http_client.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(base_url:String)-class-method","name":"new","abstract":false,"args":[{"name":"base_url","external_name":"base_url","restriction":"::String"}],"args_string":"(base_url : String)","args_html":"(base_url : String)","location":{"filename":"src/selenium/http_client.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"base_url","external_name":"base_url","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(base_url)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base_url:String-instance-method","name":"base_url","abstract":false,"location":{"filename":"src/selenium/http_client.cr","line_number":2,"url":null},"def":{"name":"base_url","return_type":"String","visibility":"Public","body":"@base_url"}},{"html_id":"delete(path):JSON::Any-instance-method","name":"delete","abstract":false,"args":[{"name":"path","external_name":"path","restriction":""}],"args_string":"(path) : JSON::Any","args_html":"(path) : JSON::Any","location":{"filename":"src/selenium/http_client.cr","line_number":18,"url":null},"def":{"name":"delete","args":[{"name":"path","external_name":"path","restriction":""}],"return_type":"JSON::Any","visibility":"Public","body":"response = HTTP::Client.delete(base_url + path)\nparsed_response = JSON.parse(response.body)\nif has_error?(parsed_response)\n raise(Error.from_json(parsed_response[\"value\"].to_json))\nend\nparsed_response\n"}},{"html_id":"get(path):JSON::Any-instance-method","name":"get","abstract":false,"args":[{"name":"path","external_name":"path","restriction":""}],"args_string":"(path) : JSON::Any","args_html":"(path) : JSON::Any","location":{"filename":"src/selenium/http_client.cr","line_number":28,"url":null},"def":{"name":"get","args":[{"name":"path","external_name":"path","restriction":""}],"return_type":"JSON::Any","visibility":"Public","body":"response = HTTP::Client.get(base_url + path)\nparsed_response = JSON.parse(response.body)\nif has_error?(parsed_response)\n raise(Error.from_json(parsed_response[\"value\"].to_json))\nend\nparsed_response\n"}},{"html_id":"post(path,body=\"{}\"):JSON::Any-instance-method","name":"post","abstract":false,"args":[{"name":"path","external_name":"path","restriction":""},{"name":"body","default_value":"\"{}\"","external_name":"body","restriction":""}],"args_string":"(path, body = \"{}\") : JSON::Any","args_html":"(path, body = "{}") : JSON::Any","location":{"filename":"src/selenium/http_client.cr","line_number":7,"url":null},"def":{"name":"post","args":[{"name":"path","external_name":"path","restriction":""},{"name":"body","default_value":"\"{}\"","external_name":"body","restriction":""}],"return_type":"JSON::Any","visibility":"Public","body":"url = base_url + path\nresponse = HTTP::Client.post(url, body: body)\nparsed_response = JSON.parse(response.body)\nif has_error?(parsed_response)\n raise(Error.from_json(parsed_response[\"value\"].to_json))\nend\nparsed_response\n"}}]},{"html_id":"selenium/Selenium/InputSourceActionSequence","path":"Selenium/InputSourceActionSequence.html","kind":"struct","full_name":"Selenium::InputSourceActionSequence","name":"InputSourceActionSequence","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/input_source_action_sequence.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(type:String,id:String,actions:Array(Selenium::Action))-class-method","name":"new","abstract":false,"args":[{"name":"type","external_name":"type","restriction":"::String"},{"name":"id","external_name":"id","restriction":"::String"},{"name":"actions","external_name":"actions","restriction":"::Array(::Selenium::Action)"}],"args_string":"(type : String, id : String, actions : Array(Selenium::Action))","args_html":"(type : String, id : String, actions : Array(Selenium::Action))","location":{"filename":"src/selenium/input_source_action_sequence.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"type","external_name":"type","restriction":"::String"},{"name":"id","external_name":"id","restriction":"::String"},{"name":"actions","external_name":"actions","restriction":"::Array(::Selenium::Action)"}],"visibility":"Public","body":"_ = allocate\n_.initialize(type, id, actions)\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/input_source_action_sequence.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":"actions:Array(Action)-instance-method","name":"actions","abstract":false,"location":{"filename":"src/selenium/input_source_action_sequence.cr","line_number":6,"url":null},"def":{"name":"actions","return_type":"Array(Action)","visibility":"Public","body":"@actions"}},{"html_id":"id:String-instance-method","name":"id","abstract":false,"location":{"filename":"src/selenium/input_source_action_sequence.cr","line_number":5,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"type:String-instance-method","name":"type","abstract":false,"location":{"filename":"src/selenium/input_source_action_sequence.cr","line_number":4,"url":null},"def":{"name":"type","return_type":"String","visibility":"Public","body":"@type"}}]},{"html_id":"selenium/Selenium/InvalidTagError","path":"Selenium/InvalidTagError.html","kind":"class","full_name":"Selenium::InvalidTagError","name":"InvalidTagError","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":5,"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(expected:String,got:String)-class-method","name":"new","abstract":false,"args":[{"name":"expected","external_name":"expected","restriction":"String"},{"name":"got","external_name":"got","restriction":"String"}],"args_string":"(expected : String, got : String)","args_html":"(expected : String, got : String)","location":{"filename":"src/selenium/errors.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"expected","external_name":"expected","restriction":"String"},{"name":"got","external_name":"got","restriction":"String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(expected, got)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}]},{"html_id":"selenium/Selenium/LocationStrategy","path":"Selenium/LocationStrategy.html","kind":"enum","full_name":"Selenium::LocationStrategy","name":"LocationStrategy","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/location_strategy.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"CSS","name":"CSS","value":"0"},{"id":"LINK_TEXT","name":"LINK_TEXT","value":"1"},{"id":"PARTIAL_LINK_TEXT","name":"PARTIAL_LINK_TEXT","value":"2"},{"id":"TAG_NAME","name":"TAG_NAME","value":"3"},{"id":"XPATH","name":"XPATH","value":"4"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"class_methods":[{"html_id":"from_symbol(symbol)-class-method","name":"from_symbol","abstract":false,"args":[{"name":"symbol","external_name":"symbol","restriction":""}],"args_string":"(symbol)","args_html":"(symbol)","location":{"filename":"src/selenium/location_strategy.cr","line_number":23,"url":null},"def":{"name":"from_symbol","args":[{"name":"symbol","external_name":"symbol","restriction":""}],"visibility":"Public","body":"case symbol\nwhen :css\n CSS\nwhen :link_text\n LINK_TEXT\nwhen :partial_link_text\n PARTIAL_LINK_TEXT\nwhen :tag_name\n TAG_NAME\nwhen :xpath\n XPATH\nelse\n raise(ArgumentError.new(\"Unsupported location strategy: #{symbol}\"))\nend"}},{"html_id":"transform_extra_strategies(symbol:Symbol,value:String):Tuple(Symbol,String)-class-method","name":"transform_extra_strategies","abstract":false,"args":[{"name":"symbol","external_name":"symbol","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":"String"}],"args_string":"(symbol : Symbol, value : String) : Tuple(Symbol, String)","args_html":"(symbol : Symbol, value : String) : Tuple(Symbol, String)","location":{"filename":"src/selenium/location_strategy.cr","line_number":8,"url":null},"def":{"name":"transform_extra_strategies","args":[{"name":"symbol","external_name":"symbol","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":"String"}],"return_type":"::Tuple(Symbol, String)","visibility":"Public","body":"case symbol\nwhen :class\n symbol = :css\n value = \".#{value}\"\nwhen :id\n symbol = :css\n value = \"##{value}\"\nwhen :name\n symbol = :xpath\n value = \".//*[@name='#{value}']\"\nend\n{symbol, value}\n"}}],"instance_methods":[{"html_id":"css?-instance-method","name":"css?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":2,"url":null},"def":{"name":"css?","visibility":"Public","body":"self == CSS"}},{"html_id":"link_text?-instance-method","name":"link_text?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":3,"url":null},"def":{"name":"link_text?","visibility":"Public","body":"self == LINK_TEXT"}},{"html_id":"partial_link_text?-instance-method","name":"partial_link_text?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":4,"url":null},"def":{"name":"partial_link_text?","visibility":"Public","body":"self == PARTIAL_LINK_TEXT"}},{"html_id":"tag_name?-instance-method","name":"tag_name?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":5,"url":null},"def":{"name":"tag_name?","visibility":"Public","body":"self == TAG_NAME"}},{"html_id":"to_json(builder)-instance-method","name":"to_json","abstract":false,"args":[{"name":"builder","external_name":"builder","restriction":""}],"args_string":"(builder)","args_html":"(builder)","location":{"filename":"src/selenium/location_strategy.cr","line_number":40,"url":null},"def":{"name":"to_json","args":[{"name":"builder","external_name":"builder","restriction":""}],"visibility":"Public","body":"builder.string(convert_to_string)"}},{"html_id":"xpath?-instance-method","name":"xpath?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":6,"url":null},"def":{"name":"xpath?","visibility":"Public","body":"self == XPATH"}}]},{"html_id":"selenium/Selenium/NavigationManager","path":"Selenium/NavigationManager.html","kind":"class","full_name":"Selenium::NavigationManager","name":"NavigationManager","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/navigation_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/navigation_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/navigation_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"go_back-instance-method","name":"go_back","abstract":false,"location":{"filename":"src/selenium/navigation_manager.cr","line_number":8,"url":null},"def":{"name":"go_back","visibility":"Public","body":"command_handler.execute(:back, path_variables)"}},{"html_id":"go_forward-instance-method","name":"go_forward","abstract":false,"location":{"filename":"src/selenium/navigation_manager.cr","line_number":12,"url":null},"def":{"name":"go_forward","visibility":"Public","body":"command_handler.execute(:forward, path_variables)"}},{"html_id":"refresh-instance-method","name":"refresh","abstract":false,"location":{"filename":"src/selenium/navigation_manager.cr","line_number":16,"url":null},"def":{"name":"refresh","visibility":"Public","body":"command_handler.execute(:refresh, path_variables)"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/navigation_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}}]},{"html_id":"selenium/Selenium/Remote","path":"Selenium/Remote.html","kind":"module","full_name":"Selenium::Remote","name":"Remote","abstract":false,"locations":[{"filename":"src/selenium/remote/driver.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/Remote/Driver","path":"Selenium/Remote/Driver.html","kind":"class","full_name":"Selenium::Remote::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/remote/driver.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Remote","kind":"module","full_name":"Selenium::Remote","name":"Remote"},"instance_methods":[{"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/remote/driver.cr","line_number":2,"url":null},"def":{"name":"create_session","args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"return_type":"Session","visibility":"Public","body":"create_session(Selenium::Capabilities.new)"}}]}]},{"html_id":"selenium/Selenium/Safari","path":"Selenium/Safari.html","kind":"module","full_name":"Selenium::Safari","name":"Safari","abstract":false,"locations":[{"filename":"src/selenium/safari/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/Safari/Capabilities","path":"Selenium/Safari/Capabilities.html","kind":"class","full_name":"Selenium::Safari::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/safari/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Safari","kind":"module","full_name":"Selenium::Safari","name":"Safari"},"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/safari/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)"}}]},{"html_id":"selenium/Selenium/Safari/Driver","path":"Selenium/Safari/Driver.html","kind":"class","full_name":"Selenium::Safari::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/safari/driver.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Safari","kind":"module","full_name":"Selenium::Safari","name":"Safari"},"instance_methods":[{"html_id":"create_session(capabilities:Safari::Capabilities):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"capabilities","external_name":"capabilities","restriction":"Safari::Capabilities"}],"args_string":"(capabilities : Safari::Capabilities) : Session","args_html":"(capabilities : Safari::Capabilities) : Session","location":{"filename":"src/selenium/safari/driver.cr","line_number":2,"url":null},"def":{"name":"create_session","args":[{"name":"capabilities","external_name":"capabilities","restriction":"Safari::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/safari/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":"create_session(Safari::Capabilities.new)"}}]},{"html_id":"selenium/Selenium/Safari/Service","path":"Selenium/Safari/Service.html","kind":"class","full_name":"Selenium::Safari::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/safari/service.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Safari","kind":"module","full_name":"Selenium::Safari","name":"Safari"},"instance_methods":[{"html_id":"default_port:Int32-instance-method","name":"default_port","abstract":false,"location":{"filename":"src/selenium/safari/service.cr","line_number":2,"url":null},"def":{"name":"default_port","return_type":"Int32","visibility":"Public","body":"7050"}},{"html_id":"stop-instance-method","name":"stop","abstract":false,"location":{"filename":"src/selenium/safari/service.cr","line_number":6,"url":null},"def":{"name":"stop","visibility":"Public","body":"stop_process(process)"}}]}]},{"html_id":"selenium/Selenium/SendKeyConverter","path":"Selenium/SendKeyConverter.html","kind":"class","full_name":"Selenium::SendKeyConverter","name":"SendKeyConverter","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/send_key_converter.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"KEYS","name":"KEYS","value":"{null: \"\\uE000\", cancel: \"\\uE001\", help: \"\\uE002\", backspace: \"\\uE003\", tab: \"\\uE004\", clear: \"\\uE005\", return: \"\\uE006\", enter: \"\\uE007\", shift: \"\\uE008\", left_shift: \"\\uE008\", control: \"\\uE009\", left_control: \"\\uE009\", alt: \"\\uE00A\", left_alt: \"\\uE00A\", pause: \"\\uE00B\", escape: \"\\uE00C\", space: \"\\uE00D\", page_up: \"\\uE00E\", page_down: \"\\uE00F\", end: \"\\uE010\", home: \"\\uE011\", left: \"\\uE012\", arrow_left: \"\\uE012\", up: \"\\uE013\", arrow_up: \"\\uE013\", right: \"\\uE014\", arrow_right: \"\\uE014\", down: \"\\uE015\", arrow_down: \"\\uE015\", insert: \"\\uE016\", delete: \"\\uE017\", semicolon: \"\\uE018\", equals: \"\\uE019\", numpad0: \"\\uE01A\", numpad1: \"\\uE01B\", numpad2: \"\\uE01C\", numpad3: \"\\uE01D\", numpad4: \"\\uE01E\", numpad5: \"\\uE01F\", numpad6: \"\\uE020\", numpad7: \"\\uE021\", numpad8: \"\\uE022\", numpad9: \"\\uE023\", multiply: \"\\uE024\", add: \"\\uE025\", separator: \"\\uE026\", subtract: \"\\uE027\", decimal: \"\\uE028\", divide: \"\\uE029\", f1: \"\\uE031\", f2: \"\\uE032\", f3: \"\\uE033\", f4: \"\\uE034\", f5: \"\\uE035\", f6: \"\\uE036\", f7: \"\\uE037\", f8: \"\\uE038\", f9: \"\\uE039\", f10: \"\\uE03A\", f11: \"\\uE03B\", f12: \"\\uE03C\", meta: \"\\uE03D\", command: \"\\uE03D\", left_meta: \"\\uE03D\", right_shift: \"\\uE050\", right_control: \"\\uE051\", right_alt: \"\\uE052\", right_meta: \"\\uE053\", numpad_page_up: \"\\uE054\", numpad_page_down: \"\\uE055\", numpad_end: \"\\uE056\", numpad_home: \"\\uE057\", numpad_left: \"\\uE058\", numpad_up: \"\\uE059\", numpad_right: \"\\uE05A\", numpad_down: \"\\uE05B\", numpad_insert: \"\\uE05C\", numpad_delete: \"\\uE05D\"}"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"class_methods":[{"html_id":"encode(keys:Array(String|Symbol)):String-class-method","name":"encode","abstract":false,"args":[{"name":"keys","external_name":"keys","restriction":"Array(String | Symbol)"}],"args_string":"(keys : Array(String | Symbol)) : String","args_html":"(keys : Array(String | Symbol)) : String","location":{"filename":"src/selenium/send_key_converter.cr","line_number":2,"url":null},"def":{"name":"encode","args":[{"name":"keys","external_name":"keys","restriction":"Array(String | Symbol)"}],"return_type":"String","visibility":"Public","body":"keys.join do |key|\n encode(key)\nend"}}]},{"html_id":"selenium/Selenium/Service","path":"Selenium/Service.html","kind":"class","full_name":"Selenium::Service","name":"Service","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/service.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"CONNECTION_INTERVAL","name":"CONNECTION_INTERVAL","value":"1.seconds"},{"id":"CONNECTION_TIMEOUT","name":"CONNECTION_TIMEOUT","value":"5.seconds"}],"subclasses":[{"html_id":"selenium/Selenium/Chrome/Service","kind":"class","full_name":"Selenium::Chrome::Service","name":"Service"},{"html_id":"selenium/Selenium/Firefox/Service","kind":"class","full_name":"Selenium::Firefox::Service","name":"Service"},{"html_id":"selenium/Selenium/Safari/Service","kind":"class","full_name":"Selenium::Safari::Service","name":"Service"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"class_methods":[{"html_id":"chrome(**opts)-class-method","name":"chrome","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":5,"url":null},"def":{"name":"chrome","double_splat":{"name":"opts","external_name":"opts","restriction":""},"visibility":"Public","body":"Chrome::Service.new(**opts)"}},{"html_id":"firefox(**opts)-class-method","name":"firefox","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":9,"url":null},"def":{"name":"firefox","double_splat":{"name":"opts","external_name":"opts","restriction":""},"visibility":"Public","body":"Firefox::Service.new(**opts)"}},{"html_id":"safari(**opts)-class-method","name":"safari","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":13,"url":null},"def":{"name":"safari","double_splat":{"name":"opts","external_name":"opts","restriction":""},"visibility":"Public","body":"Safari::Service.new(**opts)"}}],"constructors":[{"html_id":"new(driver_path:String,port:Int32=default_port,args:Array(String)=[]ofString)-class-method","name":"new","abstract":false,"args":[{"name":"driver_path","external_name":"driver_path","restriction":"String"},{"name":"port","default_value":"default_port","external_name":"port","restriction":"Int32"},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"::Array(::String)"}],"args_string":"(driver_path : String, port : Int32 = default_port, args : Array(String) = [] of String)","args_html":"(driver_path : String, port : Int32 = default_port, args : Array(String) = [] of String)","location":{"filename":"src/selenium/service.cr","line_number":19,"url":null},"def":{"name":"new","args":[{"name":"driver_path","external_name":"driver_path","restriction":"String"},{"name":"port","default_value":"default_port","external_name":"port","restriction":"Int32"},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"::Array(::String)"}],"visibility":"Public","body":"_ = allocate\n_.initialize(driver_path, port, args)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base_url:String-instance-method","name":"base_url","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":35,"url":null},"def":{"name":"base_url","return_type":"String","visibility":"Public","body":"\"http://localhost:#{@port}\""}},{"html_id":"default_port:Int32-instance-method","name":"default_port","abstract":true,"location":{"filename":"src/selenium/service.cr","line_number":39,"url":null},"def":{"name":"default_port","return_type":"Int32","visibility":"Public","body":""}},{"html_id":"start-instance-method","name":"start","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":22,"url":null},"def":{"name":"start","visibility":"Public","body":"find_free_port\nstart_process\nverify_running\n"}},{"html_id":"stop-instance-method","name":"stop","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":28,"url":null},"def":{"name":"stop","visibility":"Public","body":"begin\n send_shutdown_command\n process.try(&.wait)\nensure\n stop_process(process)\nend"}}]},{"html_id":"selenium/Selenium/Session","path":"Selenium/Session.html","kind":"class","full_name":"Selenium::Session","name":"Session","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/session.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(http_client:Selenium::HttpClient,command_handler:Selenium::CommandHandler,id:String)-class-method","name":"new","abstract":false,"args":[{"name":"http_client","external_name":"http_client","restriction":"::Selenium::HttpClient"},{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"id","external_name":"id","restriction":"::String"}],"args_string":"(http_client : Selenium::HttpClient, command_handler : Selenium::CommandHandler, id : String)","args_html":"(http_client : Selenium::HttpClient, command_handler : Selenium::CommandHandler, id : String)","location":{"filename":"src/selenium/session.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"http_client","external_name":"http_client","restriction":"::Selenium::HttpClient"},{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"id","external_name":"id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(http_client, command_handler, id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"active_element-instance-method","name":"active_element","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":77,"url":null},"def":{"name":"active_element","visibility":"Public","body":"data = command_handler.execute(:get_active_element, path_variables)\nentry = data[\"value\"].as_h\nElement.new(command_handler, id, entry.first_value.as_s)\n"}},{"html_id":"alert_manager-instance-method","name":"alert_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":25,"url":null},"def":{"name":"alert_manager","visibility":"Public","body":"AlertManager.new(command_handler, id)"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":3,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"cookie_manager-instance-method","name":"cookie_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":21,"url":null},"def":{"name":"cookie_manager","visibility":"Public","body":"CookieManager.new(command_handler, id)"}},{"html_id":"current_url-instance-method","name":"current_url","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":83,"url":null},"def":{"name":"current_url","visibility":"Public","body":"data = command_handler.execute(:get_current_url, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"delete-instance-method","name":"delete","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":37,"url":null},"def":{"name":"delete","visibility":"Public","body":"command_handler.execute(:delete_session, path_variables)"}},{"html_id":"document_manager-instance-method","name":"document_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":13,"url":null},"def":{"name":"document_manager","visibility":"Public","body":"DocumentManager.new(command_handler, id)"}},{"html_id":"find_element(using:LocationStrategy,value)-instance-method","name":"find_element","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : LocationStrategy, value)","args_html":"(using : LocationStrategy, value)","location":{"filename":"src/selenium/session.cr","line_number":45,"url":null},"def":{"name":"find_element","args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:find_element, path_variables, {using: using, value: value})\nentry = data[\"value\"].as_h\nElement.new(command_handler, id, entry.first_value.as_s)\n"}},{"html_id":"find_element(using:Symbol,value)-instance-method","name":"find_element","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : Symbol, value)","args_html":"(using : Symbol, value)","location":{"filename":"src/selenium/session.cr","line_number":55,"url":null},"def":{"name":"find_element","args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"using, value = LocationStrategy.transform_extra_strategies(using, value)\nfind_element(LocationStrategy.from_symbol(using), value)\n"}},{"html_id":"find_elements(using:LocationStrategy,value)-instance-method","name":"find_elements","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : LocationStrategy, value)","args_html":"(using : LocationStrategy, value)","location":{"filename":"src/selenium/session.cr","line_number":60,"url":null},"def":{"name":"find_elements","args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:find_elements, path_variables, {using: using, value: value})\nelement_ids = data[\"value\"].as_a.map() do |__arg0|\n __arg0.as_h.first_value.as_s\nend\nelement_ids.map do |element_id|\n Element.new(command_handler, id, element_id)\nend\n"}},{"html_id":"find_elements(using:Symbol,value)-instance-method","name":"find_elements","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : Symbol, value)","args_html":"(using : Symbol, value)","location":{"filename":"src/selenium/session.cr","line_number":72,"url":null},"def":{"name":"find_elements","args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"using, value = LocationStrategy.transform_extra_strategies(using, value)\nfind_elements(LocationStrategy.from_symbol(using), value)\n"}},{"html_id":"http_client:HttpClient-instance-method","name":"http_client","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":2,"url":null},"def":{"name":"http_client","return_type":"HttpClient","visibility":"Public","body":"@http_client"}},{"html_id":"id:SessionId-instance-method","name":"id","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":4,"url":null},"def":{"name":"id","return_type":"SessionId","visibility":"Public","body":"@id"}},{"html_id":"local_storage_manager-instance-method","name":"local_storage_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":29,"url":null},"def":{"name":"local_storage_manager","visibility":"Public","body":"WebStorageManager.new(document_manager, WebStorageManager::StorageType::LocalStorage)"}},{"html_id":"move_to(x:Int32,y:Int32)-instance-method","name":"move_to","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/session.cr","line_number":137,"url":null},"def":{"name":"move_to","args":[{"name":"x","external_name":"x","restriction":"Int32"},{"name":"y","external_name":"y","restriction":"Int32"}],"visibility":"Public","body":"sequence = Selenium::InputSourceActionSequence.new(type: \"pointer\", id: \"action-sequence-key\", actions: [Selenium::Action.new(\"pointerMove\", x: x, y: y)])\nperform_actions([sequence])\n"}},{"html_id":"move_to(element:Selenium::Element)-instance-method","name":"move_to","abstract":false,"args":[{"name":"element","external_name":"element","restriction":"Selenium::Element"}],"args_string":"(element : Selenium::Element)","args_html":"(element : Selenium::Element)","location":{"filename":"src/selenium/session.cr","line_number":130,"url":null},"def":{"name":"move_to","args":[{"name":"element","external_name":"element","restriction":"Selenium::Element"}],"visibility":"Public","body":"midpoint = element.rect.try(&.midpoint)\nif midpoint.nil?\n return\nend\nmove_to(x: midpoint.x, y: midpoint.y)\n"}},{"html_id":"navigate_to(url)-instance-method","name":"navigate_to","abstract":false,"args":[{"name":"url","external_name":"url","restriction":""}],"args_string":"(url)","args_html":"(url)","location":{"filename":"src/selenium/session.cr","line_number":41,"url":null},"def":{"name":"navigate_to","args":[{"name":"url","external_name":"url","restriction":""}],"visibility":"Public","body":"command_handler.execute(:navigate_to, path_variables, {url: url})"}},{"html_id":"navigation_manager-instance-method","name":"navigation_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":17,"url":null},"def":{"name":"navigation_manager","visibility":"Public","body":"NavigationManager.new(command_handler, id)"}},{"html_id":"perform_actions(action_sequence)-instance-method","name":"perform_actions","abstract":false,"args":[{"name":"action_sequence","external_name":"action_sequence","restriction":""}],"args_string":"(action_sequence)","args_html":"(action_sequence)","location":{"filename":"src/selenium/session.cr","line_number":107,"url":null},"def":{"name":"perform_actions","args":[{"name":"action_sequence","external_name":"action_sequence","restriction":""}],"visibility":"Public","body":"parameters = {actions: action_sequence}\ncommand_handler.execute(:perform_actions, path_variables, parameters)\n"}},{"html_id":"release_actions-instance-method","name":"release_actions","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":112,"url":null},"def":{"name":"release_actions","visibility":"Public","body":"command_handler.execute(:release_actions, path_variables)"}},{"html_id":"screenshot(file_path:String|File)-instance-method","name":"screenshot","abstract":false,"args":[{"name":"file_path","external_name":"file_path","restriction":"String | File"}],"args_string":"(file_path : String | File)","args_html":"(file_path : String | File)","location":{"filename":"src/selenium/session.cr","line_number":93,"url":null},"def":{"name":"screenshot","args":[{"name":"file_path","external_name":"file_path","restriction":"String | File"}],"visibility":"Public","body":"data = command_handler.execute(:take_screenshot, path_variables)\nFile.write(file_path.to_s, Base64.decode(data[\"value\"].as_s))\n"}},{"html_id":"session_storage_manager-instance-method","name":"session_storage_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":33,"url":null},"def":{"name":"session_storage_manager","visibility":"Public","body":"WebStorageManager.new(document_manager, WebStorageManager::StorageType::SessionStorage)"}},{"html_id":"set_timeouts(timeouts)-instance-method","name":"set_timeouts","abstract":false,"args":[{"name":"timeouts","external_name":"timeouts","restriction":""}],"args_string":"(timeouts)","args_html":"(timeouts)","location":{"filename":"src/selenium/session.cr","line_number":103,"url":null},"def":{"name":"set_timeouts","args":[{"name":"timeouts","external_name":"timeouts","restriction":""}],"visibility":"Public","body":"command_handler.execute(:set_timeouts, path_variables, timeouts)"}},{"html_id":"switch_to_frame(id)-instance-method","name":"switch_to_frame","doc":"TODO: write test once it is understood:\n- how to know/acquire the frame id\n- what a frame is\n- what switching frames will do","summary":"

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

","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"}],"args_string":"(name : String)","args_html":"(name : String)","location":{"filename":"src/selenium/web_storage_manager.cr","line_number":37,"url":null},"def":{"name":"remove","args":[{"name":"name","external_name":"name","restriction":"String"}],"visibility":"Public","body":"document_manager.execute_script(\"#{storage_type_in_js}.removeItem('#{name}')\")"}},{"html_id":"size:Int-instance-method","name":"size","doc":"Retrieve the number of items in the Storage","summary":"

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 ()\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Matthew McGarvey](https://github.com/matthewmcgarvey) - creator and maintainer\n","program":{"html_id":"selenium/toplevel","path":"toplevel.html","kind":"module","full_name":"Top Level Namespace","name":"Top Level Namespace","abstract":false,"locations":[],"repository_name":"selenium","program":true,"enum":false,"alias":false,"const":false,"types":[{"html_id":"selenium/Selenium","path":"Selenium.html","kind":"module","full_name":"Selenium","name":"Selenium","abstract":false,"locations":[{"filename":"src/selenium.cr","line_number":15,"url":null},{"filename":"src/selenium/default_commands.cr","line_number":1,"url":null},{"filename":"src/selenium/errors.cr","line_number":1,"url":null},{"filename":"src/selenium/types.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"VERSION","name":"VERSION","value":"\"0.12.0\""}],"types":[{"html_id":"selenium/Selenium/Action","path":"Selenium/Action.html","kind":"class","full_name":"Selenium::Action","name":"Action","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/action.cr","line_number":3,"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"},"doc":"I want to have seperate actions for each type (pause, pointer, key)\nbut when I did that, I wasn't able to get the type union or inheritance working for some reason","summary":"

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

","class_methods":[{"html_id":"for(browser,**opts)-class-method","name":"for","doc":"*browser* options:\n- :chrome (see `Selenium::Chrome::Driver`)\n- :firefox or :gecko (see `Selenium::Firefox::Driver`)\n- :safari (see `Selenium::Safari::Driver`)\n- :remote (see `Selenium::Remote::Driver`)","summary":"

browser options: - :chrome (see Selenium::Chrome::Driver) - :firefox or :gecko (see Selenium::Firefox::Driver) - :safari (see Selenium::Safari::Driver) - :remote (see Selenium::Remote::Driver)

","abstract":false,"args":[{"name":"browser","external_name":"browser","restriction":""}],"args_string":"(browser, **opts)","args_html":"(browser, **opts)","location":{"filename":"src/selenium/driver.cr","line_number":13,"url":null},"def":{"name":"for","args":[{"name":"browser","external_name":"browser","restriction":""}],"double_splat":{"name":"opts","external_name":"opts","restriction":""},"visibility":"Public","body":"case browser\nwhen :chrome\n Chrome::Driver.new(**opts)\nwhen :firefox, :gecko\n Firefox::Driver.new(**opts)\nwhen :remote\n Remote::Driver.new(**opts)\nwhen :safari\n Safari::Driver.new(**opts)\nelse\n raise(ArgumentError.new(\"unknown driver: #{browser}\"))\nend"}}],"constructors":[{"html_id":"new(base_url:String|Nil=nil,service:Service|Nil=nil)-class-method","name":"new","abstract":false,"args":[{"name":"base_url","default_value":"nil","external_name":"base_url","restriction":"String | ::Nil"},{"name":"service","default_value":"nil","external_name":"service","restriction":"Service | ::Nil"}],"args_string":"(base_url : String | Nil = nil, service : Service | Nil = nil)","args_html":"(base_url : String | Nil = nil, service : Service | Nil = nil)","location":{"filename":"src/selenium/driver.cr","line_number":32,"url":null},"def":{"name":"new","args":[{"name":"base_url","default_value":"nil","external_name":"base_url","restriction":"String | ::Nil"},{"name":"service","default_value":"nil","external_name":"service","restriction":"Service | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(base_url, service)\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/driver.cr","line_number":29,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"create_session(args:Array(String)):Session-instance-method","name":"create_session","abstract":true,"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/driver.cr","line_number":39,"url":null},"def":{"name":"create_session","args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"return_type":"Session","visibility":"Public","body":""}},{"html_id":"create_session(capabilities,retry=true):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"capabilities","external_name":"capabilities","restriction":""},{"name":"retry","default_value":"true","external_name":"retry","restriction":""}],"args_string":"(capabilities, retry = true) : Session","args_html":"(capabilities, retry = true) : Session","location":{"filename":"src/selenium/driver.cr","line_number":41,"url":null},"def":{"name":"create_session","args":[{"name":"capabilities","external_name":"capabilities","restriction":""},{"name":"retry","default_value":"true","external_name":"retry","restriction":""}],"return_type":"Session","visibility":"Public","body":"begin\n parameters = {capabilities: {alwaysMatch: capabilities}}\n data = command_handler.execute(:new_session, parameters: parameters)\n Session.new(http_client, command_handler, (data.dig(\"value\", \"sessionId\")).as_s)\nrescue ex : Error\n if retry\n create_session(capabilities, retry: false)\n else\n raise(ex)\n end\nend"}},{"html_id":"http_client:HttpClient-instance-method","name":"http_client","abstract":false,"location":{"filename":"src/selenium/driver.cr","line_number":28,"url":null},"def":{"name":"http_client","return_type":"HttpClient","visibility":"Public","body":"@http_client"}},{"html_id":"service:Service|Nil-instance-method","name":"service","abstract":false,"location":{"filename":"src/selenium/driver.cr","line_number":30,"url":null},"def":{"name":"service","return_type":"Service | ::Nil","visibility":"Public","body":"@service"}},{"html_id":"status:Status-instance-method","name":"status","abstract":false,"location":{"filename":"src/selenium/driver.cr","line_number":54,"url":null},"def":{"name":"status","return_type":"Status","visibility":"Public","body":"data = command_handler.execute(:status)\nStatus.from_json(data[\"value\"].to_json)\n"}},{"html_id":"stop-instance-method","name":"stop","abstract":false,"location":{"filename":"src/selenium/driver.cr","line_number":60,"url":null},"def":{"name":"stop","visibility":"Public","body":"service.try(&.stop)"}}]},{"html_id":"selenium/Selenium/Element","path":"Selenium/Element.html","kind":"class","full_name":"Selenium::Element","name":"Element","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/element.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"ELEMENT_KEY","name":"ELEMENT_KEY","value":"\"element-6066-11e4-a52e-4f735466cecf\""}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String,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"},{"name":"id","external_name":"id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String, id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String, id : String)","location":{"filename":"src/selenium/element.cr","line_number":8,"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"},{"name":"id","external_name":"id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id, id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"attribute(name)-instance-method","name":"attribute","doc":"`attribute` is for referencing static fields\nif you are trying to access fields that change you should use `property`","summary":"

#attribute is for referencing static fields if you are trying to access fields that change you should use #property

","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""}],"args_string":"(name)","args_html":"(name)","location":{"filename":"src/selenium/element.cr","line_number":46,"url":null},"def":{"name":"attribute","args":[{"name":"name","external_name":"name","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:get_element_attribute, path_variables.merge({\":name\" => name}))\ndata[\"value\"].as_s?\n"}},{"html_id":"clear-instance-method","name":"clear","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":40,"url":null},"def":{"name":"clear","visibility":"Public","body":"command_handler.execute(:element_clear, path_variables)"}},{"html_id":"click-instance-method","name":"click","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":11,"url":null},"def":{"name":"click","visibility":"Public","body":"command_handler.execute(:element_click, path_variables)"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"css_value(property_name)-instance-method","name":"css_value","abstract":false,"args":[{"name":"property_name","external_name":"property_name","restriction":""}],"args_string":"(property_name)","args_html":"(property_name)","location":{"filename":"src/selenium/element.cr","line_number":56,"url":null},"def":{"name":"css_value","args":[{"name":"property_name","external_name":"property_name","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:get_element_css_value, path_variables.merge({\":property_name\" => property_name}))\ndata[\"value\"].as_s?\n"}},{"html_id":"displayed?-instance-method","name":"displayed?","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":135,"url":null},"def":{"name":"displayed?","visibility":"Public","body":"data = command_handler.execute(:is_element_displayed, path_variables)\ndata[\"value\"].as_bool\n"}},{"html_id":"enabled?-instance-method","name":"enabled?","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":123,"url":null},"def":{"name":"enabled?","visibility":"Public","body":"data = command_handler.execute(:is_element_enabled, path_variables)\ndata[\"value\"].as_bool\n"}},{"html_id":"find_child_element(using:Symbol,value)-instance-method","name":"find_child_element","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : Symbol, value)","args_html":"(using : Symbol, value)","location":{"filename":"src/selenium/element.cr","line_number":80,"url":null},"def":{"name":"find_child_element","args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"using, value = LocationStrategy.transform_extra_strategies(using, value)\nfind_child_element(LocationStrategy.from_symbol(using), value)\n"}},{"html_id":"find_child_element(using:LocationStrategy,value)-instance-method","name":"find_child_element","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : LocationStrategy, value)","args_html":"(using : LocationStrategy, value)","location":{"filename":"src/selenium/element.cr","line_number":70,"url":null},"def":{"name":"find_child_element","args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"parameters = {using: using, value: value}\ndata = command_handler.execute(:find_element_from_element, path_variables, parameters)\nentry = data[\"value\"].as_h\nElement.new(command_handler, session_id, entry.first_value.as_s)\n"}},{"html_id":"find_child_elements(using:Symbol,value)-instance-method","name":"find_child_elements","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : Symbol, value)","args_html":"(using : Symbol, value)","location":{"filename":"src/selenium/element.cr","line_number":97,"url":null},"def":{"name":"find_child_elements","args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"using, value = LocationStrategy.transform_extra_strategies(using, value)\nfind_child_elements(LocationStrategy.from_symbol(using), value)\n"}},{"html_id":"find_child_elements(using:LocationStrategy,value)-instance-method","name":"find_child_elements","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : LocationStrategy, value)","args_html":"(using : LocationStrategy, value)","location":{"filename":"src/selenium/element.cr","line_number":85,"url":null},"def":{"name":"find_child_elements","args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"parameters = {using: using, value: value}\ndata = command_handler.execute(:find_elements_from_element, path_variables, parameters)\ndata[\"value\"].as_a.map() do |__arg0|\n __arg0.as_h.first_value.as_s\nend.map do |element_id|\n Element.new(command_handler, session_id, element_id)\nend\n"}},{"html_id":"id:ElementId-instance-method","name":"id","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":4,"url":null},"def":{"name":"id","return_type":"ElementId","visibility":"Public","body":"@id"}},{"html_id":"property(name)-instance-method","name":"property","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""}],"args_string":"(name)","args_html":"(name)","location":{"filename":"src/selenium/element.cr","line_number":51,"url":null},"def":{"name":"property","args":[{"name":"name","external_name":"name","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:get_element_property, path_variables.merge({\":name\" => name}))\ndata[\"value\"].as_s?\n"}},{"html_id":"rect-instance-method","name":"rect","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":117,"url":null},"def":{"name":"rect","visibility":"Public","body":"data = command_handler.execute(:get_element_rect, path_variables)\nElementRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"screenshot(file_path:String|File)-instance-method","name":"screenshot","abstract":false,"args":[{"name":"file_path","external_name":"file_path","restriction":"String | File"}],"args_string":"(file_path : String | File)","args_html":"(file_path : String | File)","location":{"filename":"src/selenium/element.cr","line_number":112,"url":null},"def":{"name":"screenshot","args":[{"name":"file_path","external_name":"file_path","restriction":"String | File"}],"visibility":"Public","body":"data = command_handler.execute(:take_element_screenshot, path_variables)\nFile.write(file_path.to_s, Base64.decode(data[\"value\"].as_s))\n"}},{"html_id":"selected?-instance-method","name":"selected?","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":129,"url":null},"def":{"name":"selected?","visibility":"Public","body":"data = command_handler.execute(:is_element_selected, path_variables)\ndata[\"value\"].as_bool\n"}},{"html_id":"send_keys(keys:Array(String|Symbol))-instance-method","name":"send_keys","abstract":false,"args":[{"name":"keys","external_name":"keys","restriction":"Array(String | Symbol)"}],"args_string":"(keys : Array(String | Symbol))","args_html":"(keys : Array(String | Symbol))","location":{"filename":"src/selenium/element.cr","line_number":61,"url":null},"def":{"name":"send_keys","args":[{"name":"keys","external_name":"keys","restriction":"Array(String | Symbol)"}],"visibility":"Public","body":"parameters = {text: SendKeyConverter.encode(keys)}\ncommand_handler.execute(:element_send_keys, path_variables, parameters)\n"}},{"html_id":"send_keys(key:String)-instance-method","name":"send_keys","abstract":false,"args":[{"name":"key","external_name":"key","restriction":"String"}],"args_string":"(key : String)","args_html":"(key : String)","location":{"filename":"src/selenium/element.cr","line_number":66,"url":null},"def":{"name":"send_keys","args":[{"name":"key","external_name":"key","restriction":"String"}],"visibility":"Public","body":"send_keys([key])"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}},{"html_id":"submit-instance-method","name":"submit","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":15,"url":null},"def":{"name":"submit","visibility":"Public","body":"begin\n script = \"/* submitForm */ var form = arguments[0];\\nwhile (form.nodeName != \\\"FORM\\\" && form.parentNode) {\\n form = form.parentNode;\\n}\\nif (!form) { throw Error('Unable to find containing form element'); }\\nif (!form.ownerDocument) { throw Error('Unable to find owning document'); }\\nvar e = form.ownerDocument.createEvent('Event');\\ne.initEvent('submit', true, true);\\nif (form.dispatchEvent(e)) { HTMLFormElement.prototype.submit.call(form) }\"\n args = [{ELEMENT_KEY => id}]\n parameters = {script: script, args: args}\n command_handler.execute(:execute_script, path_variables, parameters)\nrescue Selenium::Error\n raise(UnsupportedOperationError.new(\"To submit an element, it must be nested inside a form element\"))\nend"}},{"html_id":"tag_name-instance-method","name":"tag_name","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":107,"url":null},"def":{"name":"tag_name","visibility":"Public","body":"data = command_handler.execute(:get_element_tag_name, path_variables)\ndata[\"value\"].as_s.downcase\n"}},{"html_id":"text-instance-method","name":"text","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":102,"url":null},"def":{"name":"text","visibility":"Public","body":"data = command_handler.execute(:get_element_text, path_variables)\ndata[\"value\"].as_s\n"}}]},{"html_id":"selenium/Selenium/ElementId","path":"Selenium/ElementId.html","kind":"alias","full_name":"Selenium::ElementId","name":"ElementId","abstract":false,"locations":[{"filename":"src/selenium/types.cr","line_number":4,"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/ElementRect","path":"Selenium/ElementRect.html","kind":"struct","full_name":"Selenium::ElementRect","name":"ElementRect","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/element_rect.cr","line_number":3,"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"},"doc":"TODO: I don't remember why I made the properties floats nor why they are nilable.\nIf they were Int64, this could be combined with `Selenium::WindowRect`","summary":"

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.

","abstract":false,"args":[{"name":"timeout","default_value":"5.seconds","external_name":"timeout","restriction":"::Time::Span"},{"name":"interval","default_value":"0.2.seconds","external_name":"interval","restriction":"::Time::Span"},{"name":"ignored","default_value":"[Selenium::Error]","external_name":"ignored","restriction":"::Array(::Exception) | ::Array(::Selenium::Error.class)"},{"name":"message","default_value":"nil","external_name":"message","restriction":"String | ::Nil"}],"args_string":"(timeout : Time::Span = 5.seconds, interval : Time::Span = 0.2.seconds, ignored : Array(Exception) | Array(::Selenium::Error.class) = [Selenium::Error], message : String | Nil = nil)","args_html":"(timeout : Time::Span = 5.seconds, interval : Time::Span = 0.2.seconds, ignored : Array(Exception) | Array(::Selenium::Error.class) = [Selenium::Error], message : String | Nil = nil)","location":{"filename":"src/selenium/helpers/wait.cr","line_number":12,"url":null},"def":{"name":"new","args":[{"name":"timeout","default_value":"5.seconds","external_name":"timeout","restriction":"::Time::Span"},{"name":"interval","default_value":"0.2.seconds","external_name":"interval","restriction":"::Time::Span"},{"name":"ignored","default_value":"[Selenium::Error]","external_name":"ignored","restriction":"::Array(::Exception) | ::Array(::Selenium::Error.class)"},{"name":"message","default_value":"nil","external_name":"message","restriction":"String | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(timeout, interval, ignored, message)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"until(&):Nil-instance-method","name":"until","doc":"Wait until the given block returns a `true` value.\nOtherwise raise an exception `IO::TimeoutError`.\n\n```\nwait = Selenium::Helpers::Wait.new(timeout: 10.seconds, interval: 1.second)\nwait.until { session.document_manager.execute_script(\"return document.readyState;\") == \"complete\" }\n```","summary":"

Wait until the given block returns a true value.

","abstract":false,"location":{"filename":"src/selenium/helpers/wait.cr","line_number":22,"url":null},"def":{"name":"until","yields":0,"block_arity":0,"return_type":"Nil","visibility":"Public","body":"end_time = current_time + @timeout\nlast_error : Exception | ::Nil = nil\nwhile !current_time > end_time\n begin\n result = yield\n if result\n return result\n end\n rescue ex\n last_error = ex\n if @ignored.includes?(ex.class)\n else\n raise(ex)\n end\n end\n sleep(@interval)\nend\nmessage = @message || \"timed out after #{@timeout.seconds} seconds\"\nif last_error\n message = message + \" (#{last_error.message})\"\nend\nraise(IO::TimeoutError.new(message))\n"}}]}]},{"html_id":"selenium/Selenium/HttpClient","path":"Selenium/HttpClient.html","kind":"class","full_name":"Selenium::HttpClient","name":"HttpClient","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/http_client.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(base_url:String)-class-method","name":"new","abstract":false,"args":[{"name":"base_url","external_name":"base_url","restriction":"::String"}],"args_string":"(base_url : String)","args_html":"(base_url : String)","location":{"filename":"src/selenium/http_client.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"base_url","external_name":"base_url","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(base_url)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base_url:String-instance-method","name":"base_url","abstract":false,"location":{"filename":"src/selenium/http_client.cr","line_number":2,"url":null},"def":{"name":"base_url","return_type":"String","visibility":"Public","body":"@base_url"}},{"html_id":"delete(path):JSON::Any-instance-method","name":"delete","abstract":false,"args":[{"name":"path","external_name":"path","restriction":""}],"args_string":"(path) : JSON::Any","args_html":"(path) : JSON::Any","location":{"filename":"src/selenium/http_client.cr","line_number":18,"url":null},"def":{"name":"delete","args":[{"name":"path","external_name":"path","restriction":""}],"return_type":"JSON::Any","visibility":"Public","body":"response = HTTP::Client.delete(base_url + path)\nparsed_response = JSON.parse(response.body)\nif has_error?(parsed_response)\n raise(Error.from_json(parsed_response[\"value\"].to_json))\nend\nparsed_response\n"}},{"html_id":"get(path):JSON::Any-instance-method","name":"get","abstract":false,"args":[{"name":"path","external_name":"path","restriction":""}],"args_string":"(path) : JSON::Any","args_html":"(path) : JSON::Any","location":{"filename":"src/selenium/http_client.cr","line_number":28,"url":null},"def":{"name":"get","args":[{"name":"path","external_name":"path","restriction":""}],"return_type":"JSON::Any","visibility":"Public","body":"response = HTTP::Client.get(base_url + path)\nparsed_response = JSON.parse(response.body)\nif has_error?(parsed_response)\n raise(Error.from_json(parsed_response[\"value\"].to_json))\nend\nparsed_response\n"}},{"html_id":"post(path,body=\"{}\"):JSON::Any-instance-method","name":"post","abstract":false,"args":[{"name":"path","external_name":"path","restriction":""},{"name":"body","default_value":"\"{}\"","external_name":"body","restriction":""}],"args_string":"(path, body = \"{}\") : JSON::Any","args_html":"(path, body = "{}") : JSON::Any","location":{"filename":"src/selenium/http_client.cr","line_number":7,"url":null},"def":{"name":"post","args":[{"name":"path","external_name":"path","restriction":""},{"name":"body","default_value":"\"{}\"","external_name":"body","restriction":""}],"return_type":"JSON::Any","visibility":"Public","body":"url = base_url + path\nresponse = HTTP::Client.post(url, body: body)\nparsed_response = JSON.parse(response.body)\nif has_error?(parsed_response)\n raise(Error.from_json(parsed_response[\"value\"].to_json))\nend\nparsed_response\n"}}]},{"html_id":"selenium/Selenium/InputSourceActionSequence","path":"Selenium/InputSourceActionSequence.html","kind":"struct","full_name":"Selenium::InputSourceActionSequence","name":"InputSourceActionSequence","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/input_source_action_sequence.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(type:String,id:String,actions:Array(Selenium::Action))-class-method","name":"new","abstract":false,"args":[{"name":"type","external_name":"type","restriction":"::String"},{"name":"id","external_name":"id","restriction":"::String"},{"name":"actions","external_name":"actions","restriction":"::Array(::Selenium::Action)"}],"args_string":"(type : String, id : String, actions : Array(Selenium::Action))","args_html":"(type : String, id : String, actions : Array(Selenium::Action))","location":{"filename":"src/selenium/input_source_action_sequence.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"type","external_name":"type","restriction":"::String"},{"name":"id","external_name":"id","restriction":"::String"},{"name":"actions","external_name":"actions","restriction":"::Array(::Selenium::Action)"}],"visibility":"Public","body":"_ = allocate\n_.initialize(type, id, actions)\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/input_source_action_sequence.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":"actions:Array(Action)-instance-method","name":"actions","abstract":false,"location":{"filename":"src/selenium/input_source_action_sequence.cr","line_number":6,"url":null},"def":{"name":"actions","return_type":"Array(Action)","visibility":"Public","body":"@actions"}},{"html_id":"id:String-instance-method","name":"id","abstract":false,"location":{"filename":"src/selenium/input_source_action_sequence.cr","line_number":5,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"type:String-instance-method","name":"type","abstract":false,"location":{"filename":"src/selenium/input_source_action_sequence.cr","line_number":4,"url":null},"def":{"name":"type","return_type":"String","visibility":"Public","body":"@type"}}]},{"html_id":"selenium/Selenium/InvalidTagError","path":"Selenium/InvalidTagError.html","kind":"class","full_name":"Selenium::InvalidTagError","name":"InvalidTagError","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":5,"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(expected:String,got:String)-class-method","name":"new","abstract":false,"args":[{"name":"expected","external_name":"expected","restriction":"String"},{"name":"got","external_name":"got","restriction":"String"}],"args_string":"(expected : String, got : String)","args_html":"(expected : String, got : String)","location":{"filename":"src/selenium/errors.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"expected","external_name":"expected","restriction":"String"},{"name":"got","external_name":"got","restriction":"String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(expected, got)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}]},{"html_id":"selenium/Selenium/LocationStrategy","path":"Selenium/LocationStrategy.html","kind":"enum","full_name":"Selenium::LocationStrategy","name":"LocationStrategy","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/location_strategy.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"CSS","name":"CSS","value":"0"},{"id":"LINK_TEXT","name":"LINK_TEXT","value":"1"},{"id":"PARTIAL_LINK_TEXT","name":"PARTIAL_LINK_TEXT","value":"2"},{"id":"TAG_NAME","name":"TAG_NAME","value":"3"},{"id":"XPATH","name":"XPATH","value":"4"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"class_methods":[{"html_id":"from_symbol(symbol)-class-method","name":"from_symbol","abstract":false,"args":[{"name":"symbol","external_name":"symbol","restriction":""}],"args_string":"(symbol)","args_html":"(symbol)","location":{"filename":"src/selenium/location_strategy.cr","line_number":23,"url":null},"def":{"name":"from_symbol","args":[{"name":"symbol","external_name":"symbol","restriction":""}],"visibility":"Public","body":"case symbol\nwhen :css\n CSS\nwhen :link_text\n LINK_TEXT\nwhen :partial_link_text\n PARTIAL_LINK_TEXT\nwhen :tag_name\n TAG_NAME\nwhen :xpath\n XPATH\nelse\n raise(ArgumentError.new(\"Unsupported location strategy: #{symbol}\"))\nend"}},{"html_id":"transform_extra_strategies(symbol:Symbol,value:String):Tuple(Symbol,String)-class-method","name":"transform_extra_strategies","abstract":false,"args":[{"name":"symbol","external_name":"symbol","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":"String"}],"args_string":"(symbol : Symbol, value : String) : Tuple(Symbol, String)","args_html":"(symbol : Symbol, value : String) : Tuple(Symbol, String)","location":{"filename":"src/selenium/location_strategy.cr","line_number":8,"url":null},"def":{"name":"transform_extra_strategies","args":[{"name":"symbol","external_name":"symbol","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":"String"}],"return_type":"::Tuple(Symbol, String)","visibility":"Public","body":"case symbol\nwhen :class\n symbol = :css\n value = \".#{value}\"\nwhen :id\n symbol = :css\n value = \"##{value}\"\nwhen :name\n symbol = :xpath\n value = \".//*[@name='#{value}']\"\nend\n{symbol, value}\n"}}],"instance_methods":[{"html_id":"css?-instance-method","name":"css?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":2,"url":null},"def":{"name":"css?","visibility":"Public","body":"self == CSS"}},{"html_id":"link_text?-instance-method","name":"link_text?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":3,"url":null},"def":{"name":"link_text?","visibility":"Public","body":"self == LINK_TEXT"}},{"html_id":"partial_link_text?-instance-method","name":"partial_link_text?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":4,"url":null},"def":{"name":"partial_link_text?","visibility":"Public","body":"self == PARTIAL_LINK_TEXT"}},{"html_id":"tag_name?-instance-method","name":"tag_name?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":5,"url":null},"def":{"name":"tag_name?","visibility":"Public","body":"self == TAG_NAME"}},{"html_id":"to_json(builder)-instance-method","name":"to_json","abstract":false,"args":[{"name":"builder","external_name":"builder","restriction":""}],"args_string":"(builder)","args_html":"(builder)","location":{"filename":"src/selenium/location_strategy.cr","line_number":40,"url":null},"def":{"name":"to_json","args":[{"name":"builder","external_name":"builder","restriction":""}],"visibility":"Public","body":"builder.string(convert_to_string)"}},{"html_id":"xpath?-instance-method","name":"xpath?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":6,"url":null},"def":{"name":"xpath?","visibility":"Public","body":"self == XPATH"}}]},{"html_id":"selenium/Selenium/NavigationManager","path":"Selenium/NavigationManager.html","kind":"class","full_name":"Selenium::NavigationManager","name":"NavigationManager","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/navigation_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/navigation_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/navigation_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"go_back-instance-method","name":"go_back","abstract":false,"location":{"filename":"src/selenium/navigation_manager.cr","line_number":8,"url":null},"def":{"name":"go_back","visibility":"Public","body":"command_handler.execute(:back, path_variables)"}},{"html_id":"go_forward-instance-method","name":"go_forward","abstract":false,"location":{"filename":"src/selenium/navigation_manager.cr","line_number":12,"url":null},"def":{"name":"go_forward","visibility":"Public","body":"command_handler.execute(:forward, path_variables)"}},{"html_id":"refresh-instance-method","name":"refresh","abstract":false,"location":{"filename":"src/selenium/navigation_manager.cr","line_number":16,"url":null},"def":{"name":"refresh","visibility":"Public","body":"command_handler.execute(:refresh, path_variables)"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/navigation_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}}]},{"html_id":"selenium/Selenium/Remote","path":"Selenium/Remote.html","kind":"module","full_name":"Selenium::Remote","name":"Remote","abstract":false,"locations":[{"filename":"src/selenium/remote/driver.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/Remote/Driver","path":"Selenium/Remote/Driver.html","kind":"class","full_name":"Selenium::Remote::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/remote/driver.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Remote","kind":"module","full_name":"Selenium::Remote","name":"Remote"},"instance_methods":[{"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/remote/driver.cr","line_number":2,"url":null},"def":{"name":"create_session","args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"return_type":"Session","visibility":"Public","body":"create_session(Selenium::Capabilities.new)"}}]}]},{"html_id":"selenium/Selenium/Safari","path":"Selenium/Safari.html","kind":"module","full_name":"Selenium::Safari","name":"Safari","abstract":false,"locations":[{"filename":"src/selenium/safari/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/Safari/Capabilities","path":"Selenium/Safari/Capabilities.html","kind":"class","full_name":"Selenium::Safari::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/safari/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Safari","kind":"module","full_name":"Selenium::Safari","name":"Safari"},"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/safari/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)"}}]},{"html_id":"selenium/Selenium/Safari/Driver","path":"Selenium/Safari/Driver.html","kind":"class","full_name":"Selenium::Safari::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/safari/driver.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Safari","kind":"module","full_name":"Selenium::Safari","name":"Safari"},"instance_methods":[{"html_id":"create_session(capabilities:Safari::Capabilities):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"capabilities","external_name":"capabilities","restriction":"Safari::Capabilities"}],"args_string":"(capabilities : Safari::Capabilities) : Session","args_html":"(capabilities : Safari::Capabilities) : Session","location":{"filename":"src/selenium/safari/driver.cr","line_number":2,"url":null},"def":{"name":"create_session","args":[{"name":"capabilities","external_name":"capabilities","restriction":"Safari::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/safari/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":"create_session(Safari::Capabilities.new)"}}]},{"html_id":"selenium/Selenium/Safari/Service","path":"Selenium/Safari/Service.html","kind":"class","full_name":"Selenium::Safari::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/safari/service.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Safari","kind":"module","full_name":"Selenium::Safari","name":"Safari"},"instance_methods":[{"html_id":"default_port:Int32-instance-method","name":"default_port","abstract":false,"location":{"filename":"src/selenium/safari/service.cr","line_number":2,"url":null},"def":{"name":"default_port","return_type":"Int32","visibility":"Public","body":"7050"}},{"html_id":"stop-instance-method","name":"stop","abstract":false,"location":{"filename":"src/selenium/safari/service.cr","line_number":6,"url":null},"def":{"name":"stop","visibility":"Public","body":"stop_process(process)"}}]}]},{"html_id":"selenium/Selenium/SendKeyConverter","path":"Selenium/SendKeyConverter.html","kind":"class","full_name":"Selenium::SendKeyConverter","name":"SendKeyConverter","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/send_key_converter.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"KEYS","name":"KEYS","value":"{null: \"\\uE000\", cancel: \"\\uE001\", help: \"\\uE002\", backspace: \"\\uE003\", tab: \"\\uE004\", clear: \"\\uE005\", return: \"\\uE006\", enter: \"\\uE007\", shift: \"\\uE008\", left_shift: \"\\uE008\", control: \"\\uE009\", left_control: \"\\uE009\", alt: \"\\uE00A\", left_alt: \"\\uE00A\", pause: \"\\uE00B\", escape: \"\\uE00C\", space: \"\\uE00D\", page_up: \"\\uE00E\", page_down: \"\\uE00F\", end: \"\\uE010\", home: \"\\uE011\", left: \"\\uE012\", arrow_left: \"\\uE012\", up: \"\\uE013\", arrow_up: \"\\uE013\", right: \"\\uE014\", arrow_right: \"\\uE014\", down: \"\\uE015\", arrow_down: \"\\uE015\", insert: \"\\uE016\", delete: \"\\uE017\", semicolon: \"\\uE018\", equals: \"\\uE019\", numpad0: \"\\uE01A\", numpad1: \"\\uE01B\", numpad2: \"\\uE01C\", numpad3: \"\\uE01D\", numpad4: \"\\uE01E\", numpad5: \"\\uE01F\", numpad6: \"\\uE020\", numpad7: \"\\uE021\", numpad8: \"\\uE022\", numpad9: \"\\uE023\", multiply: \"\\uE024\", add: \"\\uE025\", separator: \"\\uE026\", subtract: \"\\uE027\", decimal: \"\\uE028\", divide: \"\\uE029\", f1: \"\\uE031\", f2: \"\\uE032\", f3: \"\\uE033\", f4: \"\\uE034\", f5: \"\\uE035\", f6: \"\\uE036\", f7: \"\\uE037\", f8: \"\\uE038\", f9: \"\\uE039\", f10: \"\\uE03A\", f11: \"\\uE03B\", f12: \"\\uE03C\", meta: \"\\uE03D\", command: \"\\uE03D\", left_meta: \"\\uE03D\", right_shift: \"\\uE050\", right_control: \"\\uE051\", right_alt: \"\\uE052\", right_meta: \"\\uE053\", numpad_page_up: \"\\uE054\", numpad_page_down: \"\\uE055\", numpad_end: \"\\uE056\", numpad_home: \"\\uE057\", numpad_left: \"\\uE058\", numpad_up: \"\\uE059\", numpad_right: \"\\uE05A\", numpad_down: \"\\uE05B\", numpad_insert: \"\\uE05C\", numpad_delete: \"\\uE05D\"}"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"class_methods":[{"html_id":"encode(keys:Array(String|Symbol)):String-class-method","name":"encode","abstract":false,"args":[{"name":"keys","external_name":"keys","restriction":"Array(String | Symbol)"}],"args_string":"(keys : Array(String | Symbol)) : String","args_html":"(keys : Array(String | Symbol)) : String","location":{"filename":"src/selenium/send_key_converter.cr","line_number":2,"url":null},"def":{"name":"encode","args":[{"name":"keys","external_name":"keys","restriction":"Array(String | Symbol)"}],"return_type":"String","visibility":"Public","body":"keys.join do |key|\n encode(key)\nend"}}]},{"html_id":"selenium/Selenium/Service","path":"Selenium/Service.html","kind":"class","full_name":"Selenium::Service","name":"Service","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/service.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"CONNECTION_INTERVAL","name":"CONNECTION_INTERVAL","value":"1.seconds"},{"id":"CONNECTION_TIMEOUT","name":"CONNECTION_TIMEOUT","value":"5.seconds"}],"subclasses":[{"html_id":"selenium/Selenium/Chrome/Service","kind":"class","full_name":"Selenium::Chrome::Service","name":"Service"},{"html_id":"selenium/Selenium/Firefox/Service","kind":"class","full_name":"Selenium::Firefox::Service","name":"Service"},{"html_id":"selenium/Selenium/Safari/Service","kind":"class","full_name":"Selenium::Safari::Service","name":"Service"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"class_methods":[{"html_id":"chrome(**opts)-class-method","name":"chrome","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":5,"url":null},"def":{"name":"chrome","double_splat":{"name":"opts","external_name":"opts","restriction":""},"visibility":"Public","body":"Chrome::Service.new(**opts)"}},{"html_id":"firefox(**opts)-class-method","name":"firefox","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":9,"url":null},"def":{"name":"firefox","double_splat":{"name":"opts","external_name":"opts","restriction":""},"visibility":"Public","body":"Firefox::Service.new(**opts)"}},{"html_id":"safari(**opts)-class-method","name":"safari","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":13,"url":null},"def":{"name":"safari","double_splat":{"name":"opts","external_name":"opts","restriction":""},"visibility":"Public","body":"Safari::Service.new(**opts)"}}],"constructors":[{"html_id":"new(driver_path:String,port:Int32=default_port,args:Array(String)=[]ofString)-class-method","name":"new","abstract":false,"args":[{"name":"driver_path","external_name":"driver_path","restriction":"String"},{"name":"port","default_value":"default_port","external_name":"port","restriction":"Int32"},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"::Array(::String)"}],"args_string":"(driver_path : String, port : Int32 = default_port, args : Array(String) = [] of String)","args_html":"(driver_path : String, port : Int32 = default_port, args : Array(String) = [] of String)","location":{"filename":"src/selenium/service.cr","line_number":19,"url":null},"def":{"name":"new","args":[{"name":"driver_path","external_name":"driver_path","restriction":"String"},{"name":"port","default_value":"default_port","external_name":"port","restriction":"Int32"},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"::Array(::String)"}],"visibility":"Public","body":"_ = allocate\n_.initialize(driver_path, port, args)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base_url:String-instance-method","name":"base_url","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":35,"url":null},"def":{"name":"base_url","return_type":"String","visibility":"Public","body":"\"http://localhost:#{@port}\""}},{"html_id":"default_port:Int32-instance-method","name":"default_port","abstract":true,"location":{"filename":"src/selenium/service.cr","line_number":39,"url":null},"def":{"name":"default_port","return_type":"Int32","visibility":"Public","body":""}},{"html_id":"start-instance-method","name":"start","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":22,"url":null},"def":{"name":"start","visibility":"Public","body":"find_free_port\nstart_process\nverify_running\n"}},{"html_id":"stop-instance-method","name":"stop","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":28,"url":null},"def":{"name":"stop","visibility":"Public","body":"begin\n send_shutdown_command\n process.try(&.wait)\nensure\n stop_process(process)\nend"}}]},{"html_id":"selenium/Selenium/Session","path":"Selenium/Session.html","kind":"class","full_name":"Selenium::Session","name":"Session","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/session.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(http_client:Selenium::HttpClient,command_handler:Selenium::CommandHandler,id:String)-class-method","name":"new","abstract":false,"args":[{"name":"http_client","external_name":"http_client","restriction":"::Selenium::HttpClient"},{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"id","external_name":"id","restriction":"::String"}],"args_string":"(http_client : Selenium::HttpClient, command_handler : Selenium::CommandHandler, id : String)","args_html":"(http_client : Selenium::HttpClient, command_handler : Selenium::CommandHandler, id : String)","location":{"filename":"src/selenium/session.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"http_client","external_name":"http_client","restriction":"::Selenium::HttpClient"},{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"id","external_name":"id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(http_client, command_handler, id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"active_element-instance-method","name":"active_element","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":77,"url":null},"def":{"name":"active_element","visibility":"Public","body":"data = command_handler.execute(:get_active_element, path_variables)\nentry = data[\"value\"].as_h\nElement.new(command_handler, id, entry.first_value.as_s)\n"}},{"html_id":"alert_manager-instance-method","name":"alert_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":25,"url":null},"def":{"name":"alert_manager","visibility":"Public","body":"AlertManager.new(command_handler, id)"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":3,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"cookie_manager-instance-method","name":"cookie_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":21,"url":null},"def":{"name":"cookie_manager","visibility":"Public","body":"CookieManager.new(command_handler, id)"}},{"html_id":"current_url-instance-method","name":"current_url","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":83,"url":null},"def":{"name":"current_url","visibility":"Public","body":"data = command_handler.execute(:get_current_url, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"delete-instance-method","name":"delete","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":37,"url":null},"def":{"name":"delete","visibility":"Public","body":"command_handler.execute(:delete_session, path_variables)"}},{"html_id":"document_manager-instance-method","name":"document_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":13,"url":null},"def":{"name":"document_manager","visibility":"Public","body":"DocumentManager.new(command_handler, id)"}},{"html_id":"find_element(using:LocationStrategy,value)-instance-method","name":"find_element","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : LocationStrategy, value)","args_html":"(using : LocationStrategy, value)","location":{"filename":"src/selenium/session.cr","line_number":45,"url":null},"def":{"name":"find_element","args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:find_element, path_variables, {using: using, value: value})\nentry = data[\"value\"].as_h\nElement.new(command_handler, id, entry.first_value.as_s)\n"}},{"html_id":"find_element(using:Symbol,value)-instance-method","name":"find_element","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : Symbol, value)","args_html":"(using : Symbol, value)","location":{"filename":"src/selenium/session.cr","line_number":55,"url":null},"def":{"name":"find_element","args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"using, value = LocationStrategy.transform_extra_strategies(using, value)\nfind_element(LocationStrategy.from_symbol(using), value)\n"}},{"html_id":"find_elements(using:LocationStrategy,value)-instance-method","name":"find_elements","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : LocationStrategy, value)","args_html":"(using : LocationStrategy, value)","location":{"filename":"src/selenium/session.cr","line_number":60,"url":null},"def":{"name":"find_elements","args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:find_elements, path_variables, {using: using, value: value})\nelement_ids = data[\"value\"].as_a.map() do |__arg0|\n __arg0.as_h.first_value.as_s\nend\nelement_ids.map do |element_id|\n Element.new(command_handler, id, element_id)\nend\n"}},{"html_id":"find_elements(using:Symbol,value)-instance-method","name":"find_elements","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : Symbol, value)","args_html":"(using : Symbol, value)","location":{"filename":"src/selenium/session.cr","line_number":72,"url":null},"def":{"name":"find_elements","args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"using, value = LocationStrategy.transform_extra_strategies(using, value)\nfind_elements(LocationStrategy.from_symbol(using), value)\n"}},{"html_id":"http_client:HttpClient-instance-method","name":"http_client","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":2,"url":null},"def":{"name":"http_client","return_type":"HttpClient","visibility":"Public","body":"@http_client"}},{"html_id":"id:SessionId-instance-method","name":"id","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":4,"url":null},"def":{"name":"id","return_type":"SessionId","visibility":"Public","body":"@id"}},{"html_id":"local_storage_manager-instance-method","name":"local_storage_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":29,"url":null},"def":{"name":"local_storage_manager","visibility":"Public","body":"WebStorageManager.new(document_manager, WebStorageManager::StorageType::LocalStorage)"}},{"html_id":"move_to(x:Int32,y:Int32)-instance-method","name":"move_to","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/session.cr","line_number":137,"url":null},"def":{"name":"move_to","args":[{"name":"x","external_name":"x","restriction":"Int32"},{"name":"y","external_name":"y","restriction":"Int32"}],"visibility":"Public","body":"sequence = Selenium::InputSourceActionSequence.new(type: \"pointer\", id: \"action-sequence-key\", actions: [Selenium::Action.new(\"pointerMove\", x: x, y: y)])\nperform_actions([sequence])\n"}},{"html_id":"move_to(element:Selenium::Element)-instance-method","name":"move_to","abstract":false,"args":[{"name":"element","external_name":"element","restriction":"Selenium::Element"}],"args_string":"(element : Selenium::Element)","args_html":"(element : Selenium::Element)","location":{"filename":"src/selenium/session.cr","line_number":130,"url":null},"def":{"name":"move_to","args":[{"name":"element","external_name":"element","restriction":"Selenium::Element"}],"visibility":"Public","body":"midpoint = element.rect.try(&.midpoint)\nif midpoint.nil?\n return\nend\nmove_to(x: midpoint.x, y: midpoint.y)\n"}},{"html_id":"navigate_to(url)-instance-method","name":"navigate_to","abstract":false,"args":[{"name":"url","external_name":"url","restriction":""}],"args_string":"(url)","args_html":"(url)","location":{"filename":"src/selenium/session.cr","line_number":41,"url":null},"def":{"name":"navigate_to","args":[{"name":"url","external_name":"url","restriction":""}],"visibility":"Public","body":"command_handler.execute(:navigate_to, path_variables, {url: url})"}},{"html_id":"navigation_manager-instance-method","name":"navigation_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":17,"url":null},"def":{"name":"navigation_manager","visibility":"Public","body":"NavigationManager.new(command_handler, id)"}},{"html_id":"perform_actions(action_sequence)-instance-method","name":"perform_actions","abstract":false,"args":[{"name":"action_sequence","external_name":"action_sequence","restriction":""}],"args_string":"(action_sequence)","args_html":"(action_sequence)","location":{"filename":"src/selenium/session.cr","line_number":107,"url":null},"def":{"name":"perform_actions","args":[{"name":"action_sequence","external_name":"action_sequence","restriction":""}],"visibility":"Public","body":"parameters = {actions: action_sequence}\ncommand_handler.execute(:perform_actions, path_variables, parameters)\n"}},{"html_id":"release_actions-instance-method","name":"release_actions","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":112,"url":null},"def":{"name":"release_actions","visibility":"Public","body":"command_handler.execute(:release_actions, path_variables)"}},{"html_id":"screenshot(file_path:String|File)-instance-method","name":"screenshot","abstract":false,"args":[{"name":"file_path","external_name":"file_path","restriction":"String | File"}],"args_string":"(file_path : String | File)","args_html":"(file_path : String | File)","location":{"filename":"src/selenium/session.cr","line_number":93,"url":null},"def":{"name":"screenshot","args":[{"name":"file_path","external_name":"file_path","restriction":"String | File"}],"visibility":"Public","body":"data = command_handler.execute(:take_screenshot, path_variables)\nFile.write(file_path.to_s, Base64.decode(data[\"value\"].as_s))\n"}},{"html_id":"session_storage_manager-instance-method","name":"session_storage_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":33,"url":null},"def":{"name":"session_storage_manager","visibility":"Public","body":"WebStorageManager.new(document_manager, WebStorageManager::StorageType::SessionStorage)"}},{"html_id":"set_timeouts(timeouts)-instance-method","name":"set_timeouts","abstract":false,"args":[{"name":"timeouts","external_name":"timeouts","restriction":""}],"args_string":"(timeouts)","args_html":"(timeouts)","location":{"filename":"src/selenium/session.cr","line_number":103,"url":null},"def":{"name":"set_timeouts","args":[{"name":"timeouts","external_name":"timeouts","restriction":""}],"visibility":"Public","body":"command_handler.execute(:set_timeouts, path_variables, timeouts)"}},{"html_id":"switch_to_frame(id)-instance-method","name":"switch_to_frame","doc":"TODO: write test once it is understood:\n- how to know/acquire the frame id\n- what a frame is\n- what switching frames will do","summary":"

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

","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"}],"args_string":"(name : String)","args_html":"(name : String)","location":{"filename":"src/selenium/web_storage_manager.cr","line_number":37,"url":null},"def":{"name":"remove","args":[{"name":"name","external_name":"name","restriction":"String"}],"visibility":"Public","body":"document_manager.execute_script(\"#{storage_type_in_js}.removeItem('#{name}')\")"}},{"html_id":"size:Int-instance-method","name":"size","doc":"Retrieve the number of items in the Storage","summary":"

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 ()\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Matthew McGarvey](https://github.com/matthewmcgarvey) - creator and maintainer\n","program":{"html_id":"selenium/toplevel","path":"toplevel.html","kind":"module","full_name":"Top Level Namespace","name":"Top Level Namespace","abstract":false,"locations":[],"repository_name":"selenium","program":true,"enum":false,"alias":false,"const":false,"types":[{"html_id":"selenium/Selenium","path":"Selenium.html","kind":"module","full_name":"Selenium","name":"Selenium","abstract":false,"locations":[{"filename":"src/selenium.cr","line_number":15,"url":null},{"filename":"src/selenium/default_commands.cr","line_number":1,"url":null},{"filename":"src/selenium/errors.cr","line_number":1,"url":null},{"filename":"src/selenium/types.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"VERSION","name":"VERSION","value":"\"0.11.0\""}],"types":[{"html_id":"selenium/Selenium/Action","path":"Selenium/Action.html","kind":"class","full_name":"Selenium::Action","name":"Action","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/action.cr","line_number":3,"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"},"doc":"I want to have seperate actions for each type (pause, pointer, key)\nbut when I did that, I wasn't able to get the type union or inheritance working for some reason","summary":"

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

","class_methods":[{"html_id":"for(browser,**opts)-class-method","name":"for","doc":"*browser* options:\n- :chrome (see `Selenium::Chrome::Driver`)\n- :firefox or :gecko (see `Selenium::Firefox::Driver`)\n- :safari (see `Selenium::Safari::Driver`)\n- :remote (see `Selenium::Remote::Driver`)","summary":"

browser options: - :chrome (see Selenium::Chrome::Driver) - :firefox or :gecko (see Selenium::Firefox::Driver) - :safari (see Selenium::Safari::Driver) - :remote (see Selenium::Remote::Driver)

","abstract":false,"args":[{"name":"browser","external_name":"browser","restriction":""}],"args_string":"(browser, **opts)","args_html":"(browser, **opts)","location":{"filename":"src/selenium/driver.cr","line_number":13,"url":null},"def":{"name":"for","args":[{"name":"browser","external_name":"browser","restriction":""}],"double_splat":{"name":"opts","external_name":"opts","restriction":""},"visibility":"Public","body":"case browser\nwhen :chrome\n Chrome::Driver.new(**opts)\nwhen :firefox, :gecko\n Firefox::Driver.new(**opts)\nwhen :remote\n Remote::Driver.new(**opts)\nwhen :safari\n Safari::Driver.new(**opts)\nelse\n raise(ArgumentError.new(\"unknown driver: #{browser}\"))\nend"}}],"constructors":[{"html_id":"new(base_url:String|Nil=nil,service:Service|Nil=nil)-class-method","name":"new","abstract":false,"args":[{"name":"base_url","default_value":"nil","external_name":"base_url","restriction":"String | ::Nil"},{"name":"service","default_value":"nil","external_name":"service","restriction":"Service | ::Nil"}],"args_string":"(base_url : String | Nil = nil, service : Service | Nil = nil)","args_html":"(base_url : String | Nil = nil, service : Service | Nil = nil)","location":{"filename":"src/selenium/driver.cr","line_number":32,"url":null},"def":{"name":"new","args":[{"name":"base_url","default_value":"nil","external_name":"base_url","restriction":"String | ::Nil"},{"name":"service","default_value":"nil","external_name":"service","restriction":"Service | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(base_url, service)\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/driver.cr","line_number":29,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"create_session(args:Array(String)):Session-instance-method","name":"create_session","abstract":true,"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/driver.cr","line_number":39,"url":null},"def":{"name":"create_session","args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"return_type":"Session","visibility":"Public","body":""}},{"html_id":"create_session(capabilities,retry=true):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"capabilities","external_name":"capabilities","restriction":""},{"name":"retry","default_value":"true","external_name":"retry","restriction":""}],"args_string":"(capabilities, retry = true) : Session","args_html":"(capabilities, retry = true) : Session","location":{"filename":"src/selenium/driver.cr","line_number":41,"url":null},"def":{"name":"create_session","args":[{"name":"capabilities","external_name":"capabilities","restriction":""},{"name":"retry","default_value":"true","external_name":"retry","restriction":""}],"return_type":"Session","visibility":"Public","body":"begin\n parameters = {capabilities: {alwaysMatch: capabilities}}\n data = command_handler.execute(:new_session, parameters: parameters)\n Session.new(http_client, command_handler, (data.dig(\"value\", \"sessionId\")).as_s)\nrescue ex : Error\n if retry\n create_session(capabilities, retry: false)\n else\n raise(ex)\n end\nend"}},{"html_id":"http_client:HttpClient-instance-method","name":"http_client","abstract":false,"location":{"filename":"src/selenium/driver.cr","line_number":28,"url":null},"def":{"name":"http_client","return_type":"HttpClient","visibility":"Public","body":"@http_client"}},{"html_id":"service:Service|Nil-instance-method","name":"service","abstract":false,"location":{"filename":"src/selenium/driver.cr","line_number":30,"url":null},"def":{"name":"service","return_type":"Service | ::Nil","visibility":"Public","body":"@service"}},{"html_id":"status:Status-instance-method","name":"status","abstract":false,"location":{"filename":"src/selenium/driver.cr","line_number":54,"url":null},"def":{"name":"status","return_type":"Status","visibility":"Public","body":"data = command_handler.execute(:status)\nStatus.from_json(data[\"value\"].to_json)\n"}},{"html_id":"stop-instance-method","name":"stop","abstract":false,"location":{"filename":"src/selenium/driver.cr","line_number":60,"url":null},"def":{"name":"stop","visibility":"Public","body":"service.try(&.stop)"}}]},{"html_id":"selenium/Selenium/Element","path":"Selenium/Element.html","kind":"class","full_name":"Selenium::Element","name":"Element","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/element.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"ELEMENT_KEY","name":"ELEMENT_KEY","value":"\"element-6066-11e4-a52e-4f735466cecf\""}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String,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"},{"name":"id","external_name":"id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String, id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String, id : String)","location":{"filename":"src/selenium/element.cr","line_number":8,"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"},{"name":"id","external_name":"id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id, id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"attribute(name)-instance-method","name":"attribute","doc":"`attribute` is for referencing static fields\nif you are trying to access fields that change you should use `property`","summary":"

#attribute is for referencing static fields if you are trying to access fields that change you should use #property

","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""}],"args_string":"(name)","args_html":"(name)","location":{"filename":"src/selenium/element.cr","line_number":46,"url":null},"def":{"name":"attribute","args":[{"name":"name","external_name":"name","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:get_element_attribute, path_variables.merge({\":name\" => name}))\ndata[\"value\"].as_s?\n"}},{"html_id":"clear-instance-method","name":"clear","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":40,"url":null},"def":{"name":"clear","visibility":"Public","body":"command_handler.execute(:element_clear, path_variables)"}},{"html_id":"click-instance-method","name":"click","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":11,"url":null},"def":{"name":"click","visibility":"Public","body":"command_handler.execute(:element_click, path_variables)"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"css_value(property_name)-instance-method","name":"css_value","abstract":false,"args":[{"name":"property_name","external_name":"property_name","restriction":""}],"args_string":"(property_name)","args_html":"(property_name)","location":{"filename":"src/selenium/element.cr","line_number":56,"url":null},"def":{"name":"css_value","args":[{"name":"property_name","external_name":"property_name","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:get_element_css_value, path_variables.merge({\":property_name\" => property_name}))\ndata[\"value\"].as_s?\n"}},{"html_id":"displayed?-instance-method","name":"displayed?","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":135,"url":null},"def":{"name":"displayed?","visibility":"Public","body":"data = command_handler.execute(:is_element_displayed, path_variables)\ndata[\"value\"].as_bool\n"}},{"html_id":"enabled?-instance-method","name":"enabled?","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":123,"url":null},"def":{"name":"enabled?","visibility":"Public","body":"data = command_handler.execute(:is_element_enabled, path_variables)\ndata[\"value\"].as_bool\n"}},{"html_id":"find_child_element(using:Symbol,value)-instance-method","name":"find_child_element","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : Symbol, value)","args_html":"(using : Symbol, value)","location":{"filename":"src/selenium/element.cr","line_number":80,"url":null},"def":{"name":"find_child_element","args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"using, value = LocationStrategy.transform_extra_strategies(using, value)\nfind_child_element(LocationStrategy.from_symbol(using), value)\n"}},{"html_id":"find_child_element(using:LocationStrategy,value)-instance-method","name":"find_child_element","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : LocationStrategy, value)","args_html":"(using : LocationStrategy, value)","location":{"filename":"src/selenium/element.cr","line_number":70,"url":null},"def":{"name":"find_child_element","args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"parameters = {using: using, value: value}\ndata = command_handler.execute(:find_element_from_element, path_variables, parameters)\nentry = data[\"value\"].as_h\nElement.new(command_handler, session_id, entry.first_value.as_s)\n"}},{"html_id":"find_child_elements(using:Symbol,value)-instance-method","name":"find_child_elements","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : Symbol, value)","args_html":"(using : Symbol, value)","location":{"filename":"src/selenium/element.cr","line_number":97,"url":null},"def":{"name":"find_child_elements","args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"using, value = LocationStrategy.transform_extra_strategies(using, value)\nfind_child_elements(LocationStrategy.from_symbol(using), value)\n"}},{"html_id":"find_child_elements(using:LocationStrategy,value)-instance-method","name":"find_child_elements","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : LocationStrategy, value)","args_html":"(using : LocationStrategy, value)","location":{"filename":"src/selenium/element.cr","line_number":85,"url":null},"def":{"name":"find_child_elements","args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"parameters = {using: using, value: value}\ndata = command_handler.execute(:find_elements_from_element, path_variables, parameters)\ndata[\"value\"].as_a.map() do |__arg0|\n __arg0.as_h.first_value.as_s\nend.map do |element_id|\n Element.new(command_handler, session_id, element_id)\nend\n"}},{"html_id":"id:ElementId-instance-method","name":"id","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":4,"url":null},"def":{"name":"id","return_type":"ElementId","visibility":"Public","body":"@id"}},{"html_id":"property(name)-instance-method","name":"property","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""}],"args_string":"(name)","args_html":"(name)","location":{"filename":"src/selenium/element.cr","line_number":51,"url":null},"def":{"name":"property","args":[{"name":"name","external_name":"name","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:get_element_property, path_variables.merge({\":name\" => name}))\ndata[\"value\"].as_s?\n"}},{"html_id":"rect-instance-method","name":"rect","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":117,"url":null},"def":{"name":"rect","visibility":"Public","body":"data = command_handler.execute(:get_element_rect, path_variables)\nElementRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"screenshot(file_path:String|File)-instance-method","name":"screenshot","abstract":false,"args":[{"name":"file_path","external_name":"file_path","restriction":"String | File"}],"args_string":"(file_path : String | File)","args_html":"(file_path : String | File)","location":{"filename":"src/selenium/element.cr","line_number":112,"url":null},"def":{"name":"screenshot","args":[{"name":"file_path","external_name":"file_path","restriction":"String | File"}],"visibility":"Public","body":"data = command_handler.execute(:take_element_screenshot, path_variables)\nFile.write(file_path.to_s, Base64.decode(data[\"value\"].as_s))\n"}},{"html_id":"selected?-instance-method","name":"selected?","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":129,"url":null},"def":{"name":"selected?","visibility":"Public","body":"data = command_handler.execute(:is_element_selected, path_variables)\ndata[\"value\"].as_bool\n"}},{"html_id":"send_keys(keys:Array(String|Symbol))-instance-method","name":"send_keys","abstract":false,"args":[{"name":"keys","external_name":"keys","restriction":"Array(String | Symbol)"}],"args_string":"(keys : Array(String | Symbol))","args_html":"(keys : Array(String | Symbol))","location":{"filename":"src/selenium/element.cr","line_number":61,"url":null},"def":{"name":"send_keys","args":[{"name":"keys","external_name":"keys","restriction":"Array(String | Symbol)"}],"visibility":"Public","body":"parameters = {text: SendKeyConverter.encode(keys)}\ncommand_handler.execute(:element_send_keys, path_variables, parameters)\n"}},{"html_id":"send_keys(key:String)-instance-method","name":"send_keys","abstract":false,"args":[{"name":"key","external_name":"key","restriction":"String"}],"args_string":"(key : String)","args_html":"(key : String)","location":{"filename":"src/selenium/element.cr","line_number":66,"url":null},"def":{"name":"send_keys","args":[{"name":"key","external_name":"key","restriction":"String"}],"visibility":"Public","body":"send_keys([key])"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}},{"html_id":"submit-instance-method","name":"submit","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":15,"url":null},"def":{"name":"submit","visibility":"Public","body":"begin\n script = \"/* submitForm */ var form = arguments[0];\\nwhile (form.nodeName != \\\"FORM\\\" && form.parentNode) {\\n form = form.parentNode;\\n}\\nif (!form) { throw Error('Unable to find containing form element'); }\\nif (!form.ownerDocument) { throw Error('Unable to find owning document'); }\\nvar e = form.ownerDocument.createEvent('Event');\\ne.initEvent('submit', true, true);\\nif (form.dispatchEvent(e)) { HTMLFormElement.prototype.submit.call(form) }\"\n args = [{ELEMENT_KEY => id}]\n parameters = {script: script, args: args}\n command_handler.execute(:execute_script, path_variables, parameters)\nrescue Selenium::Error\n raise(UnsupportedOperationError.new(\"To submit an element, it must be nested inside a form element\"))\nend"}},{"html_id":"tag_name-instance-method","name":"tag_name","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":107,"url":null},"def":{"name":"tag_name","visibility":"Public","body":"data = command_handler.execute(:get_element_tag_name, path_variables)\ndata[\"value\"].as_s.downcase\n"}},{"html_id":"text-instance-method","name":"text","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":102,"url":null},"def":{"name":"text","visibility":"Public","body":"data = command_handler.execute(:get_element_text, path_variables)\ndata[\"value\"].as_s\n"}}]},{"html_id":"selenium/Selenium/ElementId","path":"Selenium/ElementId.html","kind":"alias","full_name":"Selenium::ElementId","name":"ElementId","abstract":false,"locations":[{"filename":"src/selenium/types.cr","line_number":4,"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/ElementRect","path":"Selenium/ElementRect.html","kind":"struct","full_name":"Selenium::ElementRect","name":"ElementRect","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/element_rect.cr","line_number":3,"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"},"doc":"TODO: I don't remember why I made the properties floats nor why they are nilable.\nIf they were Int64, this could be combined with `Selenium::WindowRect`","summary":"

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.

","abstract":false,"args":[{"name":"timeout","default_value":"5.seconds","external_name":"timeout","restriction":"::Time::Span"},{"name":"interval","default_value":"0.2.seconds","external_name":"interval","restriction":"::Time::Span"},{"name":"ignored","default_value":"[Selenium::Error]","external_name":"ignored","restriction":"::Array(::Exception) | ::Array(::Selenium::Error.class)"},{"name":"message","default_value":"nil","external_name":"message","restriction":"String | ::Nil"}],"args_string":"(timeout : Time::Span = 5.seconds, interval : Time::Span = 0.2.seconds, ignored : Array(Exception) | Array(::Selenium::Error.class) = [Selenium::Error], message : String | Nil = nil)","args_html":"(timeout : Time::Span = 5.seconds, interval : Time::Span = 0.2.seconds, ignored : Array(Exception) | Array(::Selenium::Error.class) = [Selenium::Error], message : String | Nil = nil)","location":{"filename":"src/selenium/helpers/wait.cr","line_number":12,"url":null},"def":{"name":"new","args":[{"name":"timeout","default_value":"5.seconds","external_name":"timeout","restriction":"::Time::Span"},{"name":"interval","default_value":"0.2.seconds","external_name":"interval","restriction":"::Time::Span"},{"name":"ignored","default_value":"[Selenium::Error]","external_name":"ignored","restriction":"::Array(::Exception) | ::Array(::Selenium::Error.class)"},{"name":"message","default_value":"nil","external_name":"message","restriction":"String | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(timeout, interval, ignored, message)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"until(&):Nil-instance-method","name":"until","doc":"Wait until the given block returns a `true` value.\nOtherwise raise an exception `IO::TimeoutError`.\n\n```\nwait = Selenium::Helpers::Wait.new(timeout: 10.seconds, interval: 1.second)\nwait.until { session.document_manager.execute_script(\"return document.readyState;\") == \"complete\" }\n```","summary":"

Wait until the given block returns a true value.

","abstract":false,"location":{"filename":"src/selenium/helpers/wait.cr","line_number":22,"url":null},"def":{"name":"until","yields":0,"block_arity":0,"return_type":"Nil","visibility":"Public","body":"end_time = current_time + @timeout\nlast_error : Exception | ::Nil = nil\nwhile !current_time > end_time\n begin\n result = yield\n if result\n return result\n end\n rescue ex\n last_error = ex\n if @ignored.includes?(ex.class)\n else\n raise(ex)\n end\n end\n sleep(@interval)\nend\nmessage = @message || \"timed out after #{@timeout.seconds} seconds\"\nif last_error\n message = message + \" (#{last_error.message})\"\nend\nraise(IO::TimeoutError.new(message))\n"}}]}]},{"html_id":"selenium/Selenium/HttpClient","path":"Selenium/HttpClient.html","kind":"class","full_name":"Selenium::HttpClient","name":"HttpClient","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/http_client.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(base_url:String)-class-method","name":"new","abstract":false,"args":[{"name":"base_url","external_name":"base_url","restriction":"::String"}],"args_string":"(base_url : String)","args_html":"(base_url : String)","location":{"filename":"src/selenium/http_client.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"base_url","external_name":"base_url","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(base_url)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base_url:String-instance-method","name":"base_url","abstract":false,"location":{"filename":"src/selenium/http_client.cr","line_number":2,"url":null},"def":{"name":"base_url","return_type":"String","visibility":"Public","body":"@base_url"}},{"html_id":"delete(path):JSON::Any-instance-method","name":"delete","abstract":false,"args":[{"name":"path","external_name":"path","restriction":""}],"args_string":"(path) : JSON::Any","args_html":"(path) : JSON::Any","location":{"filename":"src/selenium/http_client.cr","line_number":18,"url":null},"def":{"name":"delete","args":[{"name":"path","external_name":"path","restriction":""}],"return_type":"JSON::Any","visibility":"Public","body":"response = HTTP::Client.delete(base_url + path)\nparsed_response = JSON.parse(response.body)\nif has_error?(parsed_response)\n raise(Error.from_json(parsed_response[\"value\"].to_json))\nend\nparsed_response\n"}},{"html_id":"get(path):JSON::Any-instance-method","name":"get","abstract":false,"args":[{"name":"path","external_name":"path","restriction":""}],"args_string":"(path) : JSON::Any","args_html":"(path) : JSON::Any","location":{"filename":"src/selenium/http_client.cr","line_number":28,"url":null},"def":{"name":"get","args":[{"name":"path","external_name":"path","restriction":""}],"return_type":"JSON::Any","visibility":"Public","body":"response = HTTP::Client.get(base_url + path)\nparsed_response = JSON.parse(response.body)\nif has_error?(parsed_response)\n raise(Error.from_json(parsed_response[\"value\"].to_json))\nend\nparsed_response\n"}},{"html_id":"post(path,body=\"{}\"):JSON::Any-instance-method","name":"post","abstract":false,"args":[{"name":"path","external_name":"path","restriction":""},{"name":"body","default_value":"\"{}\"","external_name":"body","restriction":""}],"args_string":"(path, body = \"{}\") : JSON::Any","args_html":"(path, body = "{}") : JSON::Any","location":{"filename":"src/selenium/http_client.cr","line_number":7,"url":null},"def":{"name":"post","args":[{"name":"path","external_name":"path","restriction":""},{"name":"body","default_value":"\"{}\"","external_name":"body","restriction":""}],"return_type":"JSON::Any","visibility":"Public","body":"url = base_url + path\nresponse = HTTP::Client.post(url, body: body)\nparsed_response = JSON.parse(response.body)\nif has_error?(parsed_response)\n raise(Error.from_json(parsed_response[\"value\"].to_json))\nend\nparsed_response\n"}}]},{"html_id":"selenium/Selenium/InputSourceActionSequence","path":"Selenium/InputSourceActionSequence.html","kind":"struct","full_name":"Selenium::InputSourceActionSequence","name":"InputSourceActionSequence","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/input_source_action_sequence.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(type:String,id:String,actions:Array(Selenium::Action))-class-method","name":"new","abstract":false,"args":[{"name":"type","external_name":"type","restriction":"::String"},{"name":"id","external_name":"id","restriction":"::String"},{"name":"actions","external_name":"actions","restriction":"::Array(::Selenium::Action)"}],"args_string":"(type : String, id : String, actions : Array(Selenium::Action))","args_html":"(type : String, id : String, actions : Array(Selenium::Action))","location":{"filename":"src/selenium/input_source_action_sequence.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"type","external_name":"type","restriction":"::String"},{"name":"id","external_name":"id","restriction":"::String"},{"name":"actions","external_name":"actions","restriction":"::Array(::Selenium::Action)"}],"visibility":"Public","body":"_ = allocate\n_.initialize(type, id, actions)\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/input_source_action_sequence.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":"actions:Array(Action)-instance-method","name":"actions","abstract":false,"location":{"filename":"src/selenium/input_source_action_sequence.cr","line_number":6,"url":null},"def":{"name":"actions","return_type":"Array(Action)","visibility":"Public","body":"@actions"}},{"html_id":"id:String-instance-method","name":"id","abstract":false,"location":{"filename":"src/selenium/input_source_action_sequence.cr","line_number":5,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"type:String-instance-method","name":"type","abstract":false,"location":{"filename":"src/selenium/input_source_action_sequence.cr","line_number":4,"url":null},"def":{"name":"type","return_type":"String","visibility":"Public","body":"@type"}}]},{"html_id":"selenium/Selenium/InvalidTagError","path":"Selenium/InvalidTagError.html","kind":"class","full_name":"Selenium::InvalidTagError","name":"InvalidTagError","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":5,"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(expected:String,got:String)-class-method","name":"new","abstract":false,"args":[{"name":"expected","external_name":"expected","restriction":"String"},{"name":"got","external_name":"got","restriction":"String"}],"args_string":"(expected : String, got : String)","args_html":"(expected : String, got : String)","location":{"filename":"src/selenium/errors.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"expected","external_name":"expected","restriction":"String"},{"name":"got","external_name":"got","restriction":"String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(expected, got)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}]},{"html_id":"selenium/Selenium/LocationStrategy","path":"Selenium/LocationStrategy.html","kind":"enum","full_name":"Selenium::LocationStrategy","name":"LocationStrategy","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/location_strategy.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"CSS","name":"CSS","value":"0"},{"id":"LINK_TEXT","name":"LINK_TEXT","value":"1"},{"id":"PARTIAL_LINK_TEXT","name":"PARTIAL_LINK_TEXT","value":"2"},{"id":"TAG_NAME","name":"TAG_NAME","value":"3"},{"id":"XPATH","name":"XPATH","value":"4"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"class_methods":[{"html_id":"from_symbol(symbol)-class-method","name":"from_symbol","abstract":false,"args":[{"name":"symbol","external_name":"symbol","restriction":""}],"args_string":"(symbol)","args_html":"(symbol)","location":{"filename":"src/selenium/location_strategy.cr","line_number":23,"url":null},"def":{"name":"from_symbol","args":[{"name":"symbol","external_name":"symbol","restriction":""}],"visibility":"Public","body":"case symbol\nwhen :css\n CSS\nwhen :link_text\n LINK_TEXT\nwhen :partial_link_text\n PARTIAL_LINK_TEXT\nwhen :tag_name\n TAG_NAME\nwhen :xpath\n XPATH\nelse\n raise(ArgumentError.new(\"Unsupported location strategy: #{symbol}\"))\nend"}},{"html_id":"transform_extra_strategies(symbol:Symbol,value:String):Tuple(Symbol,String)-class-method","name":"transform_extra_strategies","abstract":false,"args":[{"name":"symbol","external_name":"symbol","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":"String"}],"args_string":"(symbol : Symbol, value : String) : Tuple(Symbol, String)","args_html":"(symbol : Symbol, value : String) : Tuple(Symbol, String)","location":{"filename":"src/selenium/location_strategy.cr","line_number":8,"url":null},"def":{"name":"transform_extra_strategies","args":[{"name":"symbol","external_name":"symbol","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":"String"}],"return_type":"::Tuple(Symbol, String)","visibility":"Public","body":"case symbol\nwhen :class\n symbol = :css\n value = \".#{value}\"\nwhen :id\n symbol = :css\n value = \"##{value}\"\nwhen :name\n symbol = :xpath\n value = \".//*[@name='#{value}']\"\nend\n{symbol, value}\n"}}],"instance_methods":[{"html_id":"css?-instance-method","name":"css?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":2,"url":null},"def":{"name":"css?","visibility":"Public","body":"self == CSS"}},{"html_id":"link_text?-instance-method","name":"link_text?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":3,"url":null},"def":{"name":"link_text?","visibility":"Public","body":"self == LINK_TEXT"}},{"html_id":"partial_link_text?-instance-method","name":"partial_link_text?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":4,"url":null},"def":{"name":"partial_link_text?","visibility":"Public","body":"self == PARTIAL_LINK_TEXT"}},{"html_id":"tag_name?-instance-method","name":"tag_name?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":5,"url":null},"def":{"name":"tag_name?","visibility":"Public","body":"self == TAG_NAME"}},{"html_id":"to_json(builder)-instance-method","name":"to_json","abstract":false,"args":[{"name":"builder","external_name":"builder","restriction":""}],"args_string":"(builder)","args_html":"(builder)","location":{"filename":"src/selenium/location_strategy.cr","line_number":40,"url":null},"def":{"name":"to_json","args":[{"name":"builder","external_name":"builder","restriction":""}],"visibility":"Public","body":"builder.string(convert_to_string)"}},{"html_id":"xpath?-instance-method","name":"xpath?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":6,"url":null},"def":{"name":"xpath?","visibility":"Public","body":"self == XPATH"}}]},{"html_id":"selenium/Selenium/NavigationManager","path":"Selenium/NavigationManager.html","kind":"class","full_name":"Selenium::NavigationManager","name":"NavigationManager","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/navigation_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/navigation_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/navigation_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"go_back-instance-method","name":"go_back","abstract":false,"location":{"filename":"src/selenium/navigation_manager.cr","line_number":8,"url":null},"def":{"name":"go_back","visibility":"Public","body":"command_handler.execute(:back, path_variables)"}},{"html_id":"go_forward-instance-method","name":"go_forward","abstract":false,"location":{"filename":"src/selenium/navigation_manager.cr","line_number":12,"url":null},"def":{"name":"go_forward","visibility":"Public","body":"command_handler.execute(:forward, path_variables)"}},{"html_id":"refresh-instance-method","name":"refresh","abstract":false,"location":{"filename":"src/selenium/navigation_manager.cr","line_number":16,"url":null},"def":{"name":"refresh","visibility":"Public","body":"command_handler.execute(:refresh, path_variables)"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/navigation_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}}]},{"html_id":"selenium/Selenium/Remote","path":"Selenium/Remote.html","kind":"module","full_name":"Selenium::Remote","name":"Remote","abstract":false,"locations":[{"filename":"src/selenium/remote/driver.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/Remote/Driver","path":"Selenium/Remote/Driver.html","kind":"class","full_name":"Selenium::Remote::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/remote/driver.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Remote","kind":"module","full_name":"Selenium::Remote","name":"Remote"},"instance_methods":[{"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/remote/driver.cr","line_number":2,"url":null},"def":{"name":"create_session","args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"return_type":"Session","visibility":"Public","body":"create_session(Selenium::Capabilities.new)"}}]}]},{"html_id":"selenium/Selenium/Safari","path":"Selenium/Safari.html","kind":"module","full_name":"Selenium::Safari","name":"Safari","abstract":false,"locations":[{"filename":"src/selenium/safari/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/Safari/Capabilities","path":"Selenium/Safari/Capabilities.html","kind":"class","full_name":"Selenium::Safari::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/safari/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Safari","kind":"module","full_name":"Selenium::Safari","name":"Safari"},"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/safari/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)"}}]},{"html_id":"selenium/Selenium/Safari/Driver","path":"Selenium/Safari/Driver.html","kind":"class","full_name":"Selenium::Safari::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/safari/driver.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Safari","kind":"module","full_name":"Selenium::Safari","name":"Safari"},"instance_methods":[{"html_id":"create_session(capabilities:Safari::Capabilities):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"capabilities","external_name":"capabilities","restriction":"Safari::Capabilities"}],"args_string":"(capabilities : Safari::Capabilities) : Session","args_html":"(capabilities : Safari::Capabilities) : Session","location":{"filename":"src/selenium/safari/driver.cr","line_number":2,"url":null},"def":{"name":"create_session","args":[{"name":"capabilities","external_name":"capabilities","restriction":"Safari::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/safari/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":"create_session(Safari::Capabilities.new)"}}]},{"html_id":"selenium/Selenium/Safari/Service","path":"Selenium/Safari/Service.html","kind":"class","full_name":"Selenium::Safari::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/safari/service.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Safari","kind":"module","full_name":"Selenium::Safari","name":"Safari"},"instance_methods":[{"html_id":"default_port:Int32-instance-method","name":"default_port","abstract":false,"location":{"filename":"src/selenium/safari/service.cr","line_number":2,"url":null},"def":{"name":"default_port","return_type":"Int32","visibility":"Public","body":"7050"}},{"html_id":"stop-instance-method","name":"stop","abstract":false,"location":{"filename":"src/selenium/safari/service.cr","line_number":6,"url":null},"def":{"name":"stop","visibility":"Public","body":"stop_process(process)"}}]}]},{"html_id":"selenium/Selenium/SendKeyConverter","path":"Selenium/SendKeyConverter.html","kind":"class","full_name":"Selenium::SendKeyConverter","name":"SendKeyConverter","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/send_key_converter.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"KEYS","name":"KEYS","value":"{null: \"\\uE000\", cancel: \"\\uE001\", help: \"\\uE002\", backspace: \"\\uE003\", tab: \"\\uE004\", clear: \"\\uE005\", return: \"\\uE006\", enter: \"\\uE007\", shift: \"\\uE008\", left_shift: \"\\uE008\", control: \"\\uE009\", left_control: \"\\uE009\", alt: \"\\uE00A\", left_alt: \"\\uE00A\", pause: \"\\uE00B\", escape: \"\\uE00C\", space: \"\\uE00D\", page_up: \"\\uE00E\", page_down: \"\\uE00F\", end: \"\\uE010\", home: \"\\uE011\", left: \"\\uE012\", arrow_left: \"\\uE012\", up: \"\\uE013\", arrow_up: \"\\uE013\", right: \"\\uE014\", arrow_right: \"\\uE014\", down: \"\\uE015\", arrow_down: \"\\uE015\", insert: \"\\uE016\", delete: \"\\uE017\", semicolon: \"\\uE018\", equals: \"\\uE019\", numpad0: \"\\uE01A\", numpad1: \"\\uE01B\", numpad2: \"\\uE01C\", numpad3: \"\\uE01D\", numpad4: \"\\uE01E\", numpad5: \"\\uE01F\", numpad6: \"\\uE020\", numpad7: \"\\uE021\", numpad8: \"\\uE022\", numpad9: \"\\uE023\", multiply: \"\\uE024\", add: \"\\uE025\", separator: \"\\uE026\", subtract: \"\\uE027\", decimal: \"\\uE028\", divide: \"\\uE029\", f1: \"\\uE031\", f2: \"\\uE032\", f3: \"\\uE033\", f4: \"\\uE034\", f5: \"\\uE035\", f6: \"\\uE036\", f7: \"\\uE037\", f8: \"\\uE038\", f9: \"\\uE039\", f10: \"\\uE03A\", f11: \"\\uE03B\", f12: \"\\uE03C\", meta: \"\\uE03D\", command: \"\\uE03D\", left_meta: \"\\uE03D\", right_shift: \"\\uE050\", right_control: \"\\uE051\", right_alt: \"\\uE052\", right_meta: \"\\uE053\", numpad_page_up: \"\\uE054\", numpad_page_down: \"\\uE055\", numpad_end: \"\\uE056\", numpad_home: \"\\uE057\", numpad_left: \"\\uE058\", numpad_up: \"\\uE059\", numpad_right: \"\\uE05A\", numpad_down: \"\\uE05B\", numpad_insert: \"\\uE05C\", numpad_delete: \"\\uE05D\"}"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"class_methods":[{"html_id":"encode(keys:Array(String|Symbol)):String-class-method","name":"encode","abstract":false,"args":[{"name":"keys","external_name":"keys","restriction":"Array(String | Symbol)"}],"args_string":"(keys : Array(String | Symbol)) : String","args_html":"(keys : Array(String | Symbol)) : String","location":{"filename":"src/selenium/send_key_converter.cr","line_number":2,"url":null},"def":{"name":"encode","args":[{"name":"keys","external_name":"keys","restriction":"Array(String | Symbol)"}],"return_type":"String","visibility":"Public","body":"keys.join do |key|\n encode(key)\nend"}}]},{"html_id":"selenium/Selenium/Service","path":"Selenium/Service.html","kind":"class","full_name":"Selenium::Service","name":"Service","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/service.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"CONNECTION_INTERVAL","name":"CONNECTION_INTERVAL","value":"1.seconds"},{"id":"CONNECTION_TIMEOUT","name":"CONNECTION_TIMEOUT","value":"5.seconds"}],"subclasses":[{"html_id":"selenium/Selenium/Chrome/Service","kind":"class","full_name":"Selenium::Chrome::Service","name":"Service"},{"html_id":"selenium/Selenium/Firefox/Service","kind":"class","full_name":"Selenium::Firefox::Service","name":"Service"},{"html_id":"selenium/Selenium/Safari/Service","kind":"class","full_name":"Selenium::Safari::Service","name":"Service"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"class_methods":[{"html_id":"chrome(**opts)-class-method","name":"chrome","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":5,"url":null},"def":{"name":"chrome","double_splat":{"name":"opts","external_name":"opts","restriction":""},"visibility":"Public","body":"Chrome::Service.new(**opts)"}},{"html_id":"firefox(**opts)-class-method","name":"firefox","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":9,"url":null},"def":{"name":"firefox","double_splat":{"name":"opts","external_name":"opts","restriction":""},"visibility":"Public","body":"Firefox::Service.new(**opts)"}},{"html_id":"safari(**opts)-class-method","name":"safari","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":13,"url":null},"def":{"name":"safari","double_splat":{"name":"opts","external_name":"opts","restriction":""},"visibility":"Public","body":"Safari::Service.new(**opts)"}}],"constructors":[{"html_id":"new(driver_path:String,port:Int32=default_port,args:Array(String)=[]ofString)-class-method","name":"new","abstract":false,"args":[{"name":"driver_path","external_name":"driver_path","restriction":"String"},{"name":"port","default_value":"default_port","external_name":"port","restriction":"Int32"},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"::Array(::String)"}],"args_string":"(driver_path : String, port : Int32 = default_port, args : Array(String) = [] of String)","args_html":"(driver_path : String, port : Int32 = default_port, args : Array(String) = [] of String)","location":{"filename":"src/selenium/service.cr","line_number":19,"url":null},"def":{"name":"new","args":[{"name":"driver_path","external_name":"driver_path","restriction":"String"},{"name":"port","default_value":"default_port","external_name":"port","restriction":"Int32"},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"::Array(::String)"}],"visibility":"Public","body":"_ = allocate\n_.initialize(driver_path, port, args)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base_url:String-instance-method","name":"base_url","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":35,"url":null},"def":{"name":"base_url","return_type":"String","visibility":"Public","body":"\"http://localhost:#{@port}\""}},{"html_id":"default_port:Int32-instance-method","name":"default_port","abstract":true,"location":{"filename":"src/selenium/service.cr","line_number":39,"url":null},"def":{"name":"default_port","return_type":"Int32","visibility":"Public","body":""}},{"html_id":"start-instance-method","name":"start","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":22,"url":null},"def":{"name":"start","visibility":"Public","body":"find_free_port\nstart_process\nverify_running\n"}},{"html_id":"stop-instance-method","name":"stop","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":28,"url":null},"def":{"name":"stop","visibility":"Public","body":"begin\n send_shutdown_command\n process.try(&.wait)\nensure\n stop_process(process)\nend"}}]},{"html_id":"selenium/Selenium/Session","path":"Selenium/Session.html","kind":"class","full_name":"Selenium::Session","name":"Session","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/session.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(http_client:Selenium::HttpClient,command_handler:Selenium::CommandHandler,id:String)-class-method","name":"new","abstract":false,"args":[{"name":"http_client","external_name":"http_client","restriction":"::Selenium::HttpClient"},{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"id","external_name":"id","restriction":"::String"}],"args_string":"(http_client : Selenium::HttpClient, command_handler : Selenium::CommandHandler, id : String)","args_html":"(http_client : Selenium::HttpClient, command_handler : Selenium::CommandHandler, id : String)","location":{"filename":"src/selenium/session.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"http_client","external_name":"http_client","restriction":"::Selenium::HttpClient"},{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"id","external_name":"id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(http_client, command_handler, id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"active_element-instance-method","name":"active_element","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":77,"url":null},"def":{"name":"active_element","visibility":"Public","body":"data = command_handler.execute(:get_active_element, path_variables)\nentry = data[\"value\"].as_h\nElement.new(command_handler, id, entry.first_value.as_s)\n"}},{"html_id":"alert_manager-instance-method","name":"alert_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":25,"url":null},"def":{"name":"alert_manager","visibility":"Public","body":"AlertManager.new(command_handler, id)"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":3,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"cookie_manager-instance-method","name":"cookie_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":21,"url":null},"def":{"name":"cookie_manager","visibility":"Public","body":"CookieManager.new(command_handler, id)"}},{"html_id":"current_url-instance-method","name":"current_url","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":83,"url":null},"def":{"name":"current_url","visibility":"Public","body":"data = command_handler.execute(:get_current_url, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"delete-instance-method","name":"delete","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":37,"url":null},"def":{"name":"delete","visibility":"Public","body":"command_handler.execute(:delete_session, path_variables)"}},{"html_id":"document_manager-instance-method","name":"document_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":13,"url":null},"def":{"name":"document_manager","visibility":"Public","body":"DocumentManager.new(command_handler, id)"}},{"html_id":"find_element(using:LocationStrategy,value)-instance-method","name":"find_element","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : LocationStrategy, value)","args_html":"(using : LocationStrategy, value)","location":{"filename":"src/selenium/session.cr","line_number":45,"url":null},"def":{"name":"find_element","args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:find_element, path_variables, {using: using, value: value})\nentry = data[\"value\"].as_h\nElement.new(command_handler, id, entry.first_value.as_s)\n"}},{"html_id":"find_element(using:Symbol,value)-instance-method","name":"find_element","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : Symbol, value)","args_html":"(using : Symbol, value)","location":{"filename":"src/selenium/session.cr","line_number":55,"url":null},"def":{"name":"find_element","args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"using, value = LocationStrategy.transform_extra_strategies(using, value)\nfind_element(LocationStrategy.from_symbol(using), value)\n"}},{"html_id":"find_elements(using:LocationStrategy,value)-instance-method","name":"find_elements","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : LocationStrategy, value)","args_html":"(using : LocationStrategy, value)","location":{"filename":"src/selenium/session.cr","line_number":60,"url":null},"def":{"name":"find_elements","args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:find_elements, path_variables, {using: using, value: value})\nelement_ids = data[\"value\"].as_a.map() do |__arg0|\n __arg0.as_h.first_value.as_s\nend\nelement_ids.map do |element_id|\n Element.new(command_handler, id, element_id)\nend\n"}},{"html_id":"find_elements(using:Symbol,value)-instance-method","name":"find_elements","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : Symbol, value)","args_html":"(using : Symbol, value)","location":{"filename":"src/selenium/session.cr","line_number":72,"url":null},"def":{"name":"find_elements","args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"using, value = LocationStrategy.transform_extra_strategies(using, value)\nfind_elements(LocationStrategy.from_symbol(using), value)\n"}},{"html_id":"http_client:HttpClient-instance-method","name":"http_client","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":2,"url":null},"def":{"name":"http_client","return_type":"HttpClient","visibility":"Public","body":"@http_client"}},{"html_id":"id:SessionId-instance-method","name":"id","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":4,"url":null},"def":{"name":"id","return_type":"SessionId","visibility":"Public","body":"@id"}},{"html_id":"local_storage_manager-instance-method","name":"local_storage_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":29,"url":null},"def":{"name":"local_storage_manager","visibility":"Public","body":"WebStorageManager.new(document_manager, WebStorageManager::StorageType::LocalStorage)"}},{"html_id":"move_to(x:Int32,y:Int32)-instance-method","name":"move_to","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/session.cr","line_number":137,"url":null},"def":{"name":"move_to","args":[{"name":"x","external_name":"x","restriction":"Int32"},{"name":"y","external_name":"y","restriction":"Int32"}],"visibility":"Public","body":"sequence = Selenium::InputSourceActionSequence.new(type: \"pointer\", id: \"action-sequence-key\", actions: [Selenium::Action.new(\"pointerMove\", x: x, y: y)])\nperform_actions([sequence])\n"}},{"html_id":"move_to(element:Selenium::Element)-instance-method","name":"move_to","abstract":false,"args":[{"name":"element","external_name":"element","restriction":"Selenium::Element"}],"args_string":"(element : Selenium::Element)","args_html":"(element : Selenium::Element)","location":{"filename":"src/selenium/session.cr","line_number":130,"url":null},"def":{"name":"move_to","args":[{"name":"element","external_name":"element","restriction":"Selenium::Element"}],"visibility":"Public","body":"midpoint = element.rect.try(&.midpoint)\nif midpoint.nil?\n return\nend\nmove_to(x: midpoint.x, y: midpoint.y)\n"}},{"html_id":"navigate_to(url)-instance-method","name":"navigate_to","abstract":false,"args":[{"name":"url","external_name":"url","restriction":""}],"args_string":"(url)","args_html":"(url)","location":{"filename":"src/selenium/session.cr","line_number":41,"url":null},"def":{"name":"navigate_to","args":[{"name":"url","external_name":"url","restriction":""}],"visibility":"Public","body":"command_handler.execute(:navigate_to, path_variables, {url: url})"}},{"html_id":"navigation_manager-instance-method","name":"navigation_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":17,"url":null},"def":{"name":"navigation_manager","visibility":"Public","body":"NavigationManager.new(command_handler, id)"}},{"html_id":"perform_actions(action_sequence)-instance-method","name":"perform_actions","abstract":false,"args":[{"name":"action_sequence","external_name":"action_sequence","restriction":""}],"args_string":"(action_sequence)","args_html":"(action_sequence)","location":{"filename":"src/selenium/session.cr","line_number":107,"url":null},"def":{"name":"perform_actions","args":[{"name":"action_sequence","external_name":"action_sequence","restriction":""}],"visibility":"Public","body":"parameters = {actions: action_sequence}\ncommand_handler.execute(:perform_actions, path_variables, parameters)\n"}},{"html_id":"release_actions-instance-method","name":"release_actions","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":112,"url":null},"def":{"name":"release_actions","visibility":"Public","body":"command_handler.execute(:release_actions, path_variables)"}},{"html_id":"screenshot(file_path:String|File)-instance-method","name":"screenshot","abstract":false,"args":[{"name":"file_path","external_name":"file_path","restriction":"String | File"}],"args_string":"(file_path : String | File)","args_html":"(file_path : String | File)","location":{"filename":"src/selenium/session.cr","line_number":93,"url":null},"def":{"name":"screenshot","args":[{"name":"file_path","external_name":"file_path","restriction":"String | File"}],"visibility":"Public","body":"data = command_handler.execute(:take_screenshot, path_variables)\nFile.write(file_path.to_s, Base64.decode(data[\"value\"].as_s))\n"}},{"html_id":"session_storage_manager-instance-method","name":"session_storage_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":33,"url":null},"def":{"name":"session_storage_manager","visibility":"Public","body":"WebStorageManager.new(document_manager, WebStorageManager::StorageType::SessionStorage)"}},{"html_id":"set_timeouts(timeouts)-instance-method","name":"set_timeouts","abstract":false,"args":[{"name":"timeouts","external_name":"timeouts","restriction":""}],"args_string":"(timeouts)","args_html":"(timeouts)","location":{"filename":"src/selenium/session.cr","line_number":103,"url":null},"def":{"name":"set_timeouts","args":[{"name":"timeouts","external_name":"timeouts","restriction":""}],"visibility":"Public","body":"command_handler.execute(:set_timeouts, path_variables, timeouts)"}},{"html_id":"switch_to_frame(id)-instance-method","name":"switch_to_frame","doc":"TODO: write test once it is understood:\n- how to know/acquire the frame id\n- what a frame is\n- what switching frames will do","summary":"

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

","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"}],"args_string":"(name : String)","args_html":"(name : String)","location":{"filename":"src/selenium/web_storage_manager.cr","line_number":37,"url":null},"def":{"name":"remove","args":[{"name":"name","external_name":"name","restriction":"String"}],"visibility":"Public","body":"document_manager.execute_script(\"#{storage_type_in_js}.removeItem('#{name}')\")"}},{"html_id":"size:Int-instance-method","name":"size","doc":"Retrieve the number of items in the Storage","summary":"

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 ()\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Matthew McGarvey](https://github.com/matthewmcgarvey) - creator and maintainer\n","program":{"html_id":"selenium/toplevel","path":"toplevel.html","kind":"module","full_name":"Top Level Namespace","name":"Top Level Namespace","abstract":false,"locations":[],"repository_name":"selenium","program":true,"enum":false,"alias":false,"const":false,"types":[{"html_id":"selenium/Selenium","path":"Selenium.html","kind":"module","full_name":"Selenium","name":"Selenium","abstract":false,"locations":[{"filename":"src/selenium.cr","line_number":15,"url":null},{"filename":"src/selenium/default_commands.cr","line_number":1,"url":null},{"filename":"src/selenium/errors.cr","line_number":1,"url":null},{"filename":"src/selenium/types.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"VERSION","name":"VERSION","value":"\"0.12.0\""}],"types":[{"html_id":"selenium/Selenium/Action","path":"Selenium/Action.html","kind":"class","full_name":"Selenium::Action","name":"Action","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/action.cr","line_number":3,"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"},"doc":"I want to have seperate actions for each type (pause, pointer, key)\nbut when I did that, I wasn't able to get the type union or inheritance working for some reason","summary":"

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

","class_methods":[{"html_id":"for(browser,**opts)-class-method","name":"for","doc":"*browser* options:\n- :chrome (see `Selenium::Chrome::Driver`)\n- :firefox or :gecko (see `Selenium::Firefox::Driver`)\n- :safari (see `Selenium::Safari::Driver`)\n- :remote (see `Selenium::Remote::Driver`)","summary":"

browser options: - :chrome (see Selenium::Chrome::Driver) - :firefox or :gecko (see Selenium::Firefox::Driver) - :safari (see Selenium::Safari::Driver) - :remote (see Selenium::Remote::Driver)

","abstract":false,"args":[{"name":"browser","external_name":"browser","restriction":""}],"args_string":"(browser, **opts)","args_html":"(browser, **opts)","location":{"filename":"src/selenium/driver.cr","line_number":13,"url":null},"def":{"name":"for","args":[{"name":"browser","external_name":"browser","restriction":""}],"double_splat":{"name":"opts","external_name":"opts","restriction":""},"visibility":"Public","body":"case browser\nwhen :chrome\n Chrome::Driver.new(**opts)\nwhen :firefox, :gecko\n Firefox::Driver.new(**opts)\nwhen :remote\n Remote::Driver.new(**opts)\nwhen :safari\n Safari::Driver.new(**opts)\nelse\n raise(ArgumentError.new(\"unknown driver: #{browser}\"))\nend"}}],"constructors":[{"html_id":"new(base_url:String|Nil=nil,service:Service|Nil=nil)-class-method","name":"new","abstract":false,"args":[{"name":"base_url","default_value":"nil","external_name":"base_url","restriction":"String | ::Nil"},{"name":"service","default_value":"nil","external_name":"service","restriction":"Service | ::Nil"}],"args_string":"(base_url : String | Nil = nil, service : Service | Nil = nil)","args_html":"(base_url : String | Nil = nil, service : Service | Nil = nil)","location":{"filename":"src/selenium/driver.cr","line_number":32,"url":null},"def":{"name":"new","args":[{"name":"base_url","default_value":"nil","external_name":"base_url","restriction":"String | ::Nil"},{"name":"service","default_value":"nil","external_name":"service","restriction":"Service | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(base_url, service)\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/driver.cr","line_number":29,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"create_session(args:Array(String)):Session-instance-method","name":"create_session","abstract":true,"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/driver.cr","line_number":39,"url":null},"def":{"name":"create_session","args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"return_type":"Session","visibility":"Public","body":""}},{"html_id":"create_session(capabilities,retry=true):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"capabilities","external_name":"capabilities","restriction":""},{"name":"retry","default_value":"true","external_name":"retry","restriction":""}],"args_string":"(capabilities, retry = true) : Session","args_html":"(capabilities, retry = true) : Session","location":{"filename":"src/selenium/driver.cr","line_number":41,"url":null},"def":{"name":"create_session","args":[{"name":"capabilities","external_name":"capabilities","restriction":""},{"name":"retry","default_value":"true","external_name":"retry","restriction":""}],"return_type":"Session","visibility":"Public","body":"begin\n parameters = {capabilities: {alwaysMatch: capabilities}}\n data = command_handler.execute(:new_session, parameters: parameters)\n Session.new(http_client, command_handler, (data.dig(\"value\", \"sessionId\")).as_s)\nrescue ex : Error\n if retry\n create_session(capabilities, retry: false)\n else\n raise(ex)\n end\nend"}},{"html_id":"http_client:HttpClient-instance-method","name":"http_client","abstract":false,"location":{"filename":"src/selenium/driver.cr","line_number":28,"url":null},"def":{"name":"http_client","return_type":"HttpClient","visibility":"Public","body":"@http_client"}},{"html_id":"service:Service|Nil-instance-method","name":"service","abstract":false,"location":{"filename":"src/selenium/driver.cr","line_number":30,"url":null},"def":{"name":"service","return_type":"Service | ::Nil","visibility":"Public","body":"@service"}},{"html_id":"status:Status-instance-method","name":"status","abstract":false,"location":{"filename":"src/selenium/driver.cr","line_number":54,"url":null},"def":{"name":"status","return_type":"Status","visibility":"Public","body":"data = command_handler.execute(:status)\nStatus.from_json(data[\"value\"].to_json)\n"}},{"html_id":"stop-instance-method","name":"stop","abstract":false,"location":{"filename":"src/selenium/driver.cr","line_number":60,"url":null},"def":{"name":"stop","visibility":"Public","body":"service.try(&.stop)"}}]},{"html_id":"selenium/Selenium/Element","path":"Selenium/Element.html","kind":"class","full_name":"Selenium::Element","name":"Element","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/element.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"ELEMENT_KEY","name":"ELEMENT_KEY","value":"\"element-6066-11e4-a52e-4f735466cecf\""}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"constructors":[{"html_id":"new(command_handler:Selenium::CommandHandler,session_id:String,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"},{"name":"id","external_name":"id","restriction":"::String"}],"args_string":"(command_handler : Selenium::CommandHandler, session_id : String, id : String)","args_html":"(command_handler : Selenium::CommandHandler, session_id : String, id : String)","location":{"filename":"src/selenium/element.cr","line_number":8,"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"},{"name":"id","external_name":"id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(command_handler, session_id, id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"attribute(name)-instance-method","name":"attribute","doc":"`attribute` is for referencing static fields\nif you are trying to access fields that change you should use `property`","summary":"

#attribute is for referencing static fields if you are trying to access fields that change you should use #property

","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""}],"args_string":"(name)","args_html":"(name)","location":{"filename":"src/selenium/element.cr","line_number":46,"url":null},"def":{"name":"attribute","args":[{"name":"name","external_name":"name","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:get_element_attribute, path_variables.merge({\":name\" => name}))\ndata[\"value\"].as_s?\n"}},{"html_id":"clear-instance-method","name":"clear","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":40,"url":null},"def":{"name":"clear","visibility":"Public","body":"command_handler.execute(:element_clear, path_variables)"}},{"html_id":"click-instance-method","name":"click","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":11,"url":null},"def":{"name":"click","visibility":"Public","body":"command_handler.execute(:element_click, path_variables)"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"css_value(property_name)-instance-method","name":"css_value","abstract":false,"args":[{"name":"property_name","external_name":"property_name","restriction":""}],"args_string":"(property_name)","args_html":"(property_name)","location":{"filename":"src/selenium/element.cr","line_number":56,"url":null},"def":{"name":"css_value","args":[{"name":"property_name","external_name":"property_name","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:get_element_css_value, path_variables.merge({\":property_name\" => property_name}))\ndata[\"value\"].as_s?\n"}},{"html_id":"displayed?-instance-method","name":"displayed?","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":135,"url":null},"def":{"name":"displayed?","visibility":"Public","body":"data = command_handler.execute(:is_element_displayed, path_variables)\ndata[\"value\"].as_bool\n"}},{"html_id":"enabled?-instance-method","name":"enabled?","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":123,"url":null},"def":{"name":"enabled?","visibility":"Public","body":"data = command_handler.execute(:is_element_enabled, path_variables)\ndata[\"value\"].as_bool\n"}},{"html_id":"find_child_element(using:Symbol,value)-instance-method","name":"find_child_element","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : Symbol, value)","args_html":"(using : Symbol, value)","location":{"filename":"src/selenium/element.cr","line_number":80,"url":null},"def":{"name":"find_child_element","args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"using, value = LocationStrategy.transform_extra_strategies(using, value)\nfind_child_element(LocationStrategy.from_symbol(using), value)\n"}},{"html_id":"find_child_element(using:LocationStrategy,value)-instance-method","name":"find_child_element","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : LocationStrategy, value)","args_html":"(using : LocationStrategy, value)","location":{"filename":"src/selenium/element.cr","line_number":70,"url":null},"def":{"name":"find_child_element","args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"parameters = {using: using, value: value}\ndata = command_handler.execute(:find_element_from_element, path_variables, parameters)\nentry = data[\"value\"].as_h\nElement.new(command_handler, session_id, entry.first_value.as_s)\n"}},{"html_id":"find_child_elements(using:Symbol,value)-instance-method","name":"find_child_elements","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : Symbol, value)","args_html":"(using : Symbol, value)","location":{"filename":"src/selenium/element.cr","line_number":97,"url":null},"def":{"name":"find_child_elements","args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"using, value = LocationStrategy.transform_extra_strategies(using, value)\nfind_child_elements(LocationStrategy.from_symbol(using), value)\n"}},{"html_id":"find_child_elements(using:LocationStrategy,value)-instance-method","name":"find_child_elements","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : LocationStrategy, value)","args_html":"(using : LocationStrategy, value)","location":{"filename":"src/selenium/element.cr","line_number":85,"url":null},"def":{"name":"find_child_elements","args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"parameters = {using: using, value: value}\ndata = command_handler.execute(:find_elements_from_element, path_variables, parameters)\ndata[\"value\"].as_a.map() do |__arg0|\n __arg0.as_h.first_value.as_s\nend.map do |element_id|\n Element.new(command_handler, session_id, element_id)\nend\n"}},{"html_id":"id:ElementId-instance-method","name":"id","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":4,"url":null},"def":{"name":"id","return_type":"ElementId","visibility":"Public","body":"@id"}},{"html_id":"property(name)-instance-method","name":"property","abstract":false,"args":[{"name":"name","external_name":"name","restriction":""}],"args_string":"(name)","args_html":"(name)","location":{"filename":"src/selenium/element.cr","line_number":51,"url":null},"def":{"name":"property","args":[{"name":"name","external_name":"name","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:get_element_property, path_variables.merge({\":name\" => name}))\ndata[\"value\"].as_s?\n"}},{"html_id":"rect-instance-method","name":"rect","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":117,"url":null},"def":{"name":"rect","visibility":"Public","body":"data = command_handler.execute(:get_element_rect, path_variables)\nElementRect.from_json(data[\"value\"].to_json)\n"}},{"html_id":"screenshot(file_path:String|File)-instance-method","name":"screenshot","abstract":false,"args":[{"name":"file_path","external_name":"file_path","restriction":"String | File"}],"args_string":"(file_path : String | File)","args_html":"(file_path : String | File)","location":{"filename":"src/selenium/element.cr","line_number":112,"url":null},"def":{"name":"screenshot","args":[{"name":"file_path","external_name":"file_path","restriction":"String | File"}],"visibility":"Public","body":"data = command_handler.execute(:take_element_screenshot, path_variables)\nFile.write(file_path.to_s, Base64.decode(data[\"value\"].as_s))\n"}},{"html_id":"selected?-instance-method","name":"selected?","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":129,"url":null},"def":{"name":"selected?","visibility":"Public","body":"data = command_handler.execute(:is_element_selected, path_variables)\ndata[\"value\"].as_bool\n"}},{"html_id":"send_keys(keys:Array(String|Symbol))-instance-method","name":"send_keys","abstract":false,"args":[{"name":"keys","external_name":"keys","restriction":"Array(String | Symbol)"}],"args_string":"(keys : Array(String | Symbol))","args_html":"(keys : Array(String | Symbol))","location":{"filename":"src/selenium/element.cr","line_number":61,"url":null},"def":{"name":"send_keys","args":[{"name":"keys","external_name":"keys","restriction":"Array(String | Symbol)"}],"visibility":"Public","body":"parameters = {text: SendKeyConverter.encode(keys)}\ncommand_handler.execute(:element_send_keys, path_variables, parameters)\n"}},{"html_id":"send_keys(key:String)-instance-method","name":"send_keys","abstract":false,"args":[{"name":"key","external_name":"key","restriction":"String"}],"args_string":"(key : String)","args_html":"(key : String)","location":{"filename":"src/selenium/element.cr","line_number":66,"url":null},"def":{"name":"send_keys","args":[{"name":"key","external_name":"key","restriction":"String"}],"visibility":"Public","body":"send_keys([key])"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}},{"html_id":"submit-instance-method","name":"submit","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":15,"url":null},"def":{"name":"submit","visibility":"Public","body":"begin\n script = \"/* submitForm */ var form = arguments[0];\\nwhile (form.nodeName != \\\"FORM\\\" && form.parentNode) {\\n form = form.parentNode;\\n}\\nif (!form) { throw Error('Unable to find containing form element'); }\\nif (!form.ownerDocument) { throw Error('Unable to find owning document'); }\\nvar e = form.ownerDocument.createEvent('Event');\\ne.initEvent('submit', true, true);\\nif (form.dispatchEvent(e)) { HTMLFormElement.prototype.submit.call(form) }\"\n args = [{ELEMENT_KEY => id}]\n parameters = {script: script, args: args}\n command_handler.execute(:execute_script, path_variables, parameters)\nrescue Selenium::Error\n raise(UnsupportedOperationError.new(\"To submit an element, it must be nested inside a form element\"))\nend"}},{"html_id":"tag_name-instance-method","name":"tag_name","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":107,"url":null},"def":{"name":"tag_name","visibility":"Public","body":"data = command_handler.execute(:get_element_tag_name, path_variables)\ndata[\"value\"].as_s.downcase\n"}},{"html_id":"text-instance-method","name":"text","abstract":false,"location":{"filename":"src/selenium/element.cr","line_number":102,"url":null},"def":{"name":"text","visibility":"Public","body":"data = command_handler.execute(:get_element_text, path_variables)\ndata[\"value\"].as_s\n"}}]},{"html_id":"selenium/Selenium/ElementId","path":"Selenium/ElementId.html","kind":"alias","full_name":"Selenium::ElementId","name":"ElementId","abstract":false,"locations":[{"filename":"src/selenium/types.cr","line_number":4,"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/ElementRect","path":"Selenium/ElementRect.html","kind":"struct","full_name":"Selenium::ElementRect","name":"ElementRect","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/element_rect.cr","line_number":3,"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"},"doc":"TODO: I don't remember why I made the properties floats nor why they are nilable.\nIf they were Int64, this could be combined with `Selenium::WindowRect`","summary":"

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.

","abstract":false,"args":[{"name":"timeout","default_value":"5.seconds","external_name":"timeout","restriction":"::Time::Span"},{"name":"interval","default_value":"0.2.seconds","external_name":"interval","restriction":"::Time::Span"},{"name":"ignored","default_value":"[Selenium::Error]","external_name":"ignored","restriction":"::Array(::Exception) | ::Array(::Selenium::Error.class)"},{"name":"message","default_value":"nil","external_name":"message","restriction":"String | ::Nil"}],"args_string":"(timeout : Time::Span = 5.seconds, interval : Time::Span = 0.2.seconds, ignored : Array(Exception) | Array(::Selenium::Error.class) = [Selenium::Error], message : String | Nil = nil)","args_html":"(timeout : Time::Span = 5.seconds, interval : Time::Span = 0.2.seconds, ignored : Array(Exception) | Array(::Selenium::Error.class) = [Selenium::Error], message : String | Nil = nil)","location":{"filename":"src/selenium/helpers/wait.cr","line_number":12,"url":null},"def":{"name":"new","args":[{"name":"timeout","default_value":"5.seconds","external_name":"timeout","restriction":"::Time::Span"},{"name":"interval","default_value":"0.2.seconds","external_name":"interval","restriction":"::Time::Span"},{"name":"ignored","default_value":"[Selenium::Error]","external_name":"ignored","restriction":"::Array(::Exception) | ::Array(::Selenium::Error.class)"},{"name":"message","default_value":"nil","external_name":"message","restriction":"String | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(timeout, interval, ignored, message)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"until(&):Nil-instance-method","name":"until","doc":"Wait until the given block returns a `true` value.\nOtherwise raise an exception `IO::TimeoutError`.\n\n```\nwait = Selenium::Helpers::Wait.new(timeout: 10.seconds, interval: 1.second)\nwait.until { session.document_manager.execute_script(\"return document.readyState;\") == \"complete\" }\n```","summary":"

Wait until the given block returns a true value.

","abstract":false,"location":{"filename":"src/selenium/helpers/wait.cr","line_number":22,"url":null},"def":{"name":"until","yields":0,"block_arity":0,"return_type":"Nil","visibility":"Public","body":"end_time = current_time + @timeout\nlast_error : Exception | ::Nil = nil\nwhile !current_time > end_time\n begin\n result = yield\n if result\n return result\n end\n rescue ex\n last_error = ex\n if @ignored.includes?(ex.class)\n else\n raise(ex)\n end\n end\n sleep(@interval)\nend\nmessage = @message || \"timed out after #{@timeout.seconds} seconds\"\nif last_error\n message = message + \" (#{last_error.message})\"\nend\nraise(IO::TimeoutError.new(message))\n"}}]}]},{"html_id":"selenium/Selenium/HttpClient","path":"Selenium/HttpClient.html","kind":"class","full_name":"Selenium::HttpClient","name":"HttpClient","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/http_client.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(base_url:String)-class-method","name":"new","abstract":false,"args":[{"name":"base_url","external_name":"base_url","restriction":"::String"}],"args_string":"(base_url : String)","args_html":"(base_url : String)","location":{"filename":"src/selenium/http_client.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"base_url","external_name":"base_url","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(base_url)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base_url:String-instance-method","name":"base_url","abstract":false,"location":{"filename":"src/selenium/http_client.cr","line_number":2,"url":null},"def":{"name":"base_url","return_type":"String","visibility":"Public","body":"@base_url"}},{"html_id":"delete(path):JSON::Any-instance-method","name":"delete","abstract":false,"args":[{"name":"path","external_name":"path","restriction":""}],"args_string":"(path) : JSON::Any","args_html":"(path) : JSON::Any","location":{"filename":"src/selenium/http_client.cr","line_number":18,"url":null},"def":{"name":"delete","args":[{"name":"path","external_name":"path","restriction":""}],"return_type":"JSON::Any","visibility":"Public","body":"response = HTTP::Client.delete(base_url + path)\nparsed_response = JSON.parse(response.body)\nif has_error?(parsed_response)\n raise(Error.from_json(parsed_response[\"value\"].to_json))\nend\nparsed_response\n"}},{"html_id":"get(path):JSON::Any-instance-method","name":"get","abstract":false,"args":[{"name":"path","external_name":"path","restriction":""}],"args_string":"(path) : JSON::Any","args_html":"(path) : JSON::Any","location":{"filename":"src/selenium/http_client.cr","line_number":28,"url":null},"def":{"name":"get","args":[{"name":"path","external_name":"path","restriction":""}],"return_type":"JSON::Any","visibility":"Public","body":"response = HTTP::Client.get(base_url + path)\nparsed_response = JSON.parse(response.body)\nif has_error?(parsed_response)\n raise(Error.from_json(parsed_response[\"value\"].to_json))\nend\nparsed_response\n"}},{"html_id":"post(path,body=\"{}\"):JSON::Any-instance-method","name":"post","abstract":false,"args":[{"name":"path","external_name":"path","restriction":""},{"name":"body","default_value":"\"{}\"","external_name":"body","restriction":""}],"args_string":"(path, body = \"{}\") : JSON::Any","args_html":"(path, body = "{}") : JSON::Any","location":{"filename":"src/selenium/http_client.cr","line_number":7,"url":null},"def":{"name":"post","args":[{"name":"path","external_name":"path","restriction":""},{"name":"body","default_value":"\"{}\"","external_name":"body","restriction":""}],"return_type":"JSON::Any","visibility":"Public","body":"url = base_url + path\nresponse = HTTP::Client.post(url, body: body)\nparsed_response = JSON.parse(response.body)\nif has_error?(parsed_response)\n raise(Error.from_json(parsed_response[\"value\"].to_json))\nend\nparsed_response\n"}}]},{"html_id":"selenium/Selenium/InputSourceActionSequence","path":"Selenium/InputSourceActionSequence.html","kind":"struct","full_name":"Selenium::InputSourceActionSequence","name":"InputSourceActionSequence","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/input_source_action_sequence.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(type:String,id:String,actions:Array(Selenium::Action))-class-method","name":"new","abstract":false,"args":[{"name":"type","external_name":"type","restriction":"::String"},{"name":"id","external_name":"id","restriction":"::String"},{"name":"actions","external_name":"actions","restriction":"::Array(::Selenium::Action)"}],"args_string":"(type : String, id : String, actions : Array(Selenium::Action))","args_html":"(type : String, id : String, actions : Array(Selenium::Action))","location":{"filename":"src/selenium/input_source_action_sequence.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"type","external_name":"type","restriction":"::String"},{"name":"id","external_name":"id","restriction":"::String"},{"name":"actions","external_name":"actions","restriction":"::Array(::Selenium::Action)"}],"visibility":"Public","body":"_ = allocate\n_.initialize(type, id, actions)\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/input_source_action_sequence.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":"actions:Array(Action)-instance-method","name":"actions","abstract":false,"location":{"filename":"src/selenium/input_source_action_sequence.cr","line_number":6,"url":null},"def":{"name":"actions","return_type":"Array(Action)","visibility":"Public","body":"@actions"}},{"html_id":"id:String-instance-method","name":"id","abstract":false,"location":{"filename":"src/selenium/input_source_action_sequence.cr","line_number":5,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"type:String-instance-method","name":"type","abstract":false,"location":{"filename":"src/selenium/input_source_action_sequence.cr","line_number":4,"url":null},"def":{"name":"type","return_type":"String","visibility":"Public","body":"@type"}}]},{"html_id":"selenium/Selenium/InvalidTagError","path":"Selenium/InvalidTagError.html","kind":"class","full_name":"Selenium::InvalidTagError","name":"InvalidTagError","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":5,"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(expected:String,got:String)-class-method","name":"new","abstract":false,"args":[{"name":"expected","external_name":"expected","restriction":"String"},{"name":"got","external_name":"got","restriction":"String"}],"args_string":"(expected : String, got : String)","args_html":"(expected : String, got : String)","location":{"filename":"src/selenium/errors.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"expected","external_name":"expected","restriction":"String"},{"name":"got","external_name":"got","restriction":"String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(expected, got)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}]},{"html_id":"selenium/Selenium/LocationStrategy","path":"Selenium/LocationStrategy.html","kind":"enum","full_name":"Selenium::LocationStrategy","name":"LocationStrategy","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/location_strategy.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"CSS","name":"CSS","value":"0"},{"id":"LINK_TEXT","name":"LINK_TEXT","value":"1"},{"id":"PARTIAL_LINK_TEXT","name":"PARTIAL_LINK_TEXT","value":"2"},{"id":"TAG_NAME","name":"TAG_NAME","value":"3"},{"id":"XPATH","name":"XPATH","value":"4"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"class_methods":[{"html_id":"from_symbol(symbol)-class-method","name":"from_symbol","abstract":false,"args":[{"name":"symbol","external_name":"symbol","restriction":""}],"args_string":"(symbol)","args_html":"(symbol)","location":{"filename":"src/selenium/location_strategy.cr","line_number":23,"url":null},"def":{"name":"from_symbol","args":[{"name":"symbol","external_name":"symbol","restriction":""}],"visibility":"Public","body":"case symbol\nwhen :css\n CSS\nwhen :link_text\n LINK_TEXT\nwhen :partial_link_text\n PARTIAL_LINK_TEXT\nwhen :tag_name\n TAG_NAME\nwhen :xpath\n XPATH\nelse\n raise(ArgumentError.new(\"Unsupported location strategy: #{symbol}\"))\nend"}},{"html_id":"transform_extra_strategies(symbol:Symbol,value:String):Tuple(Symbol,String)-class-method","name":"transform_extra_strategies","abstract":false,"args":[{"name":"symbol","external_name":"symbol","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":"String"}],"args_string":"(symbol : Symbol, value : String) : Tuple(Symbol, String)","args_html":"(symbol : Symbol, value : String) : Tuple(Symbol, String)","location":{"filename":"src/selenium/location_strategy.cr","line_number":8,"url":null},"def":{"name":"transform_extra_strategies","args":[{"name":"symbol","external_name":"symbol","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":"String"}],"return_type":"::Tuple(Symbol, String)","visibility":"Public","body":"case symbol\nwhen :class\n symbol = :css\n value = \".#{value}\"\nwhen :id\n symbol = :css\n value = \"##{value}\"\nwhen :name\n symbol = :xpath\n value = \".//*[@name='#{value}']\"\nend\n{symbol, value}\n"}}],"instance_methods":[{"html_id":"css?-instance-method","name":"css?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":2,"url":null},"def":{"name":"css?","visibility":"Public","body":"self == CSS"}},{"html_id":"link_text?-instance-method","name":"link_text?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":3,"url":null},"def":{"name":"link_text?","visibility":"Public","body":"self == LINK_TEXT"}},{"html_id":"partial_link_text?-instance-method","name":"partial_link_text?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":4,"url":null},"def":{"name":"partial_link_text?","visibility":"Public","body":"self == PARTIAL_LINK_TEXT"}},{"html_id":"tag_name?-instance-method","name":"tag_name?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":5,"url":null},"def":{"name":"tag_name?","visibility":"Public","body":"self == TAG_NAME"}},{"html_id":"to_json(builder)-instance-method","name":"to_json","abstract":false,"args":[{"name":"builder","external_name":"builder","restriction":""}],"args_string":"(builder)","args_html":"(builder)","location":{"filename":"src/selenium/location_strategy.cr","line_number":40,"url":null},"def":{"name":"to_json","args":[{"name":"builder","external_name":"builder","restriction":""}],"visibility":"Public","body":"builder.string(convert_to_string)"}},{"html_id":"xpath?-instance-method","name":"xpath?","abstract":false,"location":{"filename":"src/selenium/location_strategy.cr","line_number":6,"url":null},"def":{"name":"xpath?","visibility":"Public","body":"self == XPATH"}}]},{"html_id":"selenium/Selenium/NavigationManager","path":"Selenium/NavigationManager.html","kind":"class","full_name":"Selenium::NavigationManager","name":"NavigationManager","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/navigation_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/navigation_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/navigation_manager.cr","line_number":2,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"go_back-instance-method","name":"go_back","abstract":false,"location":{"filename":"src/selenium/navigation_manager.cr","line_number":8,"url":null},"def":{"name":"go_back","visibility":"Public","body":"command_handler.execute(:back, path_variables)"}},{"html_id":"go_forward-instance-method","name":"go_forward","abstract":false,"location":{"filename":"src/selenium/navigation_manager.cr","line_number":12,"url":null},"def":{"name":"go_forward","visibility":"Public","body":"command_handler.execute(:forward, path_variables)"}},{"html_id":"refresh-instance-method","name":"refresh","abstract":false,"location":{"filename":"src/selenium/navigation_manager.cr","line_number":16,"url":null},"def":{"name":"refresh","visibility":"Public","body":"command_handler.execute(:refresh, path_variables)"}},{"html_id":"session_id:SessionId-instance-method","name":"session_id","abstract":false,"location":{"filename":"src/selenium/navigation_manager.cr","line_number":3,"url":null},"def":{"name":"session_id","return_type":"SessionId","visibility":"Public","body":"@session_id"}}]},{"html_id":"selenium/Selenium/Remote","path":"Selenium/Remote.html","kind":"module","full_name":"Selenium::Remote","name":"Remote","abstract":false,"locations":[{"filename":"src/selenium/remote/driver.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/Remote/Driver","path":"Selenium/Remote/Driver.html","kind":"class","full_name":"Selenium::Remote::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/remote/driver.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Remote","kind":"module","full_name":"Selenium::Remote","name":"Remote"},"instance_methods":[{"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/remote/driver.cr","line_number":2,"url":null},"def":{"name":"create_session","args":[{"name":"args","external_name":"args","restriction":"Array(String)"}],"return_type":"Session","visibility":"Public","body":"create_session(Selenium::Capabilities.new)"}}]}]},{"html_id":"selenium/Selenium/Safari","path":"Selenium/Safari.html","kind":"module","full_name":"Selenium::Safari","name":"Safari","abstract":false,"locations":[{"filename":"src/selenium/safari/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/Safari/Capabilities","path":"Selenium/Safari/Capabilities.html","kind":"class","full_name":"Selenium::Safari::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/safari/capabilities.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Safari","kind":"module","full_name":"Selenium::Safari","name":"Safari"},"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/safari/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)"}}]},{"html_id":"selenium/Selenium/Safari/Driver","path":"Selenium/Safari/Driver.html","kind":"class","full_name":"Selenium::Safari::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/safari/driver.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Safari","kind":"module","full_name":"Selenium::Safari","name":"Safari"},"instance_methods":[{"html_id":"create_session(capabilities:Safari::Capabilities):Session-instance-method","name":"create_session","abstract":false,"args":[{"name":"capabilities","external_name":"capabilities","restriction":"Safari::Capabilities"}],"args_string":"(capabilities : Safari::Capabilities) : Session","args_html":"(capabilities : Safari::Capabilities) : Session","location":{"filename":"src/selenium/safari/driver.cr","line_number":2,"url":null},"def":{"name":"create_session","args":[{"name":"capabilities","external_name":"capabilities","restriction":"Safari::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/safari/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":"create_session(Safari::Capabilities.new)"}}]},{"html_id":"selenium/Selenium/Safari/Service","path":"Selenium/Safari/Service.html","kind":"class","full_name":"Selenium::Safari::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/safari/service.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"selenium/Selenium/Safari","kind":"module","full_name":"Selenium::Safari","name":"Safari"},"instance_methods":[{"html_id":"default_port:Int32-instance-method","name":"default_port","abstract":false,"location":{"filename":"src/selenium/safari/service.cr","line_number":2,"url":null},"def":{"name":"default_port","return_type":"Int32","visibility":"Public","body":"7050"}},{"html_id":"stop-instance-method","name":"stop","abstract":false,"location":{"filename":"src/selenium/safari/service.cr","line_number":6,"url":null},"def":{"name":"stop","visibility":"Public","body":"stop_process(process)"}}]}]},{"html_id":"selenium/Selenium/SendKeyConverter","path":"Selenium/SendKeyConverter.html","kind":"class","full_name":"Selenium::SendKeyConverter","name":"SendKeyConverter","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/send_key_converter.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"KEYS","name":"KEYS","value":"{null: \"\\uE000\", cancel: \"\\uE001\", help: \"\\uE002\", backspace: \"\\uE003\", tab: \"\\uE004\", clear: \"\\uE005\", return: \"\\uE006\", enter: \"\\uE007\", shift: \"\\uE008\", left_shift: \"\\uE008\", control: \"\\uE009\", left_control: \"\\uE009\", alt: \"\\uE00A\", left_alt: \"\\uE00A\", pause: \"\\uE00B\", escape: \"\\uE00C\", space: \"\\uE00D\", page_up: \"\\uE00E\", page_down: \"\\uE00F\", end: \"\\uE010\", home: \"\\uE011\", left: \"\\uE012\", arrow_left: \"\\uE012\", up: \"\\uE013\", arrow_up: \"\\uE013\", right: \"\\uE014\", arrow_right: \"\\uE014\", down: \"\\uE015\", arrow_down: \"\\uE015\", insert: \"\\uE016\", delete: \"\\uE017\", semicolon: \"\\uE018\", equals: \"\\uE019\", numpad0: \"\\uE01A\", numpad1: \"\\uE01B\", numpad2: \"\\uE01C\", numpad3: \"\\uE01D\", numpad4: \"\\uE01E\", numpad5: \"\\uE01F\", numpad6: \"\\uE020\", numpad7: \"\\uE021\", numpad8: \"\\uE022\", numpad9: \"\\uE023\", multiply: \"\\uE024\", add: \"\\uE025\", separator: \"\\uE026\", subtract: \"\\uE027\", decimal: \"\\uE028\", divide: \"\\uE029\", f1: \"\\uE031\", f2: \"\\uE032\", f3: \"\\uE033\", f4: \"\\uE034\", f5: \"\\uE035\", f6: \"\\uE036\", f7: \"\\uE037\", f8: \"\\uE038\", f9: \"\\uE039\", f10: \"\\uE03A\", f11: \"\\uE03B\", f12: \"\\uE03C\", meta: \"\\uE03D\", command: \"\\uE03D\", left_meta: \"\\uE03D\", right_shift: \"\\uE050\", right_control: \"\\uE051\", right_alt: \"\\uE052\", right_meta: \"\\uE053\", numpad_page_up: \"\\uE054\", numpad_page_down: \"\\uE055\", numpad_end: \"\\uE056\", numpad_home: \"\\uE057\", numpad_left: \"\\uE058\", numpad_up: \"\\uE059\", numpad_right: \"\\uE05A\", numpad_down: \"\\uE05B\", numpad_insert: \"\\uE05C\", numpad_delete: \"\\uE05D\"}"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"class_methods":[{"html_id":"encode(keys:Array(String|Symbol)):String-class-method","name":"encode","abstract":false,"args":[{"name":"keys","external_name":"keys","restriction":"Array(String | Symbol)"}],"args_string":"(keys : Array(String | Symbol)) : String","args_html":"(keys : Array(String | Symbol)) : String","location":{"filename":"src/selenium/send_key_converter.cr","line_number":2,"url":null},"def":{"name":"encode","args":[{"name":"keys","external_name":"keys","restriction":"Array(String | Symbol)"}],"return_type":"String","visibility":"Public","body":"keys.join do |key|\n encode(key)\nend"}}]},{"html_id":"selenium/Selenium/Service","path":"Selenium/Service.html","kind":"class","full_name":"Selenium::Service","name":"Service","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/service.cr","line_number":1,"url":null}],"repository_name":"selenium","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"CONNECTION_INTERVAL","name":"CONNECTION_INTERVAL","value":"1.seconds"},{"id":"CONNECTION_TIMEOUT","name":"CONNECTION_TIMEOUT","value":"5.seconds"}],"subclasses":[{"html_id":"selenium/Selenium/Chrome/Service","kind":"class","full_name":"Selenium::Chrome::Service","name":"Service"},{"html_id":"selenium/Selenium/Firefox/Service","kind":"class","full_name":"Selenium::Firefox::Service","name":"Service"},{"html_id":"selenium/Selenium/Safari/Service","kind":"class","full_name":"Selenium::Safari::Service","name":"Service"}],"namespace":{"html_id":"selenium/Selenium","kind":"module","full_name":"Selenium","name":"Selenium"},"class_methods":[{"html_id":"chrome(**opts)-class-method","name":"chrome","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":5,"url":null},"def":{"name":"chrome","double_splat":{"name":"opts","external_name":"opts","restriction":""},"visibility":"Public","body":"Chrome::Service.new(**opts)"}},{"html_id":"firefox(**opts)-class-method","name":"firefox","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":9,"url":null},"def":{"name":"firefox","double_splat":{"name":"opts","external_name":"opts","restriction":""},"visibility":"Public","body":"Firefox::Service.new(**opts)"}},{"html_id":"safari(**opts)-class-method","name":"safari","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":13,"url":null},"def":{"name":"safari","double_splat":{"name":"opts","external_name":"opts","restriction":""},"visibility":"Public","body":"Safari::Service.new(**opts)"}}],"constructors":[{"html_id":"new(driver_path:String,port:Int32=default_port,args:Array(String)=[]ofString)-class-method","name":"new","abstract":false,"args":[{"name":"driver_path","external_name":"driver_path","restriction":"String"},{"name":"port","default_value":"default_port","external_name":"port","restriction":"Int32"},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"::Array(::String)"}],"args_string":"(driver_path : String, port : Int32 = default_port, args : Array(String) = [] of String)","args_html":"(driver_path : String, port : Int32 = default_port, args : Array(String) = [] of String)","location":{"filename":"src/selenium/service.cr","line_number":19,"url":null},"def":{"name":"new","args":[{"name":"driver_path","external_name":"driver_path","restriction":"String"},{"name":"port","default_value":"default_port","external_name":"port","restriction":"Int32"},{"name":"args","default_value":"[] of String","external_name":"args","restriction":"::Array(::String)"}],"visibility":"Public","body":"_ = allocate\n_.initialize(driver_path, port, args)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base_url:String-instance-method","name":"base_url","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":35,"url":null},"def":{"name":"base_url","return_type":"String","visibility":"Public","body":"\"http://localhost:#{@port}\""}},{"html_id":"default_port:Int32-instance-method","name":"default_port","abstract":true,"location":{"filename":"src/selenium/service.cr","line_number":39,"url":null},"def":{"name":"default_port","return_type":"Int32","visibility":"Public","body":""}},{"html_id":"start-instance-method","name":"start","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":22,"url":null},"def":{"name":"start","visibility":"Public","body":"find_free_port\nstart_process\nverify_running\n"}},{"html_id":"stop-instance-method","name":"stop","abstract":false,"location":{"filename":"src/selenium/service.cr","line_number":28,"url":null},"def":{"name":"stop","visibility":"Public","body":"begin\n send_shutdown_command\n process.try(&.wait)\nensure\n stop_process(process)\nend"}}]},{"html_id":"selenium/Selenium/Session","path":"Selenium/Session.html","kind":"class","full_name":"Selenium::Session","name":"Session","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/session.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(http_client:Selenium::HttpClient,command_handler:Selenium::CommandHandler,id:String)-class-method","name":"new","abstract":false,"args":[{"name":"http_client","external_name":"http_client","restriction":"::Selenium::HttpClient"},{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"id","external_name":"id","restriction":"::String"}],"args_string":"(http_client : Selenium::HttpClient, command_handler : Selenium::CommandHandler, id : String)","args_html":"(http_client : Selenium::HttpClient, command_handler : Selenium::CommandHandler, id : String)","location":{"filename":"src/selenium/session.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"http_client","external_name":"http_client","restriction":"::Selenium::HttpClient"},{"name":"command_handler","external_name":"command_handler","restriction":"::Selenium::CommandHandler"},{"name":"id","external_name":"id","restriction":"::String"}],"visibility":"Public","body":"_ = allocate\n_.initialize(http_client, command_handler, id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"active_element-instance-method","name":"active_element","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":77,"url":null},"def":{"name":"active_element","visibility":"Public","body":"data = command_handler.execute(:get_active_element, path_variables)\nentry = data[\"value\"].as_h\nElement.new(command_handler, id, entry.first_value.as_s)\n"}},{"html_id":"alert_manager-instance-method","name":"alert_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":25,"url":null},"def":{"name":"alert_manager","visibility":"Public","body":"AlertManager.new(command_handler, id)"}},{"html_id":"command_handler:CommandHandler-instance-method","name":"command_handler","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":3,"url":null},"def":{"name":"command_handler","return_type":"CommandHandler","visibility":"Public","body":"@command_handler"}},{"html_id":"cookie_manager-instance-method","name":"cookie_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":21,"url":null},"def":{"name":"cookie_manager","visibility":"Public","body":"CookieManager.new(command_handler, id)"}},{"html_id":"current_url-instance-method","name":"current_url","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":83,"url":null},"def":{"name":"current_url","visibility":"Public","body":"data = command_handler.execute(:get_current_url, path_variables)\ndata[\"value\"].as_s\n"}},{"html_id":"delete-instance-method","name":"delete","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":37,"url":null},"def":{"name":"delete","visibility":"Public","body":"command_handler.execute(:delete_session, path_variables)"}},{"html_id":"document_manager-instance-method","name":"document_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":13,"url":null},"def":{"name":"document_manager","visibility":"Public","body":"DocumentManager.new(command_handler, id)"}},{"html_id":"find_element(using:LocationStrategy,value)-instance-method","name":"find_element","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : LocationStrategy, value)","args_html":"(using : LocationStrategy, value)","location":{"filename":"src/selenium/session.cr","line_number":45,"url":null},"def":{"name":"find_element","args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:find_element, path_variables, {using: using, value: value})\nentry = data[\"value\"].as_h\nElement.new(command_handler, id, entry.first_value.as_s)\n"}},{"html_id":"find_element(using:Symbol,value)-instance-method","name":"find_element","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : Symbol, value)","args_html":"(using : Symbol, value)","location":{"filename":"src/selenium/session.cr","line_number":55,"url":null},"def":{"name":"find_element","args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"using, value = LocationStrategy.transform_extra_strategies(using, value)\nfind_element(LocationStrategy.from_symbol(using), value)\n"}},{"html_id":"find_elements(using:LocationStrategy,value)-instance-method","name":"find_elements","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : LocationStrategy, value)","args_html":"(using : LocationStrategy, value)","location":{"filename":"src/selenium/session.cr","line_number":60,"url":null},"def":{"name":"find_elements","args":[{"name":"using","external_name":"using","restriction":"LocationStrategy"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"data = command_handler.execute(:find_elements, path_variables, {using: using, value: value})\nelement_ids = data[\"value\"].as_a.map() do |__arg0|\n __arg0.as_h.first_value.as_s\nend\nelement_ids.map do |element_id|\n Element.new(command_handler, id, element_id)\nend\n"}},{"html_id":"find_elements(using:Symbol,value)-instance-method","name":"find_elements","abstract":false,"args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"args_string":"(using : Symbol, value)","args_html":"(using : Symbol, value)","location":{"filename":"src/selenium/session.cr","line_number":72,"url":null},"def":{"name":"find_elements","args":[{"name":"using","external_name":"using","restriction":"Symbol"},{"name":"value","external_name":"value","restriction":""}],"visibility":"Public","body":"using, value = LocationStrategy.transform_extra_strategies(using, value)\nfind_elements(LocationStrategy.from_symbol(using), value)\n"}},{"html_id":"http_client:HttpClient-instance-method","name":"http_client","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":2,"url":null},"def":{"name":"http_client","return_type":"HttpClient","visibility":"Public","body":"@http_client"}},{"html_id":"id:SessionId-instance-method","name":"id","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":4,"url":null},"def":{"name":"id","return_type":"SessionId","visibility":"Public","body":"@id"}},{"html_id":"local_storage_manager-instance-method","name":"local_storage_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":29,"url":null},"def":{"name":"local_storage_manager","visibility":"Public","body":"WebStorageManager.new(document_manager, WebStorageManager::StorageType::LocalStorage)"}},{"html_id":"move_to(x:Int32,y:Int32)-instance-method","name":"move_to","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/session.cr","line_number":137,"url":null},"def":{"name":"move_to","args":[{"name":"x","external_name":"x","restriction":"Int32"},{"name":"y","external_name":"y","restriction":"Int32"}],"visibility":"Public","body":"sequence = Selenium::InputSourceActionSequence.new(type: \"pointer\", id: \"action-sequence-key\", actions: [Selenium::Action.new(\"pointerMove\", x: x, y: y)])\nperform_actions([sequence])\n"}},{"html_id":"move_to(element:Selenium::Element)-instance-method","name":"move_to","abstract":false,"args":[{"name":"element","external_name":"element","restriction":"Selenium::Element"}],"args_string":"(element : Selenium::Element)","args_html":"(element : Selenium::Element)","location":{"filename":"src/selenium/session.cr","line_number":130,"url":null},"def":{"name":"move_to","args":[{"name":"element","external_name":"element","restriction":"Selenium::Element"}],"visibility":"Public","body":"midpoint = element.rect.try(&.midpoint)\nif midpoint.nil?\n return\nend\nmove_to(x: midpoint.x, y: midpoint.y)\n"}},{"html_id":"navigate_to(url)-instance-method","name":"navigate_to","abstract":false,"args":[{"name":"url","external_name":"url","restriction":""}],"args_string":"(url)","args_html":"(url)","location":{"filename":"src/selenium/session.cr","line_number":41,"url":null},"def":{"name":"navigate_to","args":[{"name":"url","external_name":"url","restriction":""}],"visibility":"Public","body":"command_handler.execute(:navigate_to, path_variables, {url: url})"}},{"html_id":"navigation_manager-instance-method","name":"navigation_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":17,"url":null},"def":{"name":"navigation_manager","visibility":"Public","body":"NavigationManager.new(command_handler, id)"}},{"html_id":"perform_actions(action_sequence)-instance-method","name":"perform_actions","abstract":false,"args":[{"name":"action_sequence","external_name":"action_sequence","restriction":""}],"args_string":"(action_sequence)","args_html":"(action_sequence)","location":{"filename":"src/selenium/session.cr","line_number":107,"url":null},"def":{"name":"perform_actions","args":[{"name":"action_sequence","external_name":"action_sequence","restriction":""}],"visibility":"Public","body":"parameters = {actions: action_sequence}\ncommand_handler.execute(:perform_actions, path_variables, parameters)\n"}},{"html_id":"release_actions-instance-method","name":"release_actions","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":112,"url":null},"def":{"name":"release_actions","visibility":"Public","body":"command_handler.execute(:release_actions, path_variables)"}},{"html_id":"screenshot(file_path:String|File)-instance-method","name":"screenshot","abstract":false,"args":[{"name":"file_path","external_name":"file_path","restriction":"String | File"}],"args_string":"(file_path : String | File)","args_html":"(file_path : String | File)","location":{"filename":"src/selenium/session.cr","line_number":93,"url":null},"def":{"name":"screenshot","args":[{"name":"file_path","external_name":"file_path","restriction":"String | File"}],"visibility":"Public","body":"data = command_handler.execute(:take_screenshot, path_variables)\nFile.write(file_path.to_s, Base64.decode(data[\"value\"].as_s))\n"}},{"html_id":"session_storage_manager-instance-method","name":"session_storage_manager","abstract":false,"location":{"filename":"src/selenium/session.cr","line_number":33,"url":null},"def":{"name":"session_storage_manager","visibility":"Public","body":"WebStorageManager.new(document_manager, WebStorageManager::StorageType::SessionStorage)"}},{"html_id":"set_timeouts(timeouts)-instance-method","name":"set_timeouts","abstract":false,"args":[{"name":"timeouts","external_name":"timeouts","restriction":""}],"args_string":"(timeouts)","args_html":"(timeouts)","location":{"filename":"src/selenium/session.cr","line_number":103,"url":null},"def":{"name":"set_timeouts","args":[{"name":"timeouts","external_name":"timeouts","restriction":""}],"visibility":"Public","body":"command_handler.execute(:set_timeouts, path_variables, timeouts)"}},{"html_id":"switch_to_frame(id)-instance-method","name":"switch_to_frame","doc":"TODO: write test once it is understood:\n- how to know/acquire the frame id\n- what a frame is\n- what switching frames will do","summary":"

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

","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"}],"args_string":"(name : String)","args_html":"(name : String)","location":{"filename":"src/selenium/web_storage_manager.cr","line_number":37,"url":null},"def":{"name":"remove","args":[{"name":"name","external_name":"name","restriction":"String"}],"visibility":"Public","body":"document_manager.execute_script(\"#{storage_type_in_js}.removeItem('#{name}')\")"}},{"html_id":"size:Int-instance-method","name":"size","doc":"Retrieve the number of items in the Storage","summary":"

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