Open Browser command showing unknown even if selenium library is added
Related
[The Image of the Eclipse] 1
I installed Selenium using Homebrew. But I am unable to add the jar files to Eclipse. They are not clickable. I tried extracting the selenium file on the terminal but it says I am unable to extract.
I have downloaded Eclipse IDE for JavaScript Web Developers Packages. I tried to create a JavaScript project and a .html file inside it. When I tried to debug it by right click it and selected "Chrome and Chromium Debugger" to debug JavaScript inside the .html file. This error prompt out with the message:
"Unable to run Chrome / Chromium. Verify you have a configured Chrome / Chromium runtime environment and try again."
May you know how to solve it? I have spent a week to struggle with it.
I found the cause. Please refer to this link youtube.com/watch?v=l1FmC7aQzbk You should go to Eclipse Preferences → JavaScript → Runtimes and define Chrome / Chromium there.
I have followed the steps given on this page - getting-started-with-the-superdevmode
but I am still getting message - Can't find any GWT Modules on this page. I did some more googling but could not find any solution until now.
I am using GWT 2.6.1 and eclipse kepler 64 bit on ubuntu.
Here are the steps I did.
Created a new Web app project for GAE, using GWT 2.6.1 and GAE sdk 1.9.6.
Go to Run configurations. Create a new configuration for a "Java Application". Change the main class, Argument and add jar file as shown in the screenshot.
Check the apps .gwt.xml file. It already has <add-linker name="xsiframe"/>. I have tried adding devModeRedirectEnabled property also. It did not help.
GWT compile the project.
Run the application as Web application. Default jetty config serves the application at
http://localhost:8888/SuperDev.html.
I opened up this page in firefox. I can see the page content.
Launch the Java application configuration. It does compile again and gives a success message and tells me to launch
http://localhost:9876/
I opened it in firefox and it shows -
Dragged Dev Mode On to firefox's bookmark. And clicked.
I get the message - Can't find any GWT Modules on this page.
Following are the configurations for my superdev mode java app. Did I miss anything?
You need to click the bookmarklet when viewing your compiled web app.
The last steps should therefore be:
Dragged Dev Mode On to firefox's bookmark.
Switched back to my application at http://localhost:8888/SuperDev.html and clicked the bookmark
Once you have the bookmarklets, you actually don't really need to open http://localhost:9876 anymore (you'll find compile logs there, and can browser your code, including the code generated by GWT generators; so it can still be useful).
I tried to do it with Eclipse Oxygen, Java7 (for run application, for oxygen you have to have java 8), and GWT Eclipse Plugin 3.0.0.
In such an environment all you need to do is:
On project right click > Debug As > GWT Legacy Development Mode with Jetty.
PS:
you have to have address like this
http://127.0.0.1:8888/StockWatcher.html?gwt.codesvr=127.0.0.1:9997
NOT like :http://127.0.0.1:8888/StockWatcher.html
After openning addres you must additionally install the plugin in the browser - you will be asked for it
It work on IE11
I just installed the Aptana Studio 3 plugin on my installation of Eclipse Juno, and attempted to use a portable install of Firefox to debug with, so that my general browsing install wouldn't get mucked up with a billion debugging features I don't need.
I set Eclipse's Window->Preferences->General->Web Browser to use this new portable install, but... it's still trying to launch my other install of Firefox. ("Please close down to complete installation" or whatever. I know the portable one isn't running.)
I just cannot get it to launch to the right browser. Firefox Portable is set up to allow multiple instances to be open, so I can get both my permanent install and my portable install to work at the same time, but Eclipse is trying to open the wrong installation.
I've tried restarting eclipse, closing Firefox , both internal/external web browser options on the web browser page, and even rebooting the whole computer. There are no other references to Firefox in the Eclipse settings that I can find.
... Help?
Apparently that particular setting only affects browsing in the integrated browser, not running and debugging web applications.
The setting that needs to be modified for running/debugging is in the run/debug configurations. Why that doesn't by default automatically use the default browser set in the preferences page is beyond me.
In order to get Eclipse/Aptana to open the correct browser when debugging and running web applications, do this:
In the Project Manager, r-click on the project and go to Run As -> Run Configurations... and under 'Web Browser' in the left pane, either edit the default one or add a new run configuration. I just replaced the standard 'Firefox - Internal Server' entry.
In the Web Browser field, either type in the full path to the browser executable (in my case FirefoxPortable.exe), or click 'Browse' and browse to the executable.
That should do it. and now it's doing what I would expect it to.
I'm trying to run the Playn html web application samples in Eclipse. I've followed the steps here:
http://code.google.com/p/playn/wiki/GettingStarted#Running_via_Eclipse
I'm running Eclipse 3.7 on Ubuntu 11.10. I installed the plugins and I was able to run the Java version successfully.
However, when I run GWT Compile by right-clicking the html listing in the Package Explorer, I get the following error:
An internal error occurred during: "playn-showcase-html - GWT Compile".
java.lang.NullPointerException
This occurs with the other samples too. When I get to the GWT Compile dialogue box, a message at top says "The project has errors."
When I start Eclipse, I get the following message in the console:
GWT SDK not installed.
However, the SDK is installed. I double-checked by redoing the steps here:
http://code.google.com/intl/da-DK/eclipse/docs/install-eclipse-3.7.html
And I get the following message:
"Google Web Toolkit SDK 2.4.0" will be ignored because it is already installed.
By reinstalling the GWT plugin and then editing the configuration settings in Eclipse, I was able to solve this problem. The general problem seems to be one of wiring the correct paths together. I'm not sure what exactly resolved it as I did a bit of fiddling but this is how I think I did it:
Clicked Preferences > Google > Web Toolkit
Added path: ..com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/ and hit OK
Right-clicked playn-showcase-html in Package Explorer
Selected Build Path > Configure Build Path...
Selected Google > Web Tool Kit from list in left panel
In GWT SDK box, clicked Use specific SDK, selected only option there, and hit OK
I was able to compile and generate a web server link.
I then loaded the link in Chrome. If you get a message saying the module needs to be recompiled, go back to Eclipse and recompile the HTML dir (right-click on the HTML directory > Google > GWT compile.) Then reload (F5) page in Chrome.