Moved Ruby code that multiple repositories use to mediawiki_selenium Ruby gem

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