Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"NoSuchElementException: NOT GET ITEM" occures calling DataGrid.find() method if HORIZONTAL SCROLL BAR IS NOT PRESENT (NOT ENABLED) #27

Open
SAR89 opened this issue Nov 11, 2020 · 0 comments

Comments

@SAR89
Copy link

SAR89 commented Nov 11, 2020

Conditions are these:
During a test a window is opened with a table big enough so vertical scroll bar is enabled but narrow enough so horizontal scroll bar is not necessary (see screenshot). Looping datagrid retrieving value of each cell in each row causes mentioned issue when it comes to the first OFFSCREEN row. And the issue appears calling find() method for the SECOND column of that first offscreen row - for instance, if first offscreen row has index 17 then calling .find(17, 0) works fine but .find(17, 1) causes the exception.
NOTE that issue does not appear if horizontal scroll bar IS ENABLED initially with window opening or manually before loop and find is started.
Please find quote from code and system out log in attachment.

The exception is:
org.openqa.selenium.NoSuchElementException: NOT GET ITEM (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:19:58.91Z'
System info: host: 'CAB-WAD-0013144', ip: '10.78.86.48', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '11.0.3'
Driver info: org.openqa.selenium.winium.WiniumDriver
...................................
Session ID: AwesomeSession
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
at org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:40)
at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:80)
at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:44)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at org.openqa.selenium.winium.WiniumDriverCommandExecutor.execute(WiniumDriverCommandExecutor.java:78)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:276)
at winium.elements.desktop.DataGrid.callDataGridCellCommand(DataGrid.java:22)
at winium.elements.desktop.DataGrid.find(DataGrid.java:44)
at ru.sbrf.ird.qa.utils.afc.BigClientWindows.AbstractWindow.loopDataGrid(AbstractWindow.java:50)
...........

quote from AbstractWindow java class.txt
system out log.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant