PDA

View Full Version : Not able to click a button on a webpage



musicgold
01-13-2010, 04:04 PM
Hi,

I am trying to access a button on the Yahoo website using VBA. This with respect to Yahoo!Mail Classic (you can easily switch between yahoo mail classic and New Yahoo mail).

On the welcome page (after logging in), there is the 'New' button to create new email messages. On the same button there is a down arrow.

While working manually, if you click on the text portion of the button, it straight away creates a new email message. If you click on the down arrow on the button it shows a drop down list with three items to select from 1. create new mail 2. chat 3. mobile text.

Using VBA I am trying to click the button to create a new email message.
However, the following code just clicks on the down arrow, nothing else happens. I am not able to generate a new email message.



...
Set HTMLDoc = .document

HTMLDoc.getElementById("global_compose_top").Click


What do I need to do?

Thanks,

MG.