There is one extra block that is not needed in a correct solution. You will be told if any of the blocks are in the wrong order or if you need to remove one or more blocks. Check your solution by clicking on the Check Me button. Drag the needed blocks from the left into the correct order on the right. Plus, implicit wait is firm for that driver instance once you set that. The best solution of that problem is to find the element on the fly. You cannot find a list and click through the elements back and forth and reference to the same list since the DOM has refreshed after first click. The code should loop through all of the elements in wordList and if the length of the current word is 3 it should add one to the score, if the length of the word is 4 it should add 2 to the score, and if the length is greater than 4 it should add 3 to the score. The possible issue with this is the DOM refresh.
This method will calculate and return the score for a word game. If you are not familiar with that interface, look it up in the Java API documentation.
Similarly it is not usable for loops where you need to replace elements in a list or array as you. The following has the correct code for the method getScore plus at least one extra unneeded code statement. ListNode implements the interface Iterable to iterate through lists. Therefore, the for-each loop is not usable for filtering.