New answers tagged python
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 == "id_text": inst = driver.find_element_by_id(i) #inst.click() for option in inst.find_elements_by_tag_name('option'): if option.text == i: option.click() This above code was inside of a function ...
What is stored inside id? If it has \' instead of ' then removing the \ might solve your problem.
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 ...
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