Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #11703
| From | "Dave \"Crash\" Dummy" <invalid@invalid.invalid> |
|---|---|
| Newsgroups | microsoft.public.scripting.vbscript |
| Subject | Re: fill in ie form with java |
| Date | 2017-07-09 04:57 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <ojsqua$aoj$1@dont-email.me> (permalink) |
| References | <f4606ee4-abaa-49b4-9c5e-922fe8240ced@googlegroups.com> |
smbs wrote:
> I am trying to select items from a dropdown menu on a javascript
> webpage. I want to fill in the menu value via a userform using VB.
> Relevent Web code source is below
>
> ***************************************************************************************
> <div class="sa-form-control sa-form-field" style="padding-bottom:
> 20px;"> <select name="country" class="ui-textfield
> ui-textfield-system sa-country sa-error-field"><option
> selected="selected" value="">--Please Select--</option> <option
> value="RU">Russian Federation</option> <option value="US">United
> States</option> <option value="ES">Spain</option> <option
> value="FR">France</option> option value="OTHER">Other
> Country</option> <option value="">-------- Country & Territories
> (A-Z) --------</option></select> <div class="sa-success-icon"
> style="display: none;"></div><p class="sa-error-tips" style="display:
> block;">Please select a Country/Region</p></div>
> **************************************************************************************************
> I have tried the following
> oIE.document.getElementsByClassName("ui-textfield ")(0).Value = "RU"
> not working oIE.document.getElementsByName("country")(0).Value = "RU"
> Also not working Any help would be great Thanx
Try it without the "oIE" object:
document.getElementsByName("country")(0).Value = "RU"
--
Crash
"Politics have no relation to morals."
~ Niccolo Machiavelli ~
Back to microsoft.public.scripting.vbscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
fill in ie form with java smbs <stevenbe@gmail.com> - 2017-07-09 01:31 -0700
Re: fill in ie form with java "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2017-07-09 04:57 -0400
Re: fill in ie form with java Ulrich Möller <knobbi38@arcor.de> - 2017-07-09 15:52 +0200
Re: fill in ie form with java smbs <stevenbe@gmail.com> - 2017-07-09 08:02 -0700
Re: fill in ie form with java Ulrich Möller <knobbi38@arcor.de> - 2017-07-09 18:49 +0200
Re: fill in ie form with java JJ <jj4public@vfemail.net> - 2017-07-09 23:34 +0700
Re: fill in ie form with java "Mayayana" <mayayana@invalid.nospam> - 2017-07-09 13:46 -0400
csiph-web