I'm trying to assert a 'name' on my page, to assure the right name is displayed: public static OpenQA.Selenium.By Name = (By.CssSelector("p")); Assert.AreEqual("Name", ...
How do I build a CSS locator for the "Add Photos/Video" text between the span tags. I need to perform a click event on this element.
Code: driver.findelement(By.xpath(".//*[@id='js_2y']/div/div/div/div/div/button")).click(); Every time I try by locating xpath, it's gives an exception, could not locate element. May 04, ...