public function iScrollToField($locator, $type) {
		$page = $this->getSession()->getPage();
        $el = $page->find('named', array($type, "'$locator'"));
        assertNotNull($el, sprintf('%s element not found', $locator));

        $id = $el->getAttribute('id');
		if(empty($id)) {
			throw new \InvalidArgumentException('Element requires an "id" attribute');
		}

		$js = sprintf("document.getElementById('%s').scrollIntoView(true);", $id);
		$this->getSession()->executeScript($js);
	}