blob: 7b89ec9035f7801c0ba36faa8fc0b3f825029ce0 [file] [log] [blame] [edit]
using NUnit.Framework;
namespace Selenium.Tests
{
[TestFixture]
public class TestGettingValueOfCheckbox : SeleniumTestCaseBase
{
[Test]
public void ShouldBeAbleToHandleFunkyEventHandling()
{
selenium.Open("../tests/html/test_submit.html");
string elementLocator = "name=okayToSubmit";
Assert.AreEqual("off", selenium.GetValue(elementLocator));
selenium.Click(elementLocator);
Assert.AreEqual("on", selenium.GetValue(elementLocator));
selenium.Click(elementLocator);
Assert.AreEqual("off", selenium.GetValue(elementLocator));
}
}
}