Class PhantomJSWebElement
PhantomJSWebElement allows you to have access to specific items that are found on the page.
public class PhantomJSWebElement : RemoteWebElement, IWebElement, ISearchContext, IFindsByLinkText, IFindsById, IFindsByName, IFindsByTagName, IFindsByClassName, IFindsByXPath, IFindsByPartialLinkText, IFindsByCssSelector, IWrapsDriver, ILocatable, ITakesScreenshot
- Inheritance
-
PhantomJSWebElement
- Implements
- Inherited Members
Examples
[Test]
public void TestGoogle()
{
driver = new PhantomJSDriver();
PhantomJSWebElement elem = driver.FindElement(By.Name("q"));
elem.SendKeys("Cheese please!");
}
Constructors
PhantomJSWebElement(PhantomJSDriver, string)
Initializes a new instance of the PhantomJSWebElement class.
public PhantomJSWebElement(PhantomJSDriver parent, string id)
Parameters
parent
PhantomJSDriverDriver in use.
id
stringID of the element.