capybara-lightpanda 0.18.0 → 0.19.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9462d0c1ee74b98cb8422cd7cefd2f6b332ca792c13ebddfb60b9b609cf40d4c
4
- data.tar.gz: 617842c42afe642ce0e9509199a990a4202437c6dbd4744899307bc973766095
3
+ metadata.gz: a454f0dd0d53f9f791377a4e7c268d577970f101d8130c2f08244808952e9075
4
+ data.tar.gz: 9f1d2088b26a9be0d7b10e0e650dd93dd95b099378404ce62e5d7e19c4d9ede2
5
5
  SHA512:
6
- metadata.gz: c5e7dd3c1e2ed78bfc47f060b28a60960dbea91b34e830f32d4f0630b478fe5dc960554bf7de2c1be565f1b71061e29517c6d164570f61230d49220a963cef17
7
- data.tar.gz: f3fb19c8dba1b2e93755de720bc90e86cd51657ec80864f8cfd696ddcd89732d2921f6a159c3fde58215614f639122d54cff1de87d9054f4a2492492e36c774a
6
+ metadata.gz: c266fe7161d1a975986effc8c4fcb775b51589a40039acb829523217ea20cb90b9569c1c75e469402782b936673feeb4392298b61350118823732fe958327b9a
7
+ data.tar.gz: 37f28c43ded7af3c81ec17aeebdccf230f7bd95870ca11febdfcf88a6f338a031b953e5e1bec496f254c861ea6e5e98a85c2041ba85eb98485fe37eb981f652f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.19.1] - 2026-11-18
4
+
5
+ ### Fixed
6
+
7
+ - **Clicking a multi-select select2 field that already holds a choice opens its dropdown.** The click landed on the selected choice, which select2 ignores, so the dropdown never opened and the next `find` of an option failed. The click now stops on the field itself. Single-select select2 and other clicks behave as before.
8
+
9
+ ## [0.19.0] - 2026-11-17
10
+
11
+ > **The default browser is now a release, not the nightly.** If you relied on the rolling nightly, set `Capybara::Lightpanda::Binary.required_version = "nightly"` or `LIGHTPANDA_VERSION=nightly`. `required_version = nil` now means "the gem's default release".
12
+
13
+ ### Changed
14
+
15
+ - **Each gem version downloads the Lightpanda release it was validated against** (1.0.4 for now) instead of that day's nightly. The browser changes when you upgrade the gem and not otherwise, and CI no longer breaks because of a nightly published that morning.
16
+ - **Upgrading the gem no longer leaves a too-old browser in the cache.** The binary is cached per version, so the new gem fetches its own release instead of failing at driver start with "Lightpanda … is too old". On the nightly, a cached build below the required version is now re-downloaded at once instead of being kept for up to 24 hours.
17
+
18
+ ### Added
19
+
20
+ - **`bundle exec capybara-lightpanda install`** downloads the browser ahead of the test run. Call it from `bin/setup` and from a CI step when your suite stubs HTTP (VCR/WebMock), which blocks the download the driver would otherwise do on first use. It takes a version (`install nightly`, `install 1.0.4`), `--force` to re-download, and `-r FILE` to load your `Binary.configure` block. `version`, `path` and `remove` are there too.
21
+ - **`LIGHTPANDA_VERSION`** picks the browser version from the environment.
22
+ - When a download is blocked and nothing is cached, the driver now prints the command to run, next to the HTTP stub's own error.
23
+
3
24
  ## [0.18.0] - 2026-11-16
4
25
 
5
26
  > **Update Lightpanda before upgrading.** This release requires Lightpanda **1.0.4** or a nightly build ≥ 12015. The driver refuses anything older and names the version it found. Pin `1.0.4` for a reproducible browser. On Intel Macs, Lightpanda 1.0.3 crashes on the first HTTPS request; 1.0.4 fixes that.
