Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions rb/lib/selenium/webdriver/bidi/browser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
module Selenium
module WebDriver
class BiDi
#
# BiDi Implementation of the Browser Module
# Continue to use functionality from existing `driver.manager.window` method
#
# @api private
#

class Browser
Window = Struct.new(:handle, :active, :height, :width, :x, :y, :state) do
def active?
Expand Down
3 changes: 2 additions & 1 deletion rb/lib/selenium/webdriver/bidi/browsing_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
module Selenium
module WebDriver
class BiDi
# Implements the browsingContext Module of the WebDriver-BiDi specification
# Implements the BrowsingContext Module of the WebDriver-BiDi specification
# Continue to use functionality from existing `driver.navigate` method
#
# @api private
#
Expand Down
5 changes: 5 additions & 0 deletions rb/lib/selenium/webdriver/bidi/log_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
module Selenium
module WebDriver
class BiDi
# Implements the Log of the WebDriver-BiDi specification
# This functionality should be accessed through `driver.script` method
#
# @api private
#
class LogHandler
ConsoleLogEntry = BiDi::Struct.new(:level, :text, :timestamp, :stack_trace, :type, :source, :method, :args)
JavaScriptLogEntry = BiDi::Struct.new(:level, :text, :timestamp, :stack_trace, :type, :source)
Expand Down
6 changes: 6 additions & 0 deletions rb/lib/selenium/webdriver/bidi/network.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
module Selenium
module WebDriver
class BiDi
# Implements the Navigation Module of the WebDriver-BiDi specification
# Continue to use functionality from existing `driver.navigate` method
#
# @api private
#

class Network
EVENTS = {
before_request: 'network.beforeRequestSent',
Expand Down
4 changes: 4 additions & 0 deletions rb/lib/selenium/webdriver/bidi/network/cookies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
module Selenium
module WebDriver
class BiDi
#
# @api private
#

class Cookies < Hash
def as_json
map do |name, val|
Expand Down
4 changes: 4 additions & 0 deletions rb/lib/selenium/webdriver/bidi/network/credentials.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
module Selenium
module WebDriver
class BiDi
#
# @api private
#

class Credentials
attr_accessor :username, :password

Expand Down
4 changes: 4 additions & 0 deletions rb/lib/selenium/webdriver/bidi/network/headers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
module Selenium
module WebDriver
class BiDi
#
# @api private
#

class Headers < Hash
def as_json
map do |name, val|
Expand Down
4 changes: 4 additions & 0 deletions rb/lib/selenium/webdriver/bidi/network/intercepted_auth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
module Selenium
module WebDriver
class BiDi
#
# @api private
#

class InterceptedAuth < InterceptedItem
def authenticate(username, password)
network.continue_with_auth(id, username, password)
Expand Down
4 changes: 4 additions & 0 deletions rb/lib/selenium/webdriver/bidi/network/intercepted_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
module Selenium
module WebDriver
class BiDi
#
# @api private
#

class InterceptedItem
attr_reader :network, :request

Expand Down
4 changes: 4 additions & 0 deletions rb/lib/selenium/webdriver/bidi/network/intercepted_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
module Selenium
module WebDriver
class BiDi
#
# @api private
#

class InterceptedRequest < InterceptedItem
attr_accessor :method, :url
attr_reader :body
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
module Selenium
module WebDriver
class BiDi
#
# @api private
#

class InterceptedResponse < InterceptedItem
attr_accessor :reason, :status
attr_reader :body
Expand Down
4 changes: 4 additions & 0 deletions rb/lib/selenium/webdriver/bidi/network/url_pattern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
module Selenium
module WebDriver
class BiDi
#
# @api private
#

module UrlPattern
module_function

Expand Down
4 changes: 4 additions & 0 deletions rb/lib/selenium/webdriver/bidi/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
module Selenium
module WebDriver
class BiDi
# Implements the Session Module of the WebDriver-BiDi specification
#
# @api private
#
class Session
Status = Struct.new(:ready, :message)

Expand Down