1

I have an application written using C#.
it controls the browsers
it allows which pages to view and not to view and also it hides the address bar of IE.
I want to convert it to Java.
But I really dont know what API to use etc... .
can someone guide me for that.

thank you

1
  • :), does it seems like a poetry... very funny Commented Feb 7, 2012 at 22:17

3 Answers 3

2

Try this: http://watij.com/ It is based on watir for ruby and watin for c#.

Sign up to request clarification or add additional context in comments.

2 Comments

I am not sure wheather thats the one I am looking for, I want to control from outside the browsers...
SO could I be able to stop someone accesing the www.someweb.com from a browser using watij java program...
1

You can try

OSS: Native Swing: http://djproject.sourceforge.net/ns/

Commercial: ICEBrowser http://www.icesoft.org/

1 Comment

thanks... you save my time, but I dont know how icebrowser works
0

I'm assuming that you were able to "control the browser" with C# using the Microsoft WebBrowser class, right? The WebBrowser uses ActiveX to control Internet Explorer ( http://msdn.microsoft.com/en-us/library/w290k23d.aspx)

If that is the case, for you to do the same, you need some way to connect Java and the ActiveX control. From what I could find on google, this might be your best bet:

Java COM ActiveX Bridge: http://j-integra.intrinsyc.com/

2 Comments

what about other browsers then such as firefox, chrome and safari
Look at the source code for the Selenium project. It is an automated regression testing tool, but it controls different browsers to do that: code.google.com/p/selenium/wiki/…? You can look at the code to see how Selenium controls the different browsers. Good luck.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.