Tag Info

New answers tagged

0

It turns out i was able to find the problem by myself, it was not at all in the above snippet of code. if i[1] == "id_text": inst = driver.find_element_by_id(i[2]) #inst.click() for option in inst.find_elements_by_tag_name('option'): if option.text == i[3]: option.click() This above code was inside of a function ...


0

What is stored inside id[2]? If it has \' instead of ' then removing the \ might solve your problem.


0

Hi @StacyM he is talking about the path C:\Python27\Lib\site-packages\selenium\webdriver you can place the android file there. Also in your __init__.py file you can add the line from android.webdriver import WebDriver as Android if what I have read is correct. Maybe @Sean can confirm this? EDIT: I did get this working by removing my old Selenium, unpacking ...


0

driver = webdriver.Firefox() languages = ['pol', 'eng', 'ger'] `#in html looks like <option value="eng">eng</option>` for lang_select in languages: select = Select(driver.find_element_by_name('lang')).select_by_value(lang_select)



Top 50 recent answers are included