capybara-select2 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/capybara-select2.rb +1 -1
- data/lib/capybara-select2/version.rb +1 -1
- metadata +1 -1
data/lib/capybara-select2.rb
CHANGED
@@ -10,7 +10,7 @@ module Capybara
|
|
10
10
|
select2_container=first("label", text: select_name).find(:xpath, '..').find(".select2-container")
|
11
11
|
select2_container.find(".select2-choice").click
|
12
12
|
|
13
|
-
find(".select2-drop li", text: value).click
|
13
|
+
find(:xpath, "//body").find(".select2-drop li", text: value).click
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|