You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failures:
1) github search should search repository
Failure/Error: find('a[data-item-type="global_search"]').click
Capybara::ElementNotFound:
Unable to find visible css "a[data-item-type=\"global_search\"]"
# ./spec/feature/github_search_spec.rb:18:in `block (2 levels) in <top (required)>'
# ./spec/feature/github_search_spec.rb:8:in `block (2 levels) in <top (required)>'
The search button appears only when textbox is focused.
It seems Cuprite inputs 'selenium' text without focusing into the textbox.
We can avoid this issue by explicitly put find("input[name='q']").click before fill_in, however I think it is not so good because some users already have selenium-based specs. It would be useful us to use the existing selenium-based specs also in Cuprite.
Reacted by Shozo Hatta, Mateus Oliveira and Howard Wilson
The UI slightly changed now, I tried to modify the script:
it 'should search repository' do
@session.visit '/'
@session.find('//button[@data-target="qbsearch-input.inputButton"]').click
@session.fill_in('query-builder-test', with: 'selenium')
@session.find(:css, 'span.ActionListItem-description', text: 'Search all of GitHub').click
end
and it works now, maybe there was something in the markup for prev revision, but now it works.
Activity
dhnaranjo commentedon Nov 16, 2023
This issue is still causing trouble.
jdelStrother commentedon Dec 16, 2024
I also ran into this, switching selenium -> cuprite. FWIW, I'm currently using this to work around it:
Focus form control elements during `fill_in`
seanpdoyle commentedon Dec 22, 2025
I've opened #305 to attempt to resolve this issue.
route commentedon Apr 3, 2026
The UI slightly changed now, I tried to modify the script:
and it works now, maybe there was something in the markup for prev revision, but now it works.