question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[🐛 Bug]: Test using keyboard tabbing runs endlessly without failing (C# specflow, selenium 4.2.0)

See original GitHub issue

What happened?

Since installing the package (selenium.webdriver net bindings for the SW API) I have a test which uses the below code to tab through a page of elements, since the update to 4.2.0 it no longer tabs beyond the first element on the page and it does not time out like other steps but stalls endlessly. If i go back to the previous version the step runs in a second with no issues.

When I use the "Tab" key on my keyboard to reach "Change Password" - **stalls here**
And I press "Enter"
And I am taken to the "Change Password" page

Apologies If i am missing something obviously I am relatively new to automation and coding and still trying to find my bearings.

How can we reproduce the issue?

Actions act = new Actions(driver);
            act.SendKeys(Keys.Tab);


            IWebElement elem = null;

            do
            {
                act.Perform();
                elem = driver.SwitchTo().ActiveElement();
                Debug.WriteLine("Text from an element: " + elem.Text);

            }
            while (!elem.Text.Contains(elementName));

        }

Relevant log output

no log output

Operating System

Windows 10

Selenium version

C#

What are the browser(s) and version(s) where you see this issue?

CHROME 102

What are the browser driver(s) and version(s) where you see this issue?

SELENIUM.WEBDRIIVER 4.2.0

Are you using Selenium Grid?

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
github-actions[bot]commented, Jun 1, 2022

@Wanizame18, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers <div>

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

</div>
0reactions
github-actions[bot]commented, Jul 14, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Specflow and Selenium Webdriver End to End Example
In this article, we will see an end to end example of using Specflow based BDD specifications and the tests will be executed...
Read more >
SpecFlow Tutorial For Automation Testing With Selenium C#
Using SpecFlow with Selenium C# is a crucial part of automation testing with ... i.e., fewer bugs and less friction between different teams....
Read more >
c# - KeyUp seems not taking affect after a KeyDown action
but I come to the bit where I need to simulate a Hold Shift Key Down and hit the down arrow a number...
Read more >
Run Selenium tests with SpecFlow | BrowserStack Docs
Running your Selenium tests with SpecFlow on BrowserStack is simple. This guide will help you: Run your first test; Mark tests as passed...
Read more >
Complete SpecFlow Selenium C# Tutorial - YouTube
This tutorial deep dives into SpecFlow Selenium C# Framework. It helps you learn the fundamentals of the SpecFlow BDD framework and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found