errors: use non-hyphen anchor for NoSuchElementException #16303
                
     Closed
            
            
          
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
User description
What
Update the support URL in NoSuchElementException to use the non-hyphen docs anchor:
Why
The Selenium docs use lowercase exception names without hyphens for section anchors.
Old link (#no-such-element-exception) doesn’t match and drops users at the top.
How I tested
https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#nosuchelementexception
Scope
Fixes #16302 16302
PR Type
Bug fix
Description
Update NoSuchElementException support URL anchor
Fix broken documentation links in error messages
Update test expectations to match new URL format
Diagram Walkthrough
File Walkthrough
NoSuchElementException.java
Update Java exception support URL anchorjava/src/org/openqa/selenium/NoSuchElementException.java
"#nosuchelementexception"
NoSuchElementException.cs
Update .NET exception support URL anchordotnet/src/webdriver/NoSuchElementException.cs
"#nosuchelementexception"
error.rb
Update Ruby error URL mappingrb/lib/selenium/webdriver/common/error.rb
"#no-such-element-exception" to "#nosuchelementexception"
RelativeLocatorTest.cs
Update .NET test URL expectationdotnet/test/common/RelativeLocatorTest.cs
driver_spec.rb
Update Ruby driver test URL expectationrb/spec/integration/selenium/webdriver/driver_spec.rb
error_spec.rb
Update Ruby error test URL expectationrb/spec/integration/selenium/webdriver/error_spec.rb