While working on a project with Selenium, I encountered an issue where a test case created using the Selenium IDE and converted to WebDriver did not run as expected when executed using NUnit.
Upon further investigation, I discovered that on the webpage being tested, there was a link displayed in all capital letters (i.e. HOME) due to the CSS styling text-transform : uppercase
. However, when inspecting the elements, it appeared as (Home).
When running the test, I received the following error:
OpenQA.Selenium.NoSuchElementException : Unable to locate element: {"method":"link text","selector":"Home"}
A temporary solution for this issue was to ensure that the link text was always in capital letters. Nevertheless, I am curious if anyone else has faced similar challenges and how they resolved them?