Fix for bug #8354   (#8379)
Fix for bug #8354   (#8379)

* The nano to milli second conversion was wrong so updated it

* extension is a string array accoring to W3 APIs but here it is defined as array of Object

* Endpoint needs to be corrected as well so made the changes as per the document
webdriverio/webdriverio,webdriverio/webdriverio,webdriverio/webdriverio