Skip to content

Question: should switch_to_window visibly change focus on tabs when run headful? #285

Closed

Description

@vdbijl

I am debugging a problem that we have when testing with 2 tabs open. The test switches between tabs, but sometimes has a hard time finding elements on the screen.
When running the test headful I see that the switch_to_window does not visibly give the focus to the tab that is being switched to. Is that intentional or is that a bug?
Could the lack of focus be related to Cuprite/Capybara/Ferrum taking a long time finding elements on the non-focused page?

Activity

  1. route commented on Jan 7, 2025

    @route
    Member

    You should use activate rubycdp/ferrum@600d63d
    when switching tab. It should do the trick. Do you have a repro test?

  2. locked and limited conversation to collaborators on Jan 7, 2025
  3. converted this issue into a discussion #287 on Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions