Skip to content

Commit 480c205

Browse files
committed
Add documentation about emulation
1 parent 96f9497 commit 480c205

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ end
6464
* `:url_blacklist` (Array) - array of regexes to match against requested URLs
6565
* `:url_whitelist` (Array) - array of regexes to match against requested URLs
6666

67+
You can emulate specific devices at the time you register a driver:
68+
69+
```ruby
70+
require "capybara/cuprite/devices"
71+
Capybara.register_driver(:cuprite) do |app|
72+
Capybara::Cuprite::Driver.new(app, Capybara::Cuprite::Devices::IPHONE_14)
73+
end
74+
```
6775

6876
## Debugging
6977

0 commit comments

Comments
 (0)