fillField does not work with inputs inside bootstrap modal using sellenium (1 or 2)
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.6k
- Forks
- 286
- PR merge metrics
- No merged PRs in 30d
Description
I'm writing some tests and sometimes I open a bootstrap modal and fill some inputs.
When I use the getSession()->getPage()->fillField("id", "value") it does not throw any error, neither fill the field inside the modal.
To solve this I had to call getSession()->getDriver()->setValue("'//*[@id="id"]', "value")
Here's more details and some code:
http://stackoverflow.com/questions/26239561/behat-mink-selenium2-element-is-not-visible/26242599
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with getSession()->getPage()->fillField("id", "value") on an input inside a Bootstrap modal, then compare it with the driver setValue workaround shown in the report. Trace the fillField path for Selenium 1 and 2 and verify that the input is updated when the modal is open; done means the field is filled without calling the driver directly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- testing-qa, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100