blob: dcdcb0200c2c8a2d8bdc63ab639cfe9da81fc5cd [file] [log] [blame] [edit]
using NUnit.Framework;
namespace OpenQA.Selenium
{
[TestFixture]
public class AtomsInjectionTest : DriverTestFixture
{
[Test]
public void InjectingAtomShouldNotTrampleOnUnderscoreGlobal()
{
driver.Url = underscorePage;
driver.FindElement(By.TagName("body"));
Assert.AreEqual("123", ((IJavaScriptExecutor)driver).ExecuteScript("return _.join('');"));
}
}
}