Current time: 12-13-2017, 05:21 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SelectValue does not Work for me
11-13-2014, 02:15 AM (This post was last modified: 11-13-2014 02:16 AM by lukics.)
Post: #1
SelectValue does not Work for me
Hi I am trying to utilize following script:

navigate https://dialog.roche.com
selectValue id=CountryUrlMapping China
submitForm name=landingPageForm

somehow it does not work for me

I am newbi to this scripting topic so maybe I made fundamental mistake.

thanks for feedback
Find all posts by this user
Quote this message in a reply
11-13-2014, 04:07 AM
Post: #2
RE: SelectValue does not Work for me
This works - I tend to fire JS clicks at submit buttons instead of relying on submitForm

logData 0
navigate https://dialog.roche.com
exec document.getElementById("CountryUrlMapping").value ="/web/cn/home"
logData 1
execAndWait document.getElementsByTagName('input')[0].click();

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
11-13-2014, 05:05 AM
Post: #3
RE: SelectValue does not Work for me
Great, this works.

I know this might be already to much to ask:

How can I enter the user/pwd on this resulting page.
The form seems to be loaded inside an iFrame. I got the field names but am not able to populate them.

Thanks in advance
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)