Skip to content

Commit

Permalink
Adding atom to IE driver
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Aug 8, 2019
1 parent a0f2fa5 commit 1395598
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions javascript/ie-driver/atoms.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,18 @@ webdriver.ie.isOffsetInParentOverflow = function (element, x, y) {
return bot.dom.getOverflowState(element, offsetPoint);
};

/**
* Checks whether the element is entirely scrolled into the parent's overflow
* region.
*
* @param {!Element} element The element to check.
* @return {bot.dom.OverflowState} Whether the coordinates specified, relative to the element,
* are scrolled in the parent overflow.
*/
webdriver.ie.isElementInParentOverflow = function (element) {
return bot.dom.getOverflowState(element);
};

/**
* Gets the size and location of an element.
*
Expand Down
6 changes: 6 additions & 0 deletions javascript/ie-driver/build.desc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ js_fragment(name = "is_offset_in_parent_overflow",
function = "webdriver.ie.isOffsetInParentOverflow",
deps = [ ":deps" ])

js_fragment(name = "is_element_in_parent_overflow",
module = "webdriver.ie",
function = "webdriver.ie.isElementInParentOverflow",
deps = [ ":deps" ])

js_fragment(name = "get_element_rect",
module = "webdriver.ie",
function = "webdriver.ie.getElementRect",
Expand All @@ -36,6 +41,7 @@ js_fragment_header(name = "atoms",
"//javascript/ie-driver:find_element:ie",
"//javascript/ie-driver:find_elements:ie",
"//javascript/ie-driver:is_offset_in_parent_overflow:ie",
"//javascript/ie-driver:is_element_in_parent_overflow:ie",
"//javascript/ie-driver:get_element_rect:ie",
"//javascript/webdriver/atoms:inputs",
"//javascript/webdriver/atoms/fragments:get_attribute:ie",
Expand Down

0 comments on commit 1395598

Please sign in to comment.