The equivalent of the following example in Java.
The equivalent Ruby would be:
name = driver.execute_script("return arguments.tagName" , element)
(to get the tag name you could also just call element.tag_name)
@driver.execute_script("arguments.scrollIntoView(true);", element )
By doing so, I was able to scroll into the specific element before click event. This might help others a bit.
©2020 All rights reserved.