static void Main(string[] args) { IWebDriver driver = null; ChromeOptions options = new ChromeOptions(); driver = new ChromeDriver(@"C:\selenium\latestDriver", options); driver.Url = "https://paytmmall.com/"; driver.Manage().Window.Maximize(); driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(20); driver.FindElement(By.XPath("//*[@id='app']/div/div[2]/div[2]/div[2]/div[3]/div[3]/div")).Click(); Console.WriteLine("done"); }
Instructor
gunjan Replied on 02/01/2019
Hi Mai,
This code is clicking on the login button and running fine. I can't see any error.
Hi Gunjan
I added thread.sleep and it worked. Thanks for your help