如何复制网站内容并将硒转换为.txt文件C#

时间:2018-12-10 01:03:13

标签: c# selenium type-conversion

我正在这样做,但是我无法将iwebElement转换为toString

    System.Threading.Thread.Sleep(25);
           clicarLink = drive.FindElement(By.ClassName("LC20lb"));
             clicarLink.Click();

            copiarConteudo = drive.FindElement(By.TagName("body"));
            System.Threading.Thread.Sleep(2500);

            copiarConteudo.SendKeys(OpenQA.Selenium.Keys.Control + "a");

0 个答案:

没有答案