Table of Contents

Class PhantomJSWebElement

Namespace
OpenQA.Selenium.PhantomJS
Assembly
WebDriver.dll

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 PhantomJSDriver

Driver in use.

id string

ID of the element.

See Also