Closed bbuchalter closed 6 years ago
The downsides of using an individual selector like this: find(:xpath, "//body").find("#{drop_container} li.select2-result-selectable", text: value)
find(:xpath, "//body").find("#{drop_container} li.select2-result-selectable", text: value)
Instead of this:
body = find(:xpath, "//body") drop_container = body.find("#{drop_container}") drop_container.find("li.select2-result-selectable", text:value)
are two fold:
The downsides of using an individual selector like this:
find(:xpath, "//body").find("#{drop_container} li.select2-result-selectable", text: value)
Instead of this:
are two fold: