Horje
python all option Code Example
python all option
from selenium import webdriver

browser = webdriver.Firefox()

select_box = browser.find_element_by_name("month") 

options = [x for x in select_box.find_elements_by_tag_name("option")]

for element in options:
    print element.get_attribute("value") 
python all option
WebElement element = driver.findElement(By.id(""));
Select select = new Select(element);
List<WebElement> list = select.getOptions();
for(int i=0; i<list.size(); i++)        
    {
        System.out.println(list.get(i).getText());
    }




Python

Related
code folding vim python Code Example code folding vim python Code Example
python if index not out of range Code Example python if index not out of range Code Example
numpy remove object from array Code Example numpy remove object from array Code Example
python regular expression escape vertical bar | Code Example python regular expression escape vertical bar | Code Example
subprocess the system cannot find the file specifie Code Example subprocess the system cannot find the file specifie Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7