diff options
author | Moonchild <moonchild@palemoon.org> | 2021-02-25 01:03:57 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-02-25 01:03:57 +0000 |
commit | ceadffab6b357723981a429e11222daf6cd6dcfb (patch) | |
tree | 5603053048d6a460f79b22bdf165fb74d32d39b0 /testing/web-platform/tests/old-tests/webdriver/element_location | |
parent | 14fb2f966e9b54598c451e3cb35b4aa0480dafed (diff) | |
parent | ad5a13bd501e379517da1a944c104a11d951a3f5 (diff) | |
download | UXP-RC_20210225.tar UXP-RC_20210225.tar.gz UXP-RC_20210225.tar.lz UXP-RC_20210225.tar.xz UXP-RC_20210225.zip |
Merge branch 'master' into releaseRC_20210225
Diffstat (limited to 'testing/web-platform/tests/old-tests/webdriver/element_location')
3 files changed, 0 insertions, 70 deletions
diff --git a/testing/web-platform/tests/old-tests/webdriver/element_location/__init__.py b/testing/web-platform/tests/old-tests/webdriver/element_location/__init__.py deleted file mode 100644 index e69de29bb..000000000 --- a/testing/web-platform/tests/old-tests/webdriver/element_location/__init__.py +++ /dev/null diff --git a/testing/web-platform/tests/old-tests/webdriver/element_location/element_location_test.py b/testing/web-platform/tests/old-tests/webdriver/element_location/element_location_test.py deleted file mode 100644 index aff548ea5..000000000 --- a/testing/web-platform/tests/old-tests/webdriver/element_location/element_location_test.py +++ /dev/null @@ -1,60 +0,0 @@ -import os -import sys -import unittest - -sys.path.insert(1, os.path.abspath(os.path.join(__file__, "../.."))) -import base_test - -class ElementLocationTest(base_test.WebDriverBaseTest): - def test_find_element_by_name(self): - self.driver.get(self.webserver.where_is("element_location/res/elements.html")) - e = self.driver.find_element_by_name("name") - self.assertEquals("name", e.text) - - def test_find_element_by_css_selector(self): - self.driver.get(self.webserver.where_is("element_location/res/elements.html")) - e = self.driver.find_element_by_css_selector("#id") - self.assertEquals("id", e.text) - - def test_find_element_by_link_text(self): - self.driver.get(self.webserver.where_is("element_location/res/elements.html")) - e = self.driver.find_element_by_link_text("link text") - self.assertEquals("link text", e.text) - - def test_find_element_by_partial_link_text(self): - self.driver.get(self.webserver.where_is("element_location/res/elements.html")) - e = self.driver.find_element_by_partial_link_text("link tex") - self.assertEquals("link text", e.text) - - def test_find_element_by_xpath(self): - self.driver.get(self.webserver.where_is("element_location/res/elements.html")) - e = self.driver.find_element_by_xpath("//*[@id='id']") - self.assertEquals("id", e.text) - - def test_find_elements_by_name(self): - self.driver.get(self.webserver.where_is("element_location/res/elements.html")) - e = self.driver.find_elements_by_name("name") - self.assertEquals("name", e[0].text) - - def test_find_elements_by_css_selector(self): - self.driver.get(self.webserver.where_is("element_location/res/elements.html")) - e = self.driver.find_elements_by_css_selector("#id") - self.assertEquals("id", e[0].text) - - def test_find_elements_by_link_text(self): - self.driver.get(self.webserver.where_is("element_location/res/elements.html")) - e = self.driver.find_elements_by_link_text("link text") - self.assertEquals("link text", e[0].text) - - def test_find_elements_by_partial_link_text(self): - self.driver.get(self.webserver.where_is("element_location/res/elements.html")) - e = self.driver.find_elements_by_partial_link_text("link tex") - self.assertEquals("link text", e[0].text) - - def test_find_elements_by_xpath(self): - self.driver.get(self.webserver.where_is("element_location/res/elements.html")) - e = self.driver.find_elements_by_xpath("//*[@id='id']") - self.assertEquals("id", e[0].text) - -if __name__ == "__main__": - unittest.main() diff --git a/testing/web-platform/tests/old-tests/webdriver/element_location/res/elements.html b/testing/web-platform/tests/old-tests/webdriver/element_location/res/elements.html deleted file mode 100644 index 45b7c2370..000000000 --- a/testing/web-platform/tests/old-tests/webdriver/element_location/res/elements.html +++ /dev/null @@ -1,10 +0,0 @@ -<!DOCTYPE html> -<meta charset="utf-8"> - -<title>Element location</title> - -<body> - <div id="id">id</div> - <div id="name" name="name">name</div> - <a id="link">link text</a> -</body> |