Skip to content

Conversation

cdifino
Copy link

@cdifino cdifino commented Jul 24, 2019

The selenium side runner had an off by one bug in the foreach command. When looping through an array it would miss the last element of the array.

The underlying problem of this error was found in selianize/src/command.js file, where the loop of the array was written "for (let i = 0; i < vars["collection"].length -1; i++)" instead of "for (let i = 0; i < vars["collection"].length; i++)". This caused the program to not loop through the last element of the array when running the foreach command with the selenium-side-runner.

@cdifino cdifino marked this pull request as ready for review July 24, 2019 03:58
@cdifino
Copy link
Author

cdifino commented Jul 24, 2019

Hi @tourdedave ! This is the last and final PR for the small bug. Thank you in advance for reviewing!

@tourdedave
Copy link

Thanks for the PR! I'll review soon.

@tourdedave tourdedave merged commit 848d040 into SeleniumHQ:v3 Aug 1, 2019
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

Successfully merging this pull request may close these issues.

3 participants