|
|||||||
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Lively Member
Join Date: Apr 05
Posts: 69
![]() |
How to click select component in a Web page using HTML DOM
Hi all,
Is there any idea to click the select component of an HTML page programitically Here is the HTMT code HTML Code:
<td width="83%" align=left nowrap><font face="Times New Roman, Times, serif"> <select name=cboPrimary size=1 onChange="RemoveOptionAndSubmit(cboSecondary)" style="width=350px;"> <option value="003" >ALLIED BANKING CORPORATION - $ BTB (USD )</option> <option value="004" >ALLIED BANKING CORPORATION - PESO BTB (PHP )</option> <option value="008" >ALLIED BANKING CORPORATION - PESO DTOD (PHP )</option> <option value="052" >BANK OF THE PHILIPPINE ISLAND (USD )</option> <option value="049" >BANK OF THE PHILLIPINE ISLAND (PHP )</option> <option value="179" >EQUITABLE BANK / PCI (PHP )</option> <option value="175" >METRO BANK (PHP )</option> <option value="176" >METRO BANK - $ (USD )</option> <option value="177" >PHILIPPINE NATIONAL BANK (PHP )</option> <option value="178" >PHILIPPINE NATIONAL BANK - $ (USD )</option> </select> </font> </td> Now I want to do this process programtically. Here I used this code: VB Code:
This code select the expected bank BANK OF THE PHILIPPINE ISLAND (USD ) But the page not lists the branch of this bank. It still remain wihout any action. I also tried with the following code VB Code:
But no effect Is there any suggession to solve this problem With regards, Nasreen Last edited by nasreen; Feb 12th, 2007 at 12:54 PM. Reason: Spell corret |
|
|
|
|
|
#2 |
|
eltiT resU motsuC
Join Date: Oct 00
Location: Rochester, NY
Posts: 9,228
![]() ![]() ![]() ![]() ![]() ![]() |
Re: How to click select component in a Web page using HTML DOM
Use the HTMLObject Library
try this.. let me know VB Code:
__________________
JPnyc rocks!! (Just ask him!) If u have your answer please go to the thread tools and click "Mark Thread Resolved" |
|
|
|
|
|
#3 |
|
Lively Member
Join Date: Apr 05
Posts: 69
![]() |
Re: How to click select component in a Web page using HTML DOM
Thanks
The code is working same as the code I quoted before. Nothing more. However I have got the idea to get the expected result by adding the following code also VB Code:
This will trigger the click event for the select component. With regards, Nasreen |
|
|
|
|
|
#4 |
|
Super Moderator
Join Date: Aug 01
Location: Sterling Heights, Michigan
Posts: 52,309
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Re: How to click select component in a Web page using HTML DOM
So, is the problem resolved?
__________________
Please use [Code]your code goes in here[/Code] tags when posting code. When you have received an answer to your question, please mark it as resolved using the Thread Tools menu. Before posting your question, did you look here? Got a question on Linux? Visit our Linux sister site. I dont answer coding questions via PM or EMail. Please post a thread in the appropriate forum. ![]() Creating A Wizard In VB.NET Modifications Required For VB6 Apps To Work On Vista Paging A Recordset What is wrong with using On Error Resume Next IT professionals freelancer site. Register today to find coders, or offer your services for available freelance projects! Microsoft MVP 2005/2006/2007/2008/2009 |
|
|
|
|
|
#5 |
|
Lively Member
Join Date: Apr 05
Posts: 69
![]() |
Re: How to click select component in a Web page using HTML DOM
Hi All,
How we can programitically click a button or link of a web page viewed in FRAMED web page. I use for a web page without frame the following code : VB Code:
This code work fine and without error. But I want to do the same function in a web page with three frames, to control the mouse click programitically. I used the the following code VB Code:
But when execute the line (Set objFrame = browser.Document.frames(0).Document.Frame) I got a runtime error saying Exception occurred. I also changed that line as : VB Code:
But I get another error saying Object or class does not support the set of events Any idea to solve this problem or any idea to control the mouse click in a framed web page With regards, Nasreen Last edited by nasreen; Mar 4th, 2007 at 08:43 AM. |
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|