IList<IWebElement> labels = driver.FindElements(By.ClassName(textBox1.Text)); textBox2.Text = labels.ToString(); listBox1.Items.Add(labels);
(Collection)
System.Collections.ObjectModel.ReadOnlyCollection`1[OpenQA.Selenium.IWebElement]
String labels = driver.FindElement(By.ClassName(textBox1.Text)).Text; listBox1.Items.Add(labels);
labels
IList
labels.ToString()
for/foreach
listBox1.Items.Add(labels);
IList<IWebElement> all = driver.FindElements(By.ClassName(textBox1.Text)); String[] allText = new String[all.Count]; int i = 0; foreach (IWebElement element in all) { allText[i++] = element.Text; listBox1.Items.Add(element); }
foreach (IWebElement element in all) { listBox1.Items.Add(element.Text); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)