Commit 39e10f3
[java] fix NoSuchElementException for custom By locators (#17287)
* [java] fix NoSuchElementException for custom By locators
Modified ElementLocation to throw NoSuchElementException when a context-based finder returns null.
Ensures symmetry with the remote finder and maintains backward compatibility for custom locators.
render_diffs(file:///d:/projects/selenium/java/src/org/openqa/selenium/remote/ElementLocation.java) render_diffs(file:///d:/projects/selenium/rb/lib/selenium/webdriver/common/websocket_connection.rb) render_diffs(file:///d:/projects/selenium/rb/lib/selenium/webdriver/devtools/network_interceptor.rb) render_diffs(file:///d:/projects/selenium/rb/lib/selenium/webdriver/common/driver_extensions/has_network_interception.rb)
* Retry CLA Assistant workflow
---------
Co-authored-by: Corey Goldberg <1113081+cgoldberg@users.noreply.github.com>1 parent 51739f2 commit 39e10f3
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
| |||
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
151 | 158 | | |
152 | 159 | | |
153 | 160 | | |
| |||
0 commit comments