Questions tagged [mozrepl]

MozRepl (Mozilla Plugin) lets you program Firefox and other Mozilla-based applications from the inside using a telnet client.

MozRepl Is a plugin for Mozilla-based applications. It is an read/eval/print loop, that acts like a telnet server within e.g. Firefox.

The server allowing you connect to the "telnet server" using any application and send commands to Firefox. Commands sent to Firefox by MozRepl are executed as if it was run from the browser.

Example of client: WWW::Mechanize::Firefox what uses MozRepl and allows automate Firefox via perl through the Mozrepl plugin.

34 questions
1
vote
1 answer

AutoIt Firefox _FFClick doesn't work on button? (FF.au3)

Using the firefox plugin ("ff-au3") for AutoIt, how do I click a button? Here is the HTML of the item I'd like to click:
Katie
  • 45,622
  • 19
  • 93
  • 125
1
vote
1 answer

Failed to connect to , at MozRepl/RemoteObject.pm

Trying to set up WWW::Mechanize::Firefox and access Firefox using Perl. I've installed the module and its dependencies. I'm not sure if I've understood this module properly but I'm running it on a unix (shared) server to access and drive Firefox…
Scotsman
  • 177
  • 1
  • 9
1
vote
2 answers

Problems while installing WWW::Mechanize::Firefox

I am using the windows 8 operating system and I am trying to install the WWW::Mechanize::Firefox module in ActiveState Perl, from CPAN. I have successfully downloaded and installed all the dependencies and also installed the MozRepl module on…
Amritha
  • 795
  • 3
  • 9
  • 26
1
vote
0 answers

MozRepl gives ReferenceError sometimes (BrowserReload())

I'm using MozRepl with Vim to reload the browser. This is the command I run: echo "BrowserReload(); repl.quit()" | nc -w 1 localhost 4242 Sometimes it works, other times it gives ReferenceError: BrowserReload is not defined. Anybody in the…
Olle Härstedt
  • 3,799
  • 1
  • 24
  • 57
1
vote
1 answer

can we exit without error from telnet with MozRepl?

based on this answer, I am trying to figure out a way to exit from telnet and it return 0 these wont work: (echo -e "repl.quit()";sleep 1) |telnet localhost 4242;echo $? (echo -e "\029";sleep 1;echo "q";sleep 1) |telnet localhost 4242;echo $? (echo…
Aquarius Power
  • 3,729
  • 5
  • 32
  • 67
1
vote
1 answer

mozrepl and document.cookie

I'm using mozrepl with firefox 25 on ubuntu and I want to grab the cookies for the current page. telnet localhost 4242 ... repl> document.title "my test cookie site - Mozilla Firefox" repl> document.cookie repl> Doing anything with…
Jistanidiot
  • 54,334
  • 4
  • 18
  • 29
1
vote
2 answers

How to install firefox addon mozrepl on Web hosting server

I have perl script for scraping which uses WWW::Mechanize::Firefox and firefox addon MozRepl. Now, i need to deploy it on a web hosting server. The problem is that the they don't provide any interface or UI terminal so that i can launch firefox and…
1
vote
3 answers

Perl - Breaking a variable from the input into two for the url

I'm loading data from a .txt for the purposes of scraping. However, the URL requires that I break that variable up and do +/- 2 to it. For example, if the value is 2342, I need to create 2340 and 2344 for the purposes of the URL. I took a guess…
user1690130
  • 500
  • 2
  • 7
  • 26
1
vote
3 answers

Scraping multiple items off of a Page into a Neat Row

As an example: I load in the input from a .txt: Benjamin,Schuvlein,Germany,1912,M,White I do some code that I will not post here for brevity and get to the link: https://familysearch.org/pal:/MM9.1.1/K3BN-LLJ I want to scrape multiple things from…
user1690130
  • 500
  • 2
  • 7
  • 26
0
votes
1 answer

create thumbnails with WWW::Mechanize::FireFox using Mozrepl - some debug attempts

well i run this script , which is written to do some screenshots of websites i have also up and running mozrepl here we have the file with some of the requested urls ... note this is only a short snippet of the real list - the real list is much…
zero
  • 1,003
  • 3
  • 20
  • 42
0
votes
1 answer

Autoit FF.au3 cant check if element is focused

How can I check if the element is focused? This is my try: I have prepared a function that checks if the object is focused: _FFCmd('FFau3.isfocused=function isfocused(a){try{return (a === document.activeElement)}catch(e){return}}') $oElm =…
Milos
  • 2,927
  • 1
  • 15
  • 27
0
votes
2 answers

How to enter text into textbox using MozRepl if the text has backslashes in it as part of the text?

my @para_text = ( "The build of $build CUT$cut was started as requested and its progress can be monitored in Anthill here", "", "http://anthill:8080/tasks/project/BuildLifeTasks/viewBuildLife? buildLifeId=$lifeid", "", 'If it completes…
0
votes
1 answer

WWW::Mechanize::Firefox - remove welcome text

Whenever I start a WWW::Mechanize::Firefox Perl script, the first thing that loads into the browser screen are the words "WWW::Mechanize::Firefox". How do I disable this? My Perl code #!perl -w use strict; use WWW::Mechanize::Firefox; my $mech =…
Jeremy Gwa
  • 2,333
  • 7
  • 25
  • 31
0
votes
1 answer

Can't locate MozRepl.pm in @INC (you may need to install the MozRepl module)

I am trying to logon to a website which has Javascript Login using Mechanize Firefox. The program works fine on Ubuntu, but when I run on windows I am getting the following error. Can't locate MozRepl.pm in @INC (you may need to install the MozRepl…
Anoop Pete
  • 492
  • 2
  • 4
  • 17
0
votes
0 answers

Windows. setting autorefresh on firefox with vim, mozrepl and putty

Anybody knows how? I followed this detailed tutorial but seems to work only in linux. Then I tried nearly everything: Edit: I managed an improvement by using Putty raw and changing !echo -linux- with !start -win- . but currently I only manage to…
jose
  • 399
  • 2
  • 14