'When I try to print the copy string on console then instead of string they show me some "Element (id = 5131abe8-3c52-4e18-8eb6-3abedb48e19d)"

IWebElement link = driver.FindElement(By.XPath("/html[1]/body[1]/div[3]/div[1]/div[1]/div[1]/div[2]/div[1]/button[1]"));
            link.Click();
            System.Console.WriteLine(link);

How I can print that string that is copy from this command ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source