Kendo bind local data
Binding data using local data or through http get
using System; using System.Drawing; using Microsoft.VisualStudio.TestTools.UnitTesting; using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using OpenQA.Selenium.Firefox; using OpenQA.Selenium.Support.UI; namespace SeleniumTestSamples { [TestClass] public class GoogleSearchTest { private IWebDriver _driver; [TestMethod] public void GoogleNameSearchChrome() { try { _driver = new ChromeDriver(); _driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromMinutes(5)); _driver.Manage().Window.Position = new Point(0, 0); _driver.Manage().Window.Size = new Size(1024, 768); _driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(5)); //Navigate to Google.com _driver.Navigate().GoToUrl("http://google.com"); //Find the Id for entering value IWebElement searchElement = _driver.FindElement(By.Id("lst-ib")); //Pass values searchElement.SendKeys("Prathap Kudupu"); //Click enter key searchElement.SendKeys(Keys.Enter); } catch { if (_driver != null) { _driver.Quit(); } throw; } } [TestMethod] public void GoogleNameSearchFireFox() { IWebDriver driver = new FirefoxDriver(); //Keep finding untill time out has been reached driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(5)); //Navigate to Google.com driver.Navigate().GoToUrl("http://google.com"); //Find the Id for entering value IWebElement searchElement= driver.FindElement(By.Id("lst-ib")); //Pass values searchElement.SendKeys("Prathap Kudupu"); //Click enter key searchElement.SendKeys(Keys.Enter); } } }
![]() |
fa and the icon's name. Font Awesome is designed to be used with inline elements <i class="fa fa-check-circle"></i> fa-camera-retro
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<h2>JSON Object Creation in JavaScript</h2>
<p id="demo"></p>
<script>
var text = '{"FirstName":"Prathap","LastName":"Kudupu"}';
var obj = JSON.parse(text);
document.getElementById("demo").innerHTML =
obj.FirstName + "<br>" +
obj.LastName + "<br>";
</script>
</body>
</html>
<head> section of your site's HTML.