data/README.md CHANGED
@@ -57,7 +57,7 @@ driven_by :lightpanda
57
57
  > Lightpanda is a headless agentic browser, not a layout engine. External `<link rel="stylesheet">` **are** fetched and applied (the gem enables this by default), and `@media` / `window.matchMedia()` evaluate against the `window_size` you configure — so a mobile-only CTA gated by `@media (max-width: …)` resolves at the width you ask for. What's missing is *layout*: nothing reflows, `getBoundingClientRect` stays synthetic, and there is no real scroll. Specs that assert on pixel geometry, scrolling, or screenshots can't pass here, nor can the two that catch people out: a second browser tab and a menu revealed purely by CSS `:hover`. See [known limitations](https://navidemad.github.io/capybara-lightpanda/docs/#limits).
58
58
 
59
59
  > [!TIP]
60
- > For reproducible CI, pin the browser: `Capybara::Lightpanda::Binary.required_version = "1.0.4"` (the tagged release the gem's current floor is pinned to — nightly build 12015 is that release's commit). Without a pin the driver tracks Lightpanda's rolling `nightly` tag, which moves under you. See [Pinning the browser version](https://navidemad.github.io/capybara-lightpanda/docs/#pinning).
60
+ > The gem downloads the Lightpanda release it was validated against (currently 1.0.4), so the browser only changes when you upgrade the gem. If your suite stubs HTTP (VCR/WebMock), run `bundle exec capybara-lightpanda install` in `bin/setup` and in CI before the tests. To pick another release or the rolling nightly, see [Choosing the browser version](https://navidemad.github.io/capybara-lightpanda/docs/#pinning).
61
61
 
62
62
  ## Credits
63
63
 
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "capybara/lightpanda/cli"
5
+
6
+ exit Capybara::Lightpanda::CLI.run(ARGV)
@@ -30,19 +30,59 @@ module Capybara
30
30
 
31
31
  DEFAULT_CACHE_TIME = 86_400
32
32
 
33
- # One-liner that re-provisions the binary from a process with no
34
- # HTTP-stubbing loaded (VCR/WebMock guard the test process itself).
35
- # Referenced from the stale-fallback warning and BETA_TESTING.md.
36
- PROVISION_HINT =
37
- "bundle exec ruby -r capybara-lightpanda " \
38
- "-e 'Capybara::Lightpanda::Binary.remove; puts Capybara::Lightpanda::Binary.update'"
33
+ # The release downloaded when nothing else is asked for. Each gem version
34
+ # ships with the Lightpanda release it was validated against, so a
35
+ # `bundle update` moves the browser with the driver: the pin's
36
+ # version-scoped filename (see install_path) changes, the old cached file
37
+ # no longer matches, and the new release is fetched. Tracking the rolling
38
+ # nightly by default did the opposite — a floor bump left a cached
39
+ # sub-floor binary in place and the suite died at driver start, while CI
40
+ # ran whatever upstream published that morning.
41
+ #
42
+ # INVARIANT: never below Process::MINIMUM_RELEASE (binary_test pins it),
43
+ # or a fresh install would download a binary the driver then refuses.
44
+ DEFAULT_VERSION = "1.0.4"
45
+
46
+ # required_version value (or LIGHTPANDA_VERSION) that opts back into the
47
+ # rolling `nightly` tag.
48
+ NIGHTLY = "nightly"
49
+
50
+ # Command that provisions the binary from a process with no HTTP stubbing
51
+ # loaded (VCR/WebMock guard the test process itself). An executable
52
+ # rather than a rake task or a `ruby -r` one-liner: the rake tasks only
53
+ # exist under RAILS_ENV=test in a Rails app, and the executable works
54
+ # from bin/setup, a CI step and a dev shell alike. --force re-downloads
55
+ # even when a file is already cached.
56
+ PROVISION_HINT = "bundle exec capybara-lightpanda install --force"
39
57
 
40
58
  class << self
41
- # Set a specific release tag (e.g. "0.3.0") to pin downloads to that
42
- # release. When nil, the rolling "nightly" tag is used. The pin only
43
- # affects download URL construction — the gem's MINIMUM_NIGHTLY_BUILD
44
- # floor is still enforced at process start.
45
- attr_accessor :required_version
59
+ # The Lightpanda version to download: a release tag ("1.0.4",
60
+ # "1.0.5-rc1") or "nightly" for the rolling tag. Unset (nil), it falls
61
+ # back to LIGHTPANDA_VERSION, then to DEFAULT_VERSION. The version only
62
+ # picks the download — the gem's floor is still enforced at process
63
+ # start.
64
+ attr_writer :required_version
65
+
66
+ def required_version
67
+ version = @required_version.to_s
68
+ version = ENV.fetch("LIGHTPANDA_VERSION", "") if version.empty?
69
+ version.empty? ? DEFAULT_VERSION : version
70
+ end
71
+
72
+ def nightly?
73
+ required_version == NIGHTLY
74
+ end
75
+
76
+ # The release tag in effect, nil on the rolling nightly.
77
+ def pinned_version
78
+ nightly? ? nil : required_version
79
+ end
80
+
81
+ # True when the user (or the environment) chose the version, as opposed
82
+ # to inheriting DEFAULT_VERSION.
83
+ def explicit_version?
84
+ !@required_version.to_s.empty? || !ENV.fetch("LIGHTPANDA_VERSION", "").empty?
85
+ end
46
86
 
47
87
  # Seconds before a cached unpinned binary is re-downloaded. Pinned
48
88
  # binaries are never refreshed on age (they're pinned).
@@ -68,66 +108,70 @@ module Capybara
68
108
  yield self
69
109
  end
70
110
 
71
- # Canonical entrypoint: ensure the binary at install_path is current,
72
- # download if needed, return its path. Pinned (required_version set)
73
- # never re-downloads when present. Unpinned re-downloads when older
74
- # than cache_time. When unpinned and the gem cache is empty/stale,
75
- # an already-installed `lightpanda` on PATH (e.g. via Homebrew) wins
76
- # over re-downloading — keeps test suites running under VCR/WebMock
77
- # from triggering surprise HTTP to github.com.
111
+ # Canonical entrypoint: return the path of a usable binary, downloading
112
+ # one if needed.
113
+ #
114
+ # - A release (the default, or an explicit pin) is used as soon as its
115
+ # version-scoped file exists; it is never refreshed on age.
116
+ # - The nightly is re-downloaded once older than cache_time, or at once
117
+ # when the cached build is below the gem's floor (see cache_usable?).
118
+ # - A `lightpanda` on PATH (Homebrew, a package) wins over downloading
119
+ # unless the version was chosen explicitly — a pin is a version
120
+ # contract PATH can't honor. It keeps a suite under VCR/WebMock from
121
+ # firing surprise HTTP at github.com.
78
122
  def update
79
123
  destination = install_path
80
124
 
81
- if required_version
82
- if File.executable?(destination)
83
- log("Pinned #{required_version} present at #{destination}")
84
- return destination
85
- end
86
- return download
87
- end
88
-
89
- if cached_fresh?(destination)
90
- log("Cached binary at #{destination} is fresh (< #{cache_time}s)")
125
+ if cache_usable?
126
+ log("Cached binary at #{destination} is usable")
91
127
  return destination
92
128
  end
93
129
 
94
- if (system_path = system_binary_path)
130
+ if !(pinned_version && explicit_version?) && (system_path = system_binary_path)
95
131
  log("Using lightpanda from PATH at #{system_path}")
96
132
  return system_path
97
133
  end
98
134
 
99
- # Stale-or-absent cache, nothing on PATH: refresh from the network.
100
- # If that fails (GitHub 5xx, DNS/connect timeouts, SocketError) but a
101
- # usable — if stale — binary is already cached, keep using it rather
102
- # than hard-failing. A cold cache (nothing on disk) still surfaces the
103
- # error. The MINIMUM_NIGHTLY_BUILD floor is enforced downstream in
104
- # Process#start, so a sub-floor binary can't slip in.
135
+ # If the download fails (GitHub 5xx, DNS/connect timeouts, an HTTP
136
+ # stub) but a binary is already cached, keep using it rather than
137
+ # hard-failing; with nothing on disk the error surfaces. The floor is
138
+ # enforced downstream in Process#start, so a sub-floor binary can't
139
+ # slip in.
105
140
  #
106
141
  # Deliberately StandardError, not Exception: WebMock's
107
142
  # NetConnectNotAllowedError descends from Exception so it propagates
108
143
  # through app rescue blocks by design — a test suite that blocks net
109
- # connections SHOULD fail loudly here, not silently fall back. CI
110
- # pre-provisions the binary outside that guard instead (real-apps.yml).
144
+ # connections SHOULD fail loudly here, not silently fall back.
145
+ #
146
+ # Kernel.warn, not log: log() is silent unless LIGHTPANDA_DEBUG or an
147
+ # explicit logger is set, and this is exactly the moment the user
148
+ # needs to hear about — a VCR-guarded suite (whose
149
+ # UnhandledHTTPRequestError is a StandardError) lands here, and
150
+ # without the hint all it sees is VCR's error or, later, a floor
151
+ # error with no trace of the blocked download.
111
152
  begin
112
153
  download
113
154
  rescue StandardError => e
114
- raise unless File.executable?(destination)
115
-
116
- # Kernel.warn, not log: log() is silent unless LIGHTPANDA_DEBUG or
117
- # an explicit logger is set, and this fallback is exactly the
118
- # moment the user needs to hear about — a VCR-guarded suite (whose
119
- # UnhandledHTTPRequestError is a StandardError, unlike raw
120
- # WebMock's Exception) lands here silently, keeps a stale binary,
121
- # and later hits a confusing MINIMUM_NIGHTLY_BUILD floor error
122
- # with no trace of the blocked download.
123
- warn("[capybara-lightpanda] Binary download failed (#{e.class}: #{e.message}); " \
124
- "falling back to the cached binary at #{destination}. " \
155
+ cached = File.executable?(destination)
156
+ warn("[capybara-lightpanda] Binary download failed (#{e.class}: #{e.message})" \
157
+ "#{"; falling back to the cached binary at #{destination}" if cached}. " \
125
158
  "If your suite stubs HTTP (VCR/WebMock), pre-provision from an " \
126
159
  "unstubbed process: #{PROVISION_HINT}")
160
+ raise unless cached
161
+
127
162
  destination
128
163
  end
129
164
  end
130
165
 
166
+ # Make sure the binary for the version in effect sits in the gem's own
167
+ # cache, ignoring PATH: what `capybara-lightpanda install` runs from
168
+ # bin/setup or a CI step, where the point is to fill the cache.
169
+ def install(force: false)
170
+ return install_path if !force && cache_usable?
171
+
172
+ download
173
+ end
174
+
131
175
  # Delete the cached binary. Returns the path that was deleted, or nil
132
176
  # if nothing was there.
133
177
  def remove
@@ -175,7 +219,7 @@ module Capybara
175
219
  # and both rename a complete file — last writer wins, both are valid.
176
220
  def download
177
221
  binary_name = platform_binary
178
- tag = required_version || "nightly"
222
+ tag = required_version
179
223
  url = "#{release_url}/#{tag}/#{binary_name}"
180
224
  destination = install_path
181
225
 
@@ -223,10 +267,10 @@ module Capybara
223
267
  def update_hint(binary_path)
224
268
  if brew_managed?(binary_path)
225
269
  "brew update && brew upgrade lightpanda"
226
- elsif binary_path == install_path && required_version
270
+ elsif binary_path == install_path && pinned_version
227
271
  "Capybara::Lightpanda::Binary.required_version is pinned to " \
228
272
  "#{required_version} — raise the pin to a newer release, " \
229
- "or unset it to track the rolling nightly."
273
+ "or set it to \"nightly\" to track the rolling nightly."
230
274
  elsif binary_path == install_path
231
275
  PROVISION_HINT
232
276
  else
@@ -261,7 +305,7 @@ module Capybara
261
305
  # pin self-verifying and lets several pins coexist in one cache dir.
262
306
  def install_path
263
307
  dir = @install_dir || File.dirname(default_binary_path)
264
- basename = required_version ? "lightpanda-#{required_version}" : "lightpanda"
308
+ basename = pinned_version ? "lightpanda-#{pinned_version}" : "lightpanda"
265
309
 
266
310
  File.join(dir, basename)
267
311
  end
@@ -302,6 +346,18 @@ module Capybara
302
346
  nil
303
347
  end
304
348
 
349
+ # A cached release only has to exist: its filename carries the version.
350
+ # A cached nightly must be young enough AND clear the gem's floor — age
351
+ # alone let a build cached yesterday survive a floor bump for up to
352
+ # cache_time, and the driver then refused to start on a binary the gem
353
+ # itself had just called fresh.
354
+ def cache_usable?
355
+ path = install_path
356
+ return File.executable?(path) if pinned_version
357
+
358
+ cached_fresh?(path) && !below_floor?(path)
359
+ end
360
+
305
361
  def cached_fresh?(path)
306
362
  return false unless File.executable?(path)
307
363
  return true if cache_time.zero?
@@ -309,6 +365,25 @@ module Capybara
309
365
  (Time.now - File.mtime(path)) < cache_time
310
366
  end
311
367
 
368
+ # Only a version the floor check positively rejects counts. A file that
369
+ # can't be run or doesn't answer is left to Process#start, which reports
370
+ # it properly. Process is looked up lazily: binary.rb loads before
371
+ # process.rb, and on its own in the provisioning scripts, where the
372
+ # floor is unknown and nothing is rejected.
373
+ def below_floor?(path)
374
+ return false unless Lightpanda.const_defined?(:Process, false)
375
+
376
+ stdout, _, status = Open3.capture3(path, "version")
377
+ return false unless status.success? && !stdout.strip.empty?
378
+
379
+ Lightpanda::Process.check_version!(stdout) { "" }
380
+ false
381
+ rescue BinaryError
382
+ true
383
+ rescue SystemCallError
384
+ false
385
+ end
386
+
312
387
  def normalize_arch(arch)
313
388
  case arch
314
389
  when /x86_64|amd64/i then "x86_64"
@@ -0,0 +1,95 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "optparse"
4
+ require_relative "errors"
5
+ require_relative "binary"
6
+ require_relative "process"
7
+
8
+ module Capybara
9
+ module Lightpanda
10
+ # `capybara-lightpanda` executable: provisions the browser binary from a
11
+ # process of its own. The driver otherwise downloads it lazily, inside the
12
+ # test process, where VCR/WebMock block the request — so a setup script or
13
+ # a CI step calls this first and the suite finds the binary already there.
14
+ #
15
+ # Loads only the binary/process files, not the driver: no Capybara, no
16
+ # Rails, and nothing that stubs HTTP.
17
+ class CLI
18
+ USAGE = <<~TEXT
19
+ Usage: capybara-lightpanda COMMAND [options]
20
+
21
+ Commands:
22
+ install [VERSION] Download the Lightpanda binary into the gem's cache
23
+ (VERSION: a release tag or "nightly"; default: the
24
+ release this gem version was validated against)
25
+ version Print the version of the cached binary
26
+ path Print where the binary is (or would be) cached
27
+ remove Delete the cached binary
28
+
29
+ Options:
30
+ TEXT
31
+
32
+ def self.run(argv, out: $stdout, err: $stderr)
33
+ new(out, err).run(argv.dup)
34
+ end
35
+
36
+ def initialize(out, err)
37
+ @out = out
38
+ @err = err
39
+ @force = false
40
+ end
41
+
42
+ # Returns the process exit status.
43
+ def run(argv)
44
+ parser.parse!(argv)
45
+ command, version = argv
46
+ Binary.required_version = version if version
47
+
48
+ case command
49
+ when "install" then install
50
+ when "version" then version_command
51
+ when "path" then @out.puts(Binary.install_path)
52
+ when "remove" then remove
53
+ else
54
+ @err.puts(parser.help)
55
+ return command.nil? ? 0 : 1
56
+ end
57
+ 0
58
+ rescue OptionParser::ParseError, LoadError, Error => e
59
+ @err.puts("capybara-lightpanda: #{e.message}")
60
+ 1
61
+ end
62
+
63
+ private
64
+
65
+ def parser
66
+ @parser ||= OptionParser.new(USAGE) do |opts|
67
+ opts.on("-f", "--force", "install: download even if a binary is already cached") { @force = true }
68
+ # A project that configures Binary (install_dir, required_version,
69
+ # a proxy) in a support file points at it here, so the command and
70
+ # the suite agree on what to download and where.
71
+ opts.on("-r", "--require FILE", "Load FILE first (your Binary.configure block)") do |file|
72
+ require File.expand_path(file)
73
+ end
74
+ end
75
+ end
76
+
77
+ def install
78
+ path = Binary.install(force: @force)
79
+ @out.puts("Lightpanda #{Binary.current_version || Binary.required_version} ready at #{path}")
80
+ end
81
+
82
+ def version_command
83
+ version = Binary.current_version
84
+ raise BinaryNotFoundError, "no cached Lightpanda binary at #{Binary.install_path}" unless version
85
+
86
+ @out.puts(version)
87
+ end
88
+
89
+ def remove
90
+ removed = Binary.remove
91
+ @out.puts(removed ? "Removed #{removed}" : "Nothing to remove at #{Binary.install_path}")
92
+ end
93
+ end
94
+ end
95
+ end
@@ -613,8 +613,13 @@ module Capybara
613
613
  // child of the .select2-container that Capybara helpers click. We
614
614
  // can't use "single visible child" as a guard — select2 keeps an
615
615
  // offscreen .select2-focusser <input> sibling that has no geometry to
616
- // distinguish, so it reads as a second visible child. The descent
617
- // never starts from an interactive element, so a normal
616
+ // distinguish, so it reads as a second visible child. That's why the
617
+ // first step always descends, but below `this` the walk stops at an
618
+ // element with several visible children: a centred pointer lands on
619
+ // that element, not inside its first child. A multi select2 holding
620
+ // a choice is the case: descending into the choice is a click
621
+ // select2 deliberately ignores, while the choices list opens it.
622
+ // The descent never starts from an interactive element, so a normal
618
623
  // button/link/input click still lands exactly on `this`.
619
624
  var INTERACTIVE = { A: 1, BUTTON: 1, INPUT: 1, SELECT: 1, TEXTAREA: 1,
620
625
  OPTION: 1, LABEL: 1, SUMMARY: 1 };
@@ -622,11 +627,14 @@ module Capybara
622
627
  while (!INTERACTIVE[hit.tagName] &&
623
628
  !hit.hasAttribute('onclick') &&
624
629
  hit.getAttribute('role') !== 'button') {
625
- var next = null, ch = hit.children;
630
+ var next = null, visible = 0, ch = hit.children;
626
631
  for (var i = 0; i < ch.length; i++) {
627
- if (!window._lightpanda || _lightpanda.isVisible(ch[i])) { next = ch[i]; break; }
632
+ if (!window._lightpanda || _lightpanda.isVisible(ch[i])) {
633
+ visible++;
634
+ if (!next) next = ch[i];
635
+ }
628
636
  }
629
- if (!next) break;
637
+ if (!next || (hit !== this && visible > 1)) break;
630
638
  hit = next;
631
639
  }
632
640
  // Real pointer clicks are a mousedown -> mouseup -> click sequence,
@@ -347,7 +347,9 @@ module Capybara
347
347
  # INVARIANT: every MINIMUM_NIGHTLY_BUILD bump must also move this to the
348
348
  # first release containing that build (`git rev-list --count <tag>` in the
349
349
  # browser repo tells you). Leaving it behind would let the release channel
350
- # silently accept a binary the nightly channel rejects.
350
+ # silently accept a binary the nightly channel rejects. Move
351
+ # Binary::DEFAULT_VERSION with it: that is the release a fresh install
352
+ # downloads, and it must clear this floor.
351
353
  MINIMUM_RELEASE = Gem::Version.new("1.0.4")
352
354
 
353
355
  # A release-candidate binary: "<x.y.z>-rc<N>.<git rev-list --count>+<hash>".
@@ -15,7 +15,7 @@ namespace :lightpanda do
15
15
  end
16
16
  end
17
17
 
18
- desc "Download the Lightpanda binary (optionally pinned: rake lightpanda:binary:update[0.3.0])"
18
+ desc "Download the Lightpanda binary (a release tag or nightly: rake lightpanda:binary:update[1.0.4])"
19
19
  task :update, [:version] do |_, args|
20
20
  Capybara::Lightpanda::Binary.required_version = args[:version] if args[:version]
21
21
  path = Capybara::Lightpanda::Binary.update
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Capybara
4
4
  module Lightpanda
5
- VERSION = "0.18.0"
5
+ VERSION = "0.19.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-lightpanda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Navid Emad
8
- bindir: bin
8
+ bindir: exe
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
@@ -57,12 +57,13 @@ dependencies:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
59
  version: '0.8'
60
- description: A Capybara driver for Lightpanda, the fast headless browser built in
61
- Zig. Provides a production-ready driver with XPath polyfill, reliable navigation,
62
- and cookie management — ready for real-world Rails test suites.
60
+ description: 'A Capybara driver for Lightpanda, the fast headless browser built in
61
+ Zig. Same Capybara DSL, a built-in CDP client, Turbo-aware waits, and no Chrome
62
+ to install: the gem downloads the browser it was validated against.'
63
63
  email:
64
64
  - design.navid@gmail.com
65
- executables: []
65
+ executables:
66
+ - capybara-lightpanda
66
67
  extensions: []
67
68
  extra_rdoc_files: []
68
69
  files:
@@ -70,6 +71,7 @@ files:
70
71
  - LICENSE.txt
71
72
  - NOTICE.md
72
73
  - README.md
74
+ - exe/capybara-lightpanda
73
75
  - lib/capybara-lightpanda.rb
74
76
  - lib/capybara/lightpanda/auto_scripts.rb
75
77
  - lib/capybara/lightpanda/binary.rb
@@ -80,6 +82,7 @@ files:
80
82
  - lib/capybara/lightpanda/browser/navigation.rb
81
83
  - lib/capybara/lightpanda/browser/runtime.rb
82
84
  - lib/capybara/lightpanda/browser/selenium_compat.rb
85
+ - lib/capybara/lightpanda/cli.rb
83
86
  - lib/capybara/lightpanda/client.rb
84
87
  - lib/capybara/lightpanda/client/subscriber.rb
85
88
  - lib/capybara/lightpanda/client/web_socket.rb