TopSwagCode / xpath-diner

Mozilla Public License 2.0
16 stars 5 forks source link

Task 18: crime against logic and common sense #16

Open AlexMatsyuk opened 9 months ago

AlexMatsyuk commented 9 months ago

The task says: "Select the small apple and the big orange" Correct solution should be like this: //apple[contains(@class,'small')] | //orange[not(contains(@class,'small'))] But it's not accepted.

The only accepted solution is: //plate/*[last()] It's accepted because it corresponds to the tips but doesn't match the requirements.

Change the task "Select the last items on all the plates" Or change the solution to accept this: //apple[contains(@class,'small')] | //orange[not(contains(@class,'small'))]

isobeyan commented 4 months ago

facing the same issue as well.