Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27508

VS 2010 Set Attribute using Tab Index?

$
0
0
Hello Guys,

I'm writing some automation and have run into the issue where I'm unable to SetAttribute due to the Element ID being encryped on each page reload. However, I do have access to the Tab Index. Is there a way that I can still send text using the tab index without having to use sendkeys?

I'm a first year compsci student and this is something that will really help me out. Thanks so much..

Here is the current code (works when the ID is visible). I'd like to modify this to send the same value by getting the element using the tabindex:
Code:

WebBrowser1.Document.GetElementById("inputEmailHandle").SetAttribute("value", TextBox1.Text)

Viewing all articles
Browse latest Browse all 27508

Trending Articles