cobrateam / cobrateam/splinter
Cannot set content of the proper Select element with Django (2.x) Admin with fieldsets (spl 0.11.0))
- Dominant language
- Python
- Stars
- 2.7k
- Forks
- 511
- PR merge metrics
- No merged PRs in 30d
Description
```
# fails! probably Splinter 0.11.0 error
# selEl.select(opt.value) <============= FAILS, will set the 1-st select in fieldset, regardless we have in selEl only the 2nd one
ie. in code bellow we cannot select 'impact'. Regardless only 'impact' is selected, .select() changes always 'criticity'.
this replacement directly with webdriver works well:
from selenium.webdriver.support.ui import Select
select = Select(self.br.driver.find_element_by_name(selEl.first['name']))
select.select_by_value(opt.value) # or .select_by_visible_text('Banana')
class VyjimkyAdmin(admin.ModelAdmin):
form = VyjimkyForm
fieldsets = [
(_("Vyjimky"), {
'fields': ("vyjimka_id",
"name",
"reason",
("criticity", "impact", "scope"))
}),
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.