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”);
}

Tags: ,
Leave a comment

Your email address will not be published. Required fields are marked *

Subscribe now

Receive weekly newsletter with educational materials, new courses, most popular posts, popular books and much more!

https://bridgejunks.com/ https://crownmakesense.com/ https://brithaniabookjudges.com/ https://hughesroyality.com/ https://rhythmholic.com/ https://bandar89.simnasfikpunhas.com/ https://www.100calshop.co.il/products/thailand/ https://myasociados.com/ https://solyser.com/ http://konfidence.cz/ https://muscadinepdx.com/ https://bandar89.parajesandinos.com.ve/ https://goremekoop.com/ https://oncoswisscenter.com/ https://www.turunclifehotel.com/bandar89/ https://www.houseofproducts.biz/ https://taimoormphotography.com/
BIJI18 BIJI18 BIJI18