Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to click radio button on webpage with this name and value

Posted on 2006-11-16
3
Medium Priority
?
189 Views
Last Modified: 2010-04-30
<INPUT type=radio name=".dd_r" value=".jj_ym">


I've tried ie.document.body.all(".dd_r").checked = "1" and a bunch of variations of that but no go.
0
Comment
Question by:JohnDoeSr
  • 2
3 Comments
 
LVL 19

Expert Comment

by:BrianGEFF719
ID: 17962245
Are you using the IE Control?
0
 
LVL 19

Accepted Solution

by:
BrianGEFF719 earned 1000 total points
ID: 17962250
For IE Control you would do something like:

   Set objframes = WebBrowser1.Document.frames
   Set objdoc = objframes.Document
   Set htmlfield = objdoc.getelementsbyname(".dd_r")
   htmlfield(0).checked = "1"

Tell me if that works for you.


Brian
0
 

Author Comment

by:JohnDoeSr
ID: 17963479
Yep that did it. Thanks!
0

Featured Post

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question