Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98787

Missing Get Methods Within Selenium

$
0
0

I may be looking or doing the wrong thing but when I attempt to use the GetAttribute or GetText methods within Selenium they're not present?

so for example, there is a Forgotten Password link which is easy to find using the ID, however, there is text above it with instructions for the users to select the button if they have forgotten their password. I was hoping to use GetText, however thats not in my drop down options; I am only given: GetHashCode, GetType, GetScreenShot. Is it in a Nuget package i dont have or should it be as standard with Selenium?

public IWebElement ForgotPasswordText { get { return _driver.gettext(("Please Click Below To Reset Your Password")); } }

Assert.IsTrue(HomePage.ForgotPasswordText.Displayed);

I have used this before no bother but not in this project and cannot determine the differences to see where ive gone wrong.

The GetText is not present whereas it will usually auto populate with the option.


Viewing all articles
Browse latest Browse all 98787

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>