Как получить список всех фреймов на странице? - C#
Формулировка задачи:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OpenQA.Selenium;
using OpenQA.Selenium.IE;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.Support.UI;
namespace driver
{
class Program
{
static void Main(string[] args)
{
IWebDriver d = new FirefoxDriver();
d.Navigate().GoToUrl("http://www.satoshididu.com/");
List<IWebElement> myIframes = d.FindElements(By.TagName("frame"));
}
}
}Решение задачи: «Как получить список всех фреймов на странице?»
textual
Листинг программы
List<IWebElement> myIframes = d.FindElements(By.TagName("frame")).ToList();