Getting ALL attributes from an IWebElement with Selenium WebDriver

后端 未结 6 846
半阙折子戏
半阙折子戏 2020-12-10 16:18

I want to extract some information from the DOM with Selenium. I\'m using the C# WebDriver.

Looking at the IWebElement interface you can easily extract a given attri

6条回答
  •  鱼传尺愫
    2020-12-10 16:56

    you can do a FindElement(By.tag("body")) to return a list of WebElements and then parse the results as you suggest.

提交回复
热议问题