Firefox won't play iMacros via URL? - firefox

For the last week or so I've been developing an application to programmatically maintain some stuff online, to do so I need to launch iMacros from Firefox via Python.
Currently I am doing that in Python with this code, it has worked fine for a week:
firefoxpath = '"C:/Program Files (x86)/Mozilla Firefox//firefox.exe"'
macroCommand = firefoxpath + " imacros://run/?m=" + path_to_macro
subprocess.Popen(macroCommand)
There is some other stuff that cleans up processes in there and listens for errors too, but all that really matters right now is launching the macros
Today, after this worked for several hours of coding. I started getting this popup when attempting to launch via Python. (It's the popup Firefox gives when it doesn't know how to handle a file or URL).
Launch Application Popup:
It would seem that Firefox no longer thinks it can launch imacros files directly. However, the files play just find if you click "play" in the iMacros panel.
I've been troubleshooting for an hour and it doesn't seem like anyone online has had this problem before. Any ideas?
UPDATE:
I managed to get this working by completely reinstalling windows on the problem machine. Before doing that, I reinstalled firefox a number of times, tried a portable copy of firefox, deleted firefox's registry entries, disabled multi-process windows in FF, uninstalled all plugins one by one, and tried the same thing as a different user (both with and without admin).
None of that worked, if anyone in the future encounters this bug I recommend just reinstalling windows on the problem machine.
I was using
Windows 10
Firefox 54
iMacros for FF 9.0.3
Python 2.7
God speed to anyone else who encounters this.

Related

Prevent firefox extension autohide when opening a file using WebExtension APIs only

I need to prevent my FF extension from closing when using a button with type="file".
In the past there were several workarounds and the last reported one was using the extension SDK but it has been discontinued since 2017 leaving only WebExtension API's as the only tool available to build extensions.
There was this previous post which is referenced basically everywhere but the extension SDK has since been discontinued as mentioned above.
There's also this thread on bugzilla but the latest activity was a couple months ago and prior to that 4 years ago.
Does anybody know a workaround?
Context:
Happens only on Firefox, Chrome works as it should
Extension I'm working on uses min version 57
Bug happens on desktop versions
Been developing on Windows, haven't tried any other OS's but this seems to happen on all of them
Steps to reproduce:
Setup a basic firefox extension
Add a button with type="file"
Click it to load a file and set any kind of code afterwards
The extension will open the file select (as it should) but will close the extension on the background so after confirming the selection the extension will be closed and any code that should run afterwards won't work.
Any ideas or workarounds known?

After using Selenium on macOS, Chrome isn't the same

I installed selenium and used a python program to run chrome using selenium on my MacBook Air. Before there was an error on selenium, and after installing googlechrome drivers for selenium and creating a PATH using terminal, it opened a separate google chrome page that showed Chrome is being controlled by automated test software.
After around 30 minutes of running python and using selenium, I saved and closed out of everything.
In the next 2 minutes, I reopened Google Chrome to search something about web scraping, and the browser was the same one used by selenium. It still showed the Chrome is being controlled by automated test software notice, and there was a Chrome Automation Extension.
I tried:
logging in and syncing, but syncing was not available.
opening Google Chrome from application folder and dock, but nothing changed
deleting Google Chrome and reinstalling, but nothing changed
I don't know how to fix this. Can anyone help me?
Thanks in advance!
Ok, so I found out that the chromedriver was still running in the background. After I closed it using activity monitor, the problem was solved.

Chrome Extension doesn't work on Ubuntu despites it works on windows perfectly

I'm working in a Chrome Extension, very simple, it just take a vector with dates to count the working days (no weekend or holiday). It works with bootstrap and soma JavaScript functions to count.
It works perfectly fine in windows, but I need them to work in Ubuntu too. After installation, when trying to open on Ubuntu, icon disappears from task bar. If I look at it on Extensions admin, it says the extension is damaged with a "Repair" button. Repairing it doesn't work either.
Does anyone know the cause? Any help will be appreciated.
Any documentation needed will be added on a edit.
(Sorry for my english)

IsClipboardFormatAvailable returns true but GetClipboardData returns NULL even when text on clipboard

This is a problem I only see in vim but I am hoping someone can provide advice on what to look for (with google code shutdown, I cannot submit bug reports for vim).
On x64 Windows 8.1 (it works fine on x64 Windows 7) vim/gvim works fine with the windows clipboard until you launch a web browser (chrome, firefox, opera, ie). When the browser is running, vim can place text on the clipboard but cannot get text from the clipboard. When the web browser is closed, the clipboard starts working again.
I have tracked the problem down to IsClipboardFormatAvailable(CF_UNICODETEXT) returning non-NULL but GetClipboardData(CF_UNICODETEXT) returning NULL under these conditions. It seems to be something specific to how vim is using the win32 api (probably different calls than these) because simple test apps that I write doing this work fine.
I have tried running with different compatibility settings and running as administrator but nothing makes a difference. This behavior is the same for both 32-bit and 64-bit builds created using Visual Studio 2013 Community and 2010 Professional.
What is the most puzzling is that the official 32-bit build (very old at this point) works fine but my own build off of the exact same tag (or every other build I have found on the internet) does not work.
For the curious there are instructions on how to get and build vim on windows here (note - I am not the blog author): http://solar-blogg.blogspot.com/p/vim-build.html

Selenium-webdriver Firefox issue windows 7

I am running Selenium Webdriver locally on my windows home server (windows 7 professional actually) which logs to a site and sends some emails. It's a java program with a single thread running.
I can see Firefox opening up just fine when running through Eclipse and follow the clicks etc as it logs on without problems.
I have set up a Task Scheduler task to start it up every morning though and run the jar. The program runs fine but when Firefox opens it is almost invisible, I can see the grey frames of it but everything else is transparent and invisible and if you drag something in front of it the graphics get stuck.
When clicking on Properties on Task manager I can see that it started with firefox.exe - foreground whereas when I open Firefox normally it says -browser.
The program still does what it should do, it's just Firefox is not visible at all when running through java -jar X.jar etc.
Any ideas why?
Windows 7 Professional
WebDriver 2.32
Firefox 21
I suspect it has something to do with the anonymous Firefox Profiles created each time firefox runs. I usually delete them from Temp once a week.
P.S No idea if it matters but server is headless and I am accessing it through TeamViewer.
Issue solved by deleting firefox profiles and loading from scratch. Weird, not sure yet what caused this and if it happens again.
Perhaps I will create a specific firefox profile and use instead of a anonymous one created each time.

Resources