Move to Element and Click
MovetoElement and Click [Test]public void MovetoElementAndClick(){dr.Navigate().GoToUrl(“https://www.browserstack.com/”);Actions action = new Actions(dr);IWebElement element = dr.FindElement(By.XPath(“//a[@id=’signupModalButton’]”));action.MoveToElement(element).Click().Build().Perform();string expectedURL = “https://www.browserstack.com/users/sign_up”;string actualURL = dr.Url;Assert.AreEqual(expectedURL, actualURL,”User is not navigated to signup page”);} Read more »
RightClickonElement in Selenium
RightClickonElement using Selenium C# [Test]public void RightClickonElement(){dr.Navigate().GoToUrl(“https://www.Techtutorialz.com/”);Actions action = new Actions(dr);IWebElement element = dr.FindElement(By.XPath(“//a[text()=’View Tutorial Library’]”));action.ContextClick(element).Build().Perform(); } Read more »
DrarandDrop in Selenium
DrarandDrop in Selenium C#. Read more »
SELENIUM – SOAP Webservice Automation
SELENIUM – SOAP Webservice Automation Sample code to Automate SOAP Webservice in C#.. using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Text; using System.Xml; using NUnit; using NUnit.Framework; namespace Read more »
Selenium Interview Questions
Selenium Interview Questions Selenium Interview Questions Read more »
Selenium Practice Tests
Selenium Practice Tests Read more »
Xpath: Contains fucntion
example: //input[contains(@aria-label,’Google Search’)][1] Read more »