Search code examples
javaselenium-webdrivercoding-style

How to access webtable data in selenium?


enter image description here

Exception in thread "main" java.lang.AssertionError: expected [true] but found [false]

I tried to automate the web table code by using valid Xpath, stream, and lambda expressions. But getting asserts error, I don't understand how to resolve this, If anyone knows how to resolve it, please reply. Thanks in advance.


Solution

  • originalList and sortedList is not equal therefore it stopped in Assert.asserTrue line. this code expected a true condition. Maybe you can check the orginaList and sortedList.