Moved Ruby code that multiple repositories use to mediawiki_selenium Ruby gem

Bug: 56088
Change-Id: I5b3700173a5d2eda415a2187ee81f1f3cbe5aa3a
Merge "Moved Ruby code that multiple repositories use to mediawiki_selenium Ruby gem"