I am trying to automate login on DropBox https://www.dropbox.com/chooser ,but still facing issues with element not visible, which is weird, even though if the all page is loaded successfully.
Here is the code for filling the password:
protected virtual void FillPassword(string password)
{
//Password.Clear();
Password.SendKeys(password);
}
The last line fails on the Target Invocation Exception. I also wanted to use Password.Clear();, but this was also failing.
Here is the locator for Password:
[CacheLookup, FindsBy(How = How.Name, Using = "login_password")]
protected override IWebElement Password { get; set; }
What is going on? I tried to use wait methods for the page,but it has not helped. Does anyone know why it crashes?