async-webdriver 0.10.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/readme.md CHANGED
@@ -28,6 +28,19 @@ Please see the [project documentation](https://socketry.github.io/async-webdrive
28
28
 
29
29
  Please see the [project releases](https://socketry.github.io/async-webdriver/releases/index) for all releases.
30
30
 
31
+ ### v0.12.0
32
+
33
+ - Add `Async::WebDriver::Installer::Chrome` for automatic Chrome for Testing installation and management. `Installer::Chrome.install(version)` resolves the version via the Chrome for Testing JSON API, caches binaries in `~/.local/state/async-webdriver/` (XDG `$XDG_STATE_HOME`), and returns an `Installation` with paths to both the Chrome and ChromeDriver binaries.
34
+ - Add `Bridge::Chrome.for(version)` as a convenience shorthand: installs the requested version if needed, then returns a fully configured `Chrome` bridge. Versions can be a channel symbol (`:stable`, `:beta`, `:dev`, `:canary`), a major version string (`"148"`), or an exact version string (`"148.0.7778.56"`).
35
+ - Add `bake async:webdriver:chrome:install` task for installing Chrome for Testing from the command line, e.g. in CI setup steps.
36
+ - Fix `Bridge::Chrome#start`, `Bridge::Firefox#start`, and `Bridge::Safari#start` not forwarding the bridge's own options (including `:driver_path`) to the driver process.
37
+ - Rename `path:` to `driver_path:` on `Bridge::Chrome`, `Bridge::Firefox`, and `Bridge::Safari` for consistency. Add `browser_path:` to `Bridge::Chrome` (mapped to `goog:chromeOptions.binary`) in place of the former `binary:` option, consistent with `Installer::Chrome::Installation#browser_path` and `#driver_path`.
38
+
39
+ ### v0.11.0
40
+
41
+ - Add `Scope::Window` with `#window_rect`, `#resize_window`, `#set_window_rect`, `#maximize_window`, `#minimize_window`, and `#fullscreen_window`.
42
+ - Expand `Scope::Printing#print` with full W3C WebDriver parameters: `orientation`, `scale`, `background`, `page`, `margin`, `page_ranges`, and `shrink_to_fit`.
43
+
31
44
  ### v0.10.0
32
45
 
33
46
  - Introduce `Scope#wait_for_navigation` to properly wait for page navigations to complete.
@@ -55,6 +68,22 @@ We welcome contributions to this project.
55
68
  4. Push to the branch (`git push origin my-new-feature`).
56
69
  5. Create new Pull Request.
57
70
 
71
+ ### Running Tests
72
+
73
+ To run the test suite:
74
+
75
+ ``` shell
76
+ bundle exec sus
77
+ ```
78
+
79
+ ### Making Releases
80
+
81
+ To make a new release:
82
+
83
+ ``` shell
84
+ bundle exec bake gem:release:patch # or minor or major
85
+ ```
86
+
58
87
  ### Developer Certificate of Origin
59
88
 
60
89
  In order to protect users of this project, we require all contributors to comply with the [Developer Certificate of Origin](https://developercertificate.org/). This ensures that all contributions are properly licensed and attributed.
data/releases.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Releases
2
2
 
3
+ ## v0.12.0
4
+
5
+ - Add `Async::WebDriver::Installer::Chrome` for automatic Chrome for Testing installation and management. `Installer::Chrome.install(version)` resolves the version via the Chrome for Testing JSON API, caches binaries in `~/.local/state/async-webdriver/` (XDG `$XDG_STATE_HOME`), and returns an `Installation` with paths to both the Chrome and ChromeDriver binaries.
6
+ - Add `Bridge::Chrome.for(version)` as a convenience shorthand: installs the requested version if needed, then returns a fully configured `Chrome` bridge. Versions can be a channel symbol (`:stable`, `:beta`, `:dev`, `:canary`), a major version string (`"148"`), or an exact version string (`"148.0.7778.56"`).
7
+ - Add `bake async:webdriver:chrome:install` task for installing Chrome for Testing from the command line, e.g. in CI setup steps.
8
+ - Fix `Bridge::Chrome#start`, `Bridge::Firefox#start`, and `Bridge::Safari#start` not forwarding the bridge's own options (including `:driver_path`) to the driver process.
9
+ - Rename `path:` to `driver_path:` on `Bridge::Chrome`, `Bridge::Firefox`, and `Bridge::Safari` for consistency. Add `browser_path:` to `Bridge::Chrome` (mapped to `goog:chromeOptions.binary`) in place of the former `binary:` option, consistent with `Installer::Chrome::Installation#browser_path` and `#driver_path`.
10
+
11
+ ## v0.11.0
12
+
13
+ - Add `Scope::Window` with `#window_rect`, `#resize_window`, `#set_window_rect`, `#maximize_window`, `#minimize_window`, and `#fullscreen_window`.
14
+ - Expand `Scope::Printing#print` with full W3C WebDriver parameters: `orientation`, `scale`, `background`, `page`, `margin`, `page_ranges`, and `shrink_to_fit`.
15
+
3
16
  ## v0.10.0
4
17
 
5
18
  - Introduce `Scope#wait_for_navigation` to properly wait for page navigations to complete.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-webdriver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -130,6 +130,11 @@ files:
130
130
  - lib/async/webdriver/client.rb
131
131
  - lib/async/webdriver/element.rb
132
132
  - lib/async/webdriver/error.rb
133
+ - lib/async/webdriver/installer.rb
134
+ - lib/async/webdriver/installer/chrome.rb
135
+ - lib/async/webdriver/installer/chrome/installation.rb
136
+ - lib/async/webdriver/installer/chrome/platform.rb
137
+ - lib/async/webdriver/installer/chrome/releases.rb
133
138
  - lib/async/webdriver/locator.rb
134
139
  - lib/async/webdriver/request_helper.rb
135
140
  - lib/async/webdriver/scope.rb
@@ -143,6 +148,7 @@ files:
143
148
  - lib/async/webdriver/scope/printing.rb
144
149
  - lib/async/webdriver/scope/screen_capture.rb
145
150
  - lib/async/webdriver/scope/timeouts.rb
151
+ - lib/async/webdriver/scope/window.rb
146
152
  - lib/async/webdriver/session.rb
147
153
  - lib/async/webdriver/version.rb
148
154
  - lib/async/webdriver/xpath.rb
@@ -163,14 +169,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
169
  requirements:
164
170
  - - ">="
165
171
  - !ruby/object:Gem::Version
166
- version: '3.2'
172
+ version: '3.3'
167
173
  required_rubygems_version: !ruby/object:Gem::Requirement
168
174
  requirements:
169
175
  - - ">="
170
176
  - !ruby/object:Gem::Version
171
177
  version: '0'
172
178
  requirements: []
173
- rubygems_version: 3.6.9
179
+ rubygems_version: 4.0.6
174
180
  specification_version: 4
175
181
  summary: A native library implementing the W3C WebDriver client specification.
176
182
  test_files: []
metadata.gz.sig CHANGED
Binary file