Browser issues for web applications - java

I have installed IE8 on my system. I usually test my application on this browser, but the problem arises when i got to know that the client is using IE5. Now how can i test my application on IE5?

I think you can use IEtester application for testing with IE5.5 and above. Just follow this image link to see the screen shot of this application.
http://www.my-debugbar.com/wiki/uploads/IETester/ietester-0.3.png

Related

Spring Boot - Automate Web Form Filling on Client side

I'm developing a web app (in Spring Boot) that would need to simplify the user interaction with other websites (third party, not developed by me). The idea is that my app pre-fill a form so the user won't have to do it.
As I began to read about this I stumble upon HtmlUnit and then Selenium... I tried Selenium and I was very happy while I was developing because I manage to open a browser window and fill it as I want it.
Then I thought it would be a good idea to test it from another computer in the same LAN. So open up a browser, navigate to my ip:port and when I hit the button that should perform the automation described, the browser open up on my "server" machine where the app is running and not on the client.
It was very frustrating. Keep reading and I found something about Selenium Hub and Grid. I've read several articles about it but it confuses me because they are all oriented at performing tests and I don't even understand where should I start or if it even possible.
What I want is to have my web-app installed in a Ubuntu Server and any client could access it and when hitting a button open a web page in a specific URL and pre-fill the form data.
Can you guide me? I'm in the correct path with Selenium Grid and Hub or there's any other technology I should be using?

how to embed android emulator in HTML page

i am working on a project that enables a user to have a demo of an application that he is about to download..
something similar to https://www.manymo.com ; but i am struck on how to embed the emulator in the webpage.
Any help regarding this is highly appreciated.
This is just a way on how to approach
Create android emulator and install VNC server
then use a web based vnc client and embeded it in your server .(most solutions need activex/java enabled browsers).
webased VNC clients to look out for
https://novnc.com/info.html
embedding instructions
https://github.com/novnc/noVNC/blob/master/docs/EMBEDDING.md
One approach can be
Create a minimal android emulator image and install the app
Start a server that
starts the android emulator
has Chrome remote desktop
the size of the desktop is exactly the size of the emulator
In the browser, offer a Chrome remote view that connects to the server

Problems with adding a GWT app in an iFrame

I have a GWT application, and I want to embed its URL in another web page through an iFrame:
<iframe src="http://127.0.0.1:8888/myProject.html?gwt.codesvr=127.0.0.1:9997"/>
But I'm getting errors.
If I browsed it in firefox:
Permission denied to access property 'href' (from firebug console)
If I browsed it in chrome:
A dialog pops up saying: Plugin failed to connect to Development Mode server at 127.0.0.1:9997
I researched a lot but all were in vain.
Using development mode of GWT.
Any help would be appreciated.
OK if someone ever get here cause
he has the same problem and want to know what happened
I will just summarize what we've got.
I'm not sure but I think that the problem was because internet browsers don't let sites to access url that are not in the main page domain (if it was able to do so very bad things would have happened) unless you let them do so.
It's called cross-domain access policy, so there are 2 options for handling it
The easy one- the gwt and the outer html must have the same host.
Let gwt plugin run from the outer html context, it's described here and here but for some reason it wasn't working. we still don't know why.
My workaround (Ubuntu, GWT 2.5.1) was to replace:
__gwt_HostedModePlugin -> parent.__gwt_HostedModePlugin
window.top -> window.parent
in hosted.html

J2ME applet - run Java in a mobile's web browser

I'm looking to embed a J2ME application as an applet in a web page to be accessed via a mobile phone web browser. Every major web browser supports the embedding of Java applets - does an analog exist for cell phone web browsers?
If not, does there exist a cross-platform way of launching a J2ME application from a mobile web browser?
J2ME doesn't support applets, and you install it onto the device in an application-specific way. You can't launch it from a web browser.
You're most likely out of luck. The best that you'll be able to do is provide a link to the .jar file.
You could, of course, run J2ME applets with normal browsers using http://www.microemu.org/ microemulator, but that won't work on the mobile device's browser.

Java applet and web browsers

i am doing a master project on how java applet works with web browsers.Can anyone give me details or any link that can be useful.How the web browser interacts with the java applet.
Download the source of Mozilla (Firefox, e.g.)
Read the code that integrates the JRE for applets.
Ask more questions when specific issues arise.
Maybe a simple answer will be enough and it won't require reverse-engineering Mozilla.
Until recently, applets did not interact much with the browser. The browser sent only 'start', 'stop' and 'resize' events to the applet and the applet could order the browser to open new web pages. With the Java 6 update 10, there is a possibility to call Applet functions from JavaScript and to call JavaScript from an Applet, as long as they are on the same page.
The browser creates a 'sandbox' to run the applet. The sandbox limits the access rights of the applet (e.g. applet can connect to TCP ports only on the web server, cannot access files directly on the client file system, etc.). Besides these limitations, an applet is like an autonomous application running on the client box.
You can find info on applets at 'http://java.sun.com/applets/' and 'http://java.sun.com/docs/books/tutorial/deployment/applet/index.html'

Categories