Watin; Get element by id not working
Posted
by
Afnan
on Stack Overflow
See other posts from Stack Overflow
or by Afnan
Published on 2011-01-09T17:32:49Z
Indexed on
2011/01/09
17:53 UTC
Read the original article
Hit count: 369
I am trying to place data into text area that is inside hiden input but watin dose not find it.why? but when i search for inputs my program shows this.
var ie = new WatiN.Core.IE("http://facebook.com", true);
ie.ClearCookies(); ie.TextField(WatiN.Core.Find.ById("email")).TypeText(textBoxUsername.Text); ie.TextField(WatiN.Core.Find.ById("pass")).TypeText(textBoxPassword.Text);
ie.Button(WatiN.Core.Find.ByValue("Login")).Click();
ie.Link(WatiN.Core.Find.ByText("Status")).Click();
ie.TextField(WatiN.Core.Find.ById("u362110_11")).TypeText(textBoxPassword.Text);
Exception
Could not find INPUT (hidden) or INPUT (password) or INPUT (text) or INPUT (textarea) or TEXTAREA element tag matching criteria: Attribute 'id' equals 'u493403_13' at http://www.facebook.com/home.php
© Stack Overflow or respective owner