Skip to content

Instantly share code, notes, and snippets.

@BrockFredin
Created February 18, 2013 17:28
Show Gist options
  • Save BrockFredin/4979029 to your computer and use it in GitHub Desktop.
Save BrockFredin/4979029 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenQA.Selenium;
using OpenQA;
using Selenium.Controllers;
namespace Selenium.Controllers
{
public class Div : BaseObject
{
private String innerText;
public Div(IWebElement objectName)
: base(objectName)
{
this.objectName = objectName;
}
public String InnerText(string id)
{
String innerText = driver.FindElement(By.XPath("//div[@id='" + id + "']")).Text;
return innerText;
}
public void ClickFourth()
{
//this.objectName.g
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment