Comments (4)
Same here. It's surprising, though, that it's not working, because according to their notice (https://support.mozilla.org/en-US/kb/firefox-add-technology-modernizing), things should break on FF57 (November 2017). @bard Any ideas?
from mozrepl.
Same!
I can't use document.hasFocus()
, nor window.location.href
nor document.readyState
. These requests won't return anything anymore :(.
While my application did work with FF54. I think this is a high prio item.
from mozrepl.
Sorry to be the bringer of bad news, but I haven't worked on MozRepl for a long time (as you can see from the home page, the project is officially orphaned), and any possible fix would be short-lived anyway, since Mozilla is retiring XPCOM support (which MozRepl depends on) in November 2017.
from mozrepl.
Ow no!!
I just created a great application which costs me more than 90 hours of work, which now uses MozRepl to interact with Firefox. 😒
EDIT:
Maybe we should look at how to use devtools.debugger.remote-enabled
via telnet or any connection?
Or maybe we should look at Scratchpad, how did they do this?
http://www.seleniumhq.org/
I think the best way to go forward is using Selenium in combination with GeckoDriver (for Firefox). Or use GeckoDriver directly. Selenium can be used in different programming languages, incl. Java, Python, Javascript, Ruby, C#. Python example:
import os
from selenium import webdriver
os.environ['PATH'] += os.pathsep + "/location/to/geckodriver/folder"
browser = webdriver.Firefox()
browser.get('http://seleniumhq.org/')
# Directly execute Javascript as you used to via MozRepl
blah = driver.execute_script('return document.getElementsByTagName("body")[0]')
print (blah)
# Using selenium webdriver find_element_by_id
input_field = driver.find_element_by_id('email')
# Use arguments (input_field) via execute_script again
browser.execute_script('arguments[0].setAttribute("style", "color: yellow")', input_field)
Selenium can be used cross-platform, and supports Chrome (ChromeDriver), Firefox (GeckoDriver), Safari (WebDriver) and Edge browsers (WebDriver).
from mozrepl.
Related Issues (20)
- node.js module please?
- No longer supports Thunderbird HOT 1
- Execute javascript in current web page context HOT 1
- In Firefox 25 on Ubuntu, document.cookie is undef in spite of active cookies
- websocket mode HOT 5
- Where is it in Firefox 29? HOT 3
- Changing focus from inspector window to main window
- Start the repl on Windows?
- Link to library of Bash functions for driving Mozrepl
- Feature request: REPL for add-on debugging
- window.document.URL returning browser URL HOT 4
- Why not put the temporary file in a temporay directory?
- Broken instructions for starting the REPL HOT 3
- Error "Exposing privileged or cross-origin callable is prohibited" HOT 1
- content always null when I'm use Firefox nightly builds.
- Dose not work on Firefox 55 HOT 2
- programmatically activate on startup
- Not Compatible with Firefox Quantum
- Alternatives? HOT 3
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 mozrepl.