You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Selenium supports only several types of results returned from JavaScript you need to make sure that the generic type passed to the ExecuteScript method is in sync with what Selenium support.
For an HTML element, this method returns a IWebElement. For a number, a long is returned. For a boolean, a bool is returned. For all other cases a string is returned. For an array, we check the first element, and attempt to return a List of that type, following the rules above. Nested lists are not supported.