Firebug is showing deactivated - eclipse

I had installed firebug and run a WebDriver program on eclipse.
On running the code, page shows the URL but not the Firebug Icon.
Also on opening browser manually Firebug is showing deactivated and I'm unable to inspect element by using Firebug.
using Firefox Version :- 45.0
eclipse version :- 4.5
WebDriver version :2.51
FireBug version :- 2.0.19

There are 2 Problems
After running selenium code firebug icon is not there :
Selenium creates new profile every time while run the script. Thats why it won't show your addons, plugins, bookmarks in that browser
Your add on only will display in profile you are using e.g. manually opening the browser You can add thet profile in your selenium code then you will be able to view all your addons, bookmarks and all
This is tutorial link frome where you can learn.
Disable firebug icon
I was also getting that firebu icon desable issue before few day in FF version 51 . either your ff version and firebug version not compitable . Please have a look in this question
Firebug toolbar button is always shown deactivated since Firefox 51.0.1

Here is the Answer to your Question:
You can't get Firebug Extension added to the Firefox Session started by WebDriver anymore.
The reason behind is:
Question for you: Is your extension signed? The Answer is "No".
So according to MDN, "Firefox 48: (Pushed from Firefox 46). Release and Beta versions of Firefox for Desktop will not allow unsigned extensions to be installed, with no override.
So to install an unsigned extension you'll need to downgrade Firefox to 47.x Legacy release versions.
Let me know if this Answers your Question.

Related

Unable to open http links from Visual Studio Code: Your Firefox profile cannot be loaded

When I try to open a http-Link in Visual Studio Code, my standard browser Firefox is not able to open it. I receive a Firefox error message:
Your Firefox profile cannot be loaded. It may be missing or inaccessible.
How I reproduce this on my machine:
Create a document (test.txt), paste http://www.stackoverflow.com/ in it, hover over the link in VS Code and follow it via ctrl-click.
I am not sure if this a Firefox question or a VS Code question, or both. But opening links from other programs such as Thunderbird or LibreOffice Writer works.
If I go to ~/.mozilla/.firefox/ and delete the profiles.ini, Firefox creates a new profiles.ini with which links do open from VS Code. However, that way I lose my Firefox profile.
Versions:
Ubuntu 20.04 LTS
VS Code 1.68.1
Firefox 101.0.1
The problem was that Visual Studio Code always tried to open a different, non-existing profile than the one that Firefox uses. My profiles.ini in ~/.mozilla/ was not correctly configured. There was an entry
[Profile1]
Name=default
IsRelative=1
Path=ezn6ueee.default
Default=1
set as default which was pointing to a folder ezn6ueee.default which did not exist in the directory. I went in Firefox to about:profiles, deleted this profile and set the one which I was usually using as default.

Open Link in VSCode Will Create a New Web Browser Under Same Icon as VSCode

I am using VScode version 1.45 with Firefox version 76.0.1 as a default browser (with Ubuntu 18.04.4 LTS). Whenever I tried to open a link in the VSCode, it will open the Firefox browser under same icon as VSCode, and I cannot merge these tabs into existing Firefox web browser.
Same thing also happens when I try to run a program using live server extension. But when I use npm to start the development server, it will create a new window or tab under the Firefox icon.
How could I fix this so whenever I open a browser from VSCode, it will create a new browser or tab under the appropriate (Firefox) icon? Thank you.
There is already an issue on VSCode's GitHub repository and as it is mentioned in the issue, origin of the issue is in snapd.
To fix the issue, as mentioned on aforementioned github issue:
Open some URL from the VSCode snap.
In the new window, navigate to about:profiles.
Ensure that the profile marked as "Default Profile" matches Firefox when opened normally. If not, use the "Set as default profile" button under the correct profile to change the default.
Try making firefox your default browser thorugh firefox and also do check that firefox is your default browser from vscode
I found this solution the best solution
You might have installed VSCode as a snap package, which causes
$XDG_CACHE_HOME to be set to ~/snap/code/common/.cache, which could
cause some cli tools to mistake that for your cache directory, and
install/launch binaries from there.
If you install VSCode from the .deb download, it should fix your issue
I removed vscode from Ubuntu software and download the .deb file from vscode site and install it ... problem solved

JetBrains IDE Support Extension - How to disable Chrome Warnings?

