dvla-browser-drivers 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -18
- data/lib/dvla/browser/drivers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0cca2d4b8a325d4dfb87fdfc8a9d72e2f5e2b20a061b57adee8b48ae1aec25e
|
4
|
+
data.tar.gz: a2db84a8fe4ed13e71506f5e8b43ddd71042374ce4cd9d0457f8ecb7035f365b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92be8a16275191b563394377d5e9b9bf0d89c87102e5a329409bd0df8009b2603b79f5579a2959c8526e837e3d4e61c44077939b1f7e1c79943b9ebfaf6855cd
|
7
|
+
data.tar.gz: e7e3f5c39e4efb722464df1d0cd922679f9852e04ba4dc10864c603ec74ce8a8555127bb9cd5eafeaedf90d22d6924679f57985b701f7e1214aeef315859b21a
|
data/README.md
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# DVLA::Browser::Drivers
|
2
2
|
|
3
3
|
DVLA-Browser-Drivers is a gem that has pre-configured browser drivers that you can use out-of-the-box for the
|
4
|
-
development of your application.
|
4
|
+
development of your application.
|
5
5
|
|
6
6
|
## Installation
|
7
7
|
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
8
10
|
```ruby
|
9
|
-
|
10
|
-
gem 'dvla-browser-drivers'
|
11
|
-
end
|
11
|
+
gem 'dvla-browser-drivers'
|
12
12
|
```
|
13
13
|
|
14
14
|
And then execute:
|
@@ -17,7 +17,7 @@ And then execute:
|
|
17
17
|
|
18
18
|
Or install it yourself as:
|
19
19
|
|
20
|
-
$ gem install dvla-browser-drivers
|
20
|
+
$ gem install dvla-browser-drivers
|
21
21
|
|
22
22
|
## Usage
|
23
23
|
|
@@ -26,7 +26,7 @@ Once installed, you are able to use any pre-configured browser driver from the l
|
|
26
26
|
### Selenium drivers
|
27
27
|
|
28
28
|
| Driver | Usage |
|
29
|
-
|
29
|
+
| ---------------- | ----------------------------------------- |
|
30
30
|
| chrome | `DVLA::Browser::Drivers.chrome` |
|
31
31
|
| headless_chrome | `DVLA::Browser::Drivers.headless_chrome` |
|
32
32
|
| edge | `DVLA::Browser::Drivers.edge` |
|
@@ -37,7 +37,7 @@ Once installed, you are able to use any pre-configured browser driver from the l
|
|
37
37
|
### Non-selenium drivers
|
38
38
|
|
39
39
|
| Driver | Usage |
|
40
|
-
|
40
|
+
| ------------------- | -------------------------------------------- |
|
41
41
|
| cuprite | `DVLA::Browser::Drivers.cuprite` |
|
42
42
|
| headless_cuprite | `DVLA::Browser::Drivers.headless_cuprite` |
|
43
43
|
| apparition | `DVLA::Browser::Drivers.apparition` |
|
@@ -48,9 +48,9 @@ Once installed, you are able to use any pre-configured browser driver from the l
|
|
48
48
|
### Default configuration
|
49
49
|
|
50
50
|
| Driver | Configuration |
|
51
|
-
|
51
|
+
| --------------------- | ----------------------------------------------------- |
|
52
52
|
| chrome, edge, firefox | --disable-dev-shm-usage<br/> |
|
53
|
-
|
|
53
|
+
| headless\_<driver> | --headless<br/>--no-sandbox |
|
54
54
|
| cuprite, apparition | { 'no-sandbox': nil, disable-smooth-scrolling: true } |
|
55
55
|
|
56
56
|
---
|
@@ -58,7 +58,7 @@ Once installed, you are able to use any pre-configured browser driver from the l
|
|
58
58
|
### Additional configuration
|
59
59
|
|
60
60
|
| Option | Description | supported-browsers |
|
61
|
-
|
61
|
+
| --------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- |
|
62
62
|
| remote: 'http://localhost:4444/wd/hub' | Allows you to talk to a remote browser | firefox |
|
63
63
|
| additional_options: ['window-size=1400,1920'] | Pass additional options to the driver<br/>Supported switches: https://peter.sh/experiments/chromium-command-line-switches/ | chrome, edge, firefox |
|
64
64
|
| additional_preferences: [{'download.default_directory': '<download_path>'}] | Pass additional preferences to the driver<br/>Documentation: https://www.selenium.dev/selenium/docs/api/rb/Selenium/WebDriver/Chromium/Options.html#add_preference-instance_method | chrome, edge, firefox |
|
@@ -72,11 +72,3 @@ also run `bin/console` for an interactive prompt that will allow you to experime
|
|
72
72
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the
|
73
73
|
version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version,
|
74
74
|
push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
75
|
-
|
76
|
-
## Contributing
|
77
|
-
|
78
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/dvla-browser-drivers.
|
79
|
-
|
80
|
-
## License
|
81
|
-
|
82
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dvla-browser-drivers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Driver and Vehicle Licensing Agency (DVLA)
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-03-
|
12
|
+
date: 2024-03-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: apparition
|