Str Slice Javascript Method Overloading In Selenium