I have a requirement that my java application should open a web browser when user click on a button and thereafter the web browser open up a page in which user have two options "Agree" and "Not Agree", depending on the button he clicks on, some code comes in the browser in the address bar. I want to fetch that uri back into my java application.
warlord902 9 Junior Poster
Recommended Answers
Jump to PostYou can try to use Selenium
Jump to PostFast answer, no. Only through external libraries/projects like Selenium
Jump to PostI haven't tried this myself but...
Java 6 has the new Desktop API that allows you to open the user's default web browser with a URI of your choice
http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/desktop_api/
presumably if this is a page that you have written (maybe embedding a …
Jump to PostIt sounds like you're trying to re-direct another site's content through your app after verification and I would question the legality/ethics of that?
Perhaps you can clarify a bit, because this may be walking the edge of our Keep It Legal rules.
All 14 Replies
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
warlord902 9 Junior Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
warlord902 9 Junior Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
warlord902 9 Junior Poster
NormR1 563 Posting Sage Team Colleague
warlord902 9 Junior Poster
NormR1 563 Posting Sage Team Colleague
warlord902 9 Junior Poster
NormR1 563 Posting Sage Team Colleague
warlord902 9 Junior Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
warlord902 9 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.