.getLocationInView() Determine an element's location on the screen once it has been scrolled into view. Uses elementIdLocationInViewprotocol command. Parameters: Name Type description selector string The CSS/Xpath selector used to locate the element.…