Coder Social home page Coder Social logo

Comments (4)

balta2ar avatar balta2ar commented on July 20, 2024 2

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.

melroy89 avatar melroy89 commented on July 20, 2024

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.

bard avatar bard commented on July 20, 2024

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.

melroy89 avatar melroy89 commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.