Professional Documents
Culture Documents
Software Quality Assurance
Software Quality Assurance
CheckBox
[TestMethod]
public void Checkbox()
{
}
Text Box
public void Textbox()
{
driver.FindElement(By.Id("userName")).SendKeys("admin");
driver.FindElement(By.Id("userEmail")).SendKeys("xyz@gmail.com");
driver.FindElement(By.Id("currentAddress")).SendKeys("Johar");
driver.FindElement(By.Id("permanentAddress")).SendKeys("Johar karachi ");
driver.FindElement(By.Id("submit")).Click();
Thread.Sleep(3000);}
Radio Button
[TestMethod]
public void SelectMenu()
{
driver.FindElement(By.Id("react-select-7-option-0")).Click(); driverc.SendKeys(Keys.Enter);
IWebElement dropdowncolor =
driver.FindElement(By.XPath("//div[@id='selectMenuContainer']//div[@class='row']//
div[contains(@class,'css-1hwfws3')]"));
dropdowncolor.Click();
driver.FindElement(By.XPath("//*[@id=\"react-select-7-option-2\"]")).Click();
driver.FindElement(By.XPath("//*[@id=\"cars\"]/option[1]")).Click();