How to open a web page of given url and open one of its link .

Hi All,
I need to write a java program which can open a given URL, fill in the form with given input values and submit it, and then can automatically click on a link (or say open one of the links) on the resulting page.
It is basically what a testing script does.I want to write it in java.
I am not able to find keywords i can use to google about this topic.
Any help would be appreciated.
Thanks,
Elan

That's what you do in the browser, but that isn't what your program would do. Follow the tutorial:
[http://java.sun.com/docs/books/tutorial/networking/urls/index.html]
Edit: Although now that I notice you used the word "testing script", you might just want to use HtmlUnit instead of programming that stuff yourself.

Similar Messages

  • If I click a link in my email service(Thunderbird) which opens a web page. When I later open Firefox, the previous page appears instead of my home page. How do I stop this?

    Firefox opens for 2 seconds then closes until it opens again ,with the link page, instead of my Home Page

    I use Ubuntu 10.04 and I also get this problem when attempting to open a link through TBird 3.1.10. Firefox 4.0.1 '''opens to my homepage only'''. I have to physically put the link address in the address bar to go to the link.

  • Every time i try to open a web page I have other sites opening at the same time

    I keep having lots of web pages opening that I did not open and advertising flashing across my screen when i am trying to look at sites, does my computer have a virus or is this a setting and how do you clean a mac ?

    From what you describe you may have inadvertently installed adware. Eradicating it is simple. For an explanation or how this may have occurred, how to avoid it in the future, and for one possible solution read How to install adware.

  • New Mac, I open some web pages hang for 30sec before opening?

    Safari opens web pages but some sites for example Vodafone start to open but hang for around 20 seconds before fully opening the page. This can't be normal?

    There are no maps or plugin content on either of those pages, so I don't feel like I'm getting the whole story from you. However, please try the following.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of this test is to determine whether the problem is localized to your user account. Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault in OS X 10.7 or later, then you can’t enable the Guest account. The "Guest User" login created by "Find My Mac" is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.

  • Can open some web pages but not all including bookmarked ones

    safari acting strange - not allowing me to open all websites i usually vists just a random few. connection ok as i can send and get emails as usual... explorer behaving in the same way
    advise - as always - appreciated
    k x

    Greetings Kate,
    Have you tried emptying the cache? Or second, resetting Safari, which will take out all your cookies and other caches. If this doesnt work, perhaps use OnyX (free from the Apple download site under your Apple menu) to repair permissions, and deep clean caches (users and kernel) and repair permissions.
    Let us know what happens..
    iMac G5 17" Display   Mac OS X (10.4.3)   1.5 MB Memory

  • Web pages keep moving back and forth

    Having just bought a IMAC can anybody tell me how to stop my web pages from moving back and forth before it decides to settle.

    Hi...
    Sounds like you are moving your finger sideways over the mouse.... ?
    That function enables you to move back and forward in your browsing history.
    /Dennis

  • How do i open a web page with VeriSign Class 3 Extended Validation SSL SGC SS CA certfificate i can't open web pages with this, how do i open a web page with VeriSign Class 3 Extended Validation SSL SGC CA certfificate i can't open web pages with this

    how do i open a web page with VeriSign Class 3 Extended Validation SSL SGC SS CA ?

    Hi
    I am not suprised no one answered your questions, there are simply to many of them. Can I suggest you read the faq on 'how to get help quickly at - http://forums.adobe.com/thread/470404.
    Especially the section Don't which says -
    DON'T
    Don't post a series of questions in  a single post. Splitting them into separate threads increases your  chances of a quick answer.
    PZ
    www.pziecina.com

  • How to open a web page in JFrame.

    Please let me know how to open a web page in the Java Frame.

    HTML code can be viewed in any Swing component you want.

  • How do I open a web page in Adobe Reader from ipad2?  I don't see any buttons to click. I'm new user

    How do I open  a web page in Adobe Reader? I got the app for ipad2, but when a page says I need a certain version of AR, I don't know what to do. I'm a new user and don't know if I have to "open" AR and it automatically reads whatever doc I have up on the web, or is it always running and any web page I'm on should show a button to click in order to open the page in AR?

    If a website says that you need a certain version of Adobe Reader, it is probably attempting to detect whether or not you have the Adobe Reader browser plugin installed. This is something that only works on desktop systems where browser plugins exist. Since browser plugins don't exist on mobile, website developers should take care to present different messages and provide different options for downloading PDF's when visited by mobile browsers. I recommend contacting the website owner and requesting that they implement access for mobile devices.

  • Hi, I have this green mark (with pointing arrow looks like a link) on some words show on my window screen when I open a web page, I wonder if it is a virus link or such. Need help how to get rid of it. Thanks

    Hi, I have this green mark (with pointing arrow looks like a link) on some words show on my window screen when I open a web page, I wonder if it is a virus link or such. Need help how to get rid of it. Here's the example:
    WING
    GAMES
    MAJORITY
    Thanks

    If the third link you posted (the link containing the word "majority") does not look like the following then you inadvertently installed adware.
    That particular page should resemble the following:
    The word "majority" in the third paragraph should not be a link and should not have the green icon associated with it.
    To learn how this may have occurred, and how to prevent it from occurring in the future, read How to install adware
    Most so-called "news" websites are nothing more than entertainment outlets that cater to prurient interests, and contain advertisements that leave the user about three clicks away from installing junk. If you decide to frequent those websites, Safari's "Reader" feature helps minimize that exposure.
    Try it:

  • Safari Wont Open Any Web Page

    I just updated my Safari to 3.1.2 and now it wont open any web page. I know my system is fine as I also have Firefox and it works great. I have tried reseting Safari, emptying the cache deleting the plist, but nothing works. I have even tried deleting Safari and downloading the latest version from the apple website and re-installing it. No dice either. Safari seems to be working fine but it wont opent any website. Everything just time's out. Any suggestions would be appreciated.

    Try this:
    Empty Safari's cache (from the Safari menu), then close Safari.
    Go to Home/Library/Safari and delete the following files:
    form values
    download.plist
    Then go to Home/Library/Preferences and delete
    com.apple.Safari.plist
    Repair permissions (in Disk Utility).
    Start up Safari again, and things should have improved.
    If not, MacFixit have published a very detailed (very!) article on speeding up a slow Safari, here:
    http://www.macfixit.com/article.php?story=20070416000657464
    Many, including me, have also followed the advice given by others here to add DNS codes to their Network Settings, with good results in terms of speed-up:
    Open System Preferences/Network. Double click on your connection type, or select it in the drop-down menu. Click on TCP/IP and in the box marked 'DNS Servers' enter the following two numbers:
    208.67.222.220
    208.67.220.222
    Click on Apply Now and close the window.
    Restart Safari, and repair permissions.

  • Can't open some web pages... DOES ANYONE HAVE A FIX THAT WORKS?

    I'm unable to open certain web pages. The pages will start to open and than the application will just stall. This seems to have coincided with downloading a security update a while back. I've tried downloading firefox and it too will not open these specific pages. I've searched the forum and as of now I can't find a solution. From what I've hear, Apple isn't even acknowledging that there is an issue. I've repaired permissions, deleted Safari plist files, all with no improvement. I know for a fact that it is not my internet connection, as my powerbook can navigate to these sites without any issues, however my powermac seems to have "forgotten" how to open some web pages.
    Any fixes would be enourmously appreciated!

    Thanks for the reply.
    I don't think that reporting the pages to apple would do much good as it's not the pages themselves that are the issue, it's something on my system that prevents them from opening up properly. My laptop will open the pages without any issue, however my desktop isn't able to for god knows what reason. I know others on this board have had similar problems.

  • When I upgrade to FF 26 on my PC laptop, I am no longer able to open any web pages on any browser. Help

    Whenever I upgrade to FF 26 on my pc laptop I am no longer able to open any web pages on my laptop in any browser. If I reset my system to a previous date I am good to go. Any ideas on what may be going on or how to troubleshoot it? I am not a technical person - btw
    My connection to the internet still shows as connected, but I cannot open any web pages.
    thanks,
    Bill

    Is this happening on a computer running Windows (you posted with as Mac)?
    If this is an issue on a Windows computer:
    It is possible that security software (firewall, anti-virus) blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *https://support.mozilla.org/kb/fix-problems-connecting-websites-after-updating

  • I used to have a web page in mobile me and now is closed.  How can I get my webpage data back?

    I used to have a web page in mobile me and now is closed.  How can I get my webpage data back?

    Your web pages on MobileMe have been deleted. If you were using iWeb you wouldn't have been able to open them anyway.
    As long as you have the iWeb 'Domain' file in your user Library, or whatever the program you are using stores the information in, on your Mac you can publish to another hosting service - there are plenty to choose from. More information here:
    http://rfwilmut.net/missing2

  • Buttons opening a web page within a web page.

    I want to click on a button that will open a web page inside the same web page. How how I do this?
    Thanks, L

    The frame option is to use an inline frame, or <iframe> into which you place a source url, which can be a page on your site or a pdf or a page on the internet. This call is placed inline, as its name implies. You might want to experiment with its placement in your page, floating, various widths and heights, until you get it the way you want it.
    <iframe src="http://[path to your page here]" name="appropriateName">Content 1</iframe>
    Be sure to style your iframe tag to have an adequate width and depth; those will not style automatically.
    If you want it accessible only by mouse-click, consider putting it into a Spry Collapsing Panel that defaults to "closed". Be sure to put the <iframe> tag and its closing tag </iframe>, in this case, in the content area on the Collapsing Panel.
    Beth

Maybe you are looking for

  • I Mac 10.6.8 Start updating and update wont quit. Runs all night.

    I am using an iMac, version 10.6.8. I currently have Mozilla Firefox version 5. I have tried, per your notice, to update several times. Each time, the updating begins and doesn't stop. The last time, I started the process and let it run over night. T

  • How do I change the home folder name.

    I migrated my info from a Mac Pro to an iMac and now my home folder says my name and then Mac Pro. How do I change this? I tried right clicking but that does nothing, I went into the accounts tab in system preferences and that does nothing. Need help

  • Ipod windows xp itunes

    I have a PC running Windows XP sp2. iTunes was already installed but it couldn't identify my iPod, iPod touch, and iphone4. iTunes couldn't be updated due to it required windows XP with SP 3. Windows couldn't update due to Microsoft no longer support

  • Trouble with file paths

    Hi, I'm trying to read a XML file using: XMLDocBuilder.java public Document getXML(String filepath) throws SAXException, IOException, ParserConfigurationException           File myFile = new File(filepath);                     DocumentBuilderFactory

  • A Question about Date Format

    Hi All!, I need to store date in the form " MM/dd/yyyy HH:mm:ss a " . I tried DateFormat, SimpleDateFormat, and Calendar classes but could not achieve that format. Can any one suggest how to store date in the above said format? Thanking You in advanc