Selenium IDE select2 selecting an item Selenium IDE select2 selecting an item selenium selenium

Selenium IDE select2 selecting an item


clickAt | css=.select2-choice |sendKeys | css=#select2-drop input.select2-input | Adobepause | 1000clickAt | css=.select2-result-label:contains('Adobe') |

This fixed it, putting a pause in the middle. It went to fast, if you put Selenium on ' Slow mode ' it went fine, just on fast it sweeped over it.


I think is better without "pause" (performance)

clickAt | css=.select2-choice |  sendKeys | css=#select2-drop input.select2-input | Adobe   waitForVisible | css=#select2-drop |  clickAt | css=.select2-result-label:contains('Adobe') |


I found this way

Ruby code:

element = @browser.element(:xpath => '//xpath/to/a.select2-choice')element.focus@browser.send_keys [:shift, :tab]@browser.send_keys :tab@browser.send_keys :arrow_down