VB.NET Manipulating a "Birthday Drop Down"

Asked

Viewed 22 times

0

Hey there, guys! I’m having trouble setting a date on a Dropdown from Yahoo’s website...

The website link is: https://na.edit.yahoo.com/registration?.pd=&intl=br

Here’s what I’m trying to do, but it doesn’t work... I don’t know why...

WebBrowser1.Document.GetElementById("month").SetAttribute("value", "01")
WebBrowser1.Document.GetElementById("day").SetAttribute("value", "04")
WebBrowser1.Document.GetElementById("year").SetAttribute("value", "1990")

If anyone can give me a strength... I’ve tried many things, but this was as close to certain as I got kkkk

Anyway... thank you in advance!

1 answer

0

It would be because the element day has no property called "value"?

inserir a descrição da imagem aqui

This should be synchronized with an internal database there on their servers, I did not find the value property in any of the three elements.

  • What do you think my options are? I need to set this date field by the program...

  • I don’t know if it would be possible, I could study using Handlers for when the user selects the send a signal box and select a value. I SendKeys.Send() it doesn’t work, it has to be with the mouse, but I don’t know how to do it.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.