Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

272
Views
How to evaluate JavaScript with Firefox's Remote Debugging Protocol (RDP)?

I am trying to use RDP to automate Firefox, but I could not find a way to evaluate arbitrary JavaScript in the context of current web page. I am looking for a command equivalent to Chrome's Runtime.evaluate.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I don't think Firefox is pursuing the implementation of CDP anymore, and as you already noticed, the Runtime.evaluate command does not seem to be part of the implemented features. Hard to be 100% sure because the available documentation is very sparse but I tested it and it fails with UnknownMethodError.

Mozilla is currently pushing for a new protocol: WebdriverBiDi. This new specification should bridge the gap between the REST-based Webdriver protocol and the newly emerged Websocket-based DevTools protocol (more flexible and efficient). It will be a Websocket-based protocol and the good news is that Google, Mozilla, Apple and other major players are part of it. Hopefully, this will emerge as a real standard like Webdriver became.

Given the current draft of the spec, I would say that script.evaluate should be the command you will be waiting for... I have no idea when it will get there though.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!