Hey there I've been using the JetBrains IDE support extension for a week now, and While it is great utility. I grow tired of clicking the "X' in the Chrome Yellow Warning ("JetBrains IDE Support" is debugging this tab.)
This may be a noobish question for experienced devs, but does anyone knows how to get rid of this Chrome pop-ups?
Thanks :)
Here is a snapshot:
You can disable this warning in chrome://flags using the Enable Silent Debugging flag:
It's mentioned in the comment #28.
Here is the direct link to the option:
chrome://flags/#silent-debugger-extension-api Just paste this to your Chrome addressbar.
For the ones who didn't understand ( like me :P )
You need to open this address chrome://flags in Google-Chrome and Enable Silent Debugging
While the relevant flag has been removed from chrome://flags, you can still use the command line switch:
chrome --silent-debugger-extension-api
which can be persisted in your flags config (eg. ~/.config/chrome-flags.conf on linux).
See Enable Silent Debugging is not available in Chrome browser
For the newer versions of the Chrome this flag is not available anymore.
So Here is the solution
Open settings in your IDE then head into Tools>Web Browsers
then click on Chrome and hit the pencil icon and
write this in "command line options" finaly hit ok
--silent-debugger-extension-api
now close your chrome if it is open then try to launch it again using debug or run...

Chrome JetBrains plugin wont be recognized by WebStorm 6.0

I've tried to solve this for so long now. I've installed the plugin from the Chrome store but the plugin button in the browser is grayed out and says "Not connected" on hover. When I debug in WS I get this popup:
I've seen the help section on JB site but the help there is utterly poor, and doesn't even mention the problem with the plugin and the IDE not recognizing eachother.
I've looked over other posts here with similar problems, though usually it revolved around LiveEditing, and I haven't found any help there for my problem.
Can someone please give me a sequence of steps to perform to check where the problem is with the syncing between the IDE and the Chrome plugin?
EDIT :
The JB console is empty when I open it:
Right click to JetBrains chrome extension
Select "Options"
Set Host: 127.0.0.1
Set Port: 63343
Click "Apply"
You're ready to go
please, check what is written in extension console (http://confluence.jetbrains.com/display/WI/LiveEdit, How do I know what's wrong?)
The console contents along with your idea.log (Help/Reveal log) would be helpful

How can I set Chrome as default external browser in Eclipse for Mac?

I think that question is self-explained :-)
When I browse to Application eclipse send me an error.
The simplest way to get Eclipse to recognize Chrome as the default system browser is :
Open Safari.
Go to menu Safari > Preferences > General.
Change 'Default web browser' to Safari.
Close the Preferences dialog.
Re-open the Preferences dialog.
Change 'Default web browser' to Chrome.
Close the Preferences dialog.
This solution is more general as it applies to any application which chooses the incorrect system browser. (thanks to Kelvin Lawrence at IBM)
I am using Eclipse 4.2.0 on an iMac with OSX Mountain Lion. This also works for Eclipse Kepler on Mountain Lion.
I posted the answer on another question like this on stackoverflow, so here it goes:
I found the solution in a blog's post that doesn't exist anymore, it involves configuring the Location to be '/usr/bin/open' and the parameter is '%URL%'.
You need to make sure that google chrome is your default browser and it will work properly. This is the only method that worked for me on OSX Lion.
I solved this by calling /usr/bin/open -a "/Applications/Google Chrome.app" <url>
rubdottocom almost got it. The problem is, that the path contains spaces. If you write a new shell script with the following content:
'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' $1
Eclipse can launch a new Chrome instance with it. Sadly, this way it is not possible to open a new tab in an already running instance, as the script exits with the following error message:
[21043:2307:292361872340725:ERROR:process_singleton_mac.cc(102)]
Unable to obtain profile lock.
Ooops! I find the answer here: Is there a way to add Google Chrome as an external web browser in Flash Builder Standalone for Mac?
The exact location is:
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome
It's annoying that you can't enter inside to an "Application folder" (AppName.app) through Finder :-S
Oh Wait! It's not working >_< Safari is opened
you can also try to fix that from eclipse at the menu bar: windows->preferences->general->web browser-> select the radio, Use external web browser and choose your default browser from there. that simple.
Here's a helpful visual showing the /usr/bin/open techinque:
In Finder, right click on Google Chrome.app, select Show Package Contents and browse down to Contents/Mac OS and drag Google Chrome to the Location in Eclipse's Edit External Web Browser dialog box. Enter -url %URL% in the field Parameters. This worked for me on Eclipse Indigo on MacOS 10.7, at least when Chrome was not started before...
My method to set Chrome as a default browser in eclipse is:
Go to Window >> Web browser and then select Chrome.