Comments (12)
Got it, I'll check then.
from ferrum.
It's not my top priority but it works, so I don't know what is not working:
require "ferrum"
browser = Ferrum::Browser.new(ws_url: "wss://chrome.browserless.io?token=xxx")
browser.version
page = browser.create_page
page.go "http://example.com"
page.screenshot(path: "a.png")
sleep 5
browser.quit
from ferrum.
As of my knowledge, browserless.io SaaS doesn't offer browserless 2.0 yet.
from ferrum.
Just fyi, from Browserless support. In my case I was testing with local containers, not with the cloud offering.
from ferrum.
I figured out that Ferrum is stripping the query params, and in a newer version of ferrum that added ws support without a url, it is obtaining the ws_url from /json/version which incorrectly sets ws_url to 0.0.0.0:3000 :)
I am in the process of submitting a PR that fixes this
from ferrum.
It's described here and works https://evilmartians.com/chronicles/system-of-a-test-setting-up-end-to-end-rails-testing#dockerizing-system-tests
from ferrum.
I have this setup already working. The article was written in 2020, Browserless 2.0 was released in December 2023. Browserless 1.x works without any issues, but new one works as describe in the issue above.
from ferrum.
See also: https://github.com/browserless/browserless/blob/main/MIGRATION-2.0.md#browserless-20-migration-guide
from ferrum.
Did you ever manage to get it working or find out what the issue was? @Fodoj
from ferrum.
As of my knowledge, browserless.io SaaS doesn't offer browserless 2.0 yet.
Ah I see now. That's why it working. Then I need more tests and check out the PR
from ferrum.
@route try with production-sfo.browserless.io endpoint, per their support this one is backed by v2 (or just local container)
from ferrum.
Fixed in master
from ferrum.
Related Issues (20)
- consider using === in network blacklist matching
- Doesn't work on ruby 3.2 HOT 1
- Saving via browser.mhtml and via cmd+S differs a lot on Youtube HOT 3
- Network.loadingFailed error preventing file from downloading HOT 13
- Conditionally Render Page header and footer template HOT 2
- browser.quit doesn't close session HOT 6
- Include type and stackTrace in logging for console API
- `wait_for_network_idle` failing due to pending requests on previous page HOT 1
- Remove `disable-gpu`default flag for Apple Silicon HOT 3
- authenticate current_user in ferrum browser
- Hang/Timeout in dialog HOT 9
- Ferrum::PendingConnectionsError - what to do?
- Permission denied when using Firefox HOT 1
- warning: base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0.
- How to add images for PDF ?
- I am getting syntax error after installing ferrum. Am i missing something here HOT 4
- What is the purpose of navigation awaiting in `Page.command` method? HOT 1
- Browser option --kiosk not working HOT 2
- thread.rb: terminated with exception HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ferrum.