From 826a6bddeb4368896ee7ccec91dfc742375b94e1 Mon Sep 17 00:00:00 2001 From: Augustin Gottlieb Pequeno <33221555+aguspe@users.noreply.github.com> Date: Mon, 24 Jun 2024 17:56:14 +0200 Subject: [PATCH] [rb] Add FedCM support to the ruby selenium client (#13796) Co-authored-by: aguspe --- common/src/web/fedcm/fedcm.html | 2 +- common/src/web/fedcm/fedcm.json | 3 +- rb/lib/selenium/webdriver/chromium/driver.rb | 1 + rb/lib/selenium/webdriver/common.rb | 3 + .../driver_extensions/has_fedcm_dialog.rb | 55 +++++++++++ rb/lib/selenium/webdriver/common/fedcm.rb | 27 ++++++ .../webdriver/common/fedcm/account.rb | 50 ++++++++++ .../selenium/webdriver/common/fedcm/dialog.rb | 74 +++++++++++++++ rb/lib/selenium/webdriver/remote/bridge.rb | 40 ++++++++ .../webdriver/remote/bridge/commands.rb | 14 ++- .../lib/selenium/webdriver/fedcm/account.rbs | 52 +++++++++++ .../lib/selenium/webdriver/fedcm/dialog.rbs | 26 ++++++ .../lib/selenium/webdriver/remote/bridge.rbs | 18 ++++ .../selenium/webdriver/fedcm_spec.rb | 90 ++++++++++++++++++ .../webdriver/common/fedcm/account_spec.rb | 54 +++++++++++ .../webdriver/common/fedcm/dialog_spec.rb | 93 +++++++++++++++++++ 16 files changed, 599 insertions(+), 3 deletions(-) create mode 100644 rb/lib/selenium/webdriver/common/driver_extensions/has_fedcm_dialog.rb create mode 100644 rb/lib/selenium/webdriver/common/fedcm.rb create mode 100644 rb/lib/selenium/webdriver/common/fedcm/account.rb create mode 100644 rb/lib/selenium/webdriver/common/fedcm/dialog.rb create mode 100644 rb/sig/lib/selenium/webdriver/fedcm/account.rbs create mode 100644 rb/sig/lib/selenium/webdriver/fedcm/dialog.rbs create mode 100644 rb/spec/integration/selenium/webdriver/fedcm_spec.rb create mode 100644 rb/spec/unit/selenium/webdriver/common/fedcm/account_spec.rb create mode 100644 rb/spec/unit/selenium/webdriver/common/fedcm/dialog_spec.rb diff --git a/common/src/web/fedcm/fedcm.html b/common/src/web/fedcm/fedcm.html index 186d9311c70b8..bdf10e2fa8f2d 100644 --- a/common/src/web/fedcm/fedcm.html +++ b/common/src/web/fedcm/fedcm.html @@ -1,7 +1,7 @@