Getting ALL attributes from an IWebElement with Selenium WebDriver

后端 未结 6 828
半阙折子戏
半阙折子戏 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 17:13

    You can try this:

    Actions newTab = new Actions(web driver);
    newTab.ContextClick(element).SendKeys(Keys.ArrowDown).SendKeys(Keys.ArrowDown).SendKeys(Keys.Return).Build().Perform();
    

提交回复
热议问题