File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
py/test/selenium/webdriver/common Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < div id ="with.dots "> Element with a dot in the id</ div >
Original file line number Diff line number Diff line change @@ -37,6 +37,11 @@ def test_Should_Be_Able_To_Find_ASingle_Element_By_Numeric_Id(self):
37
37
element = self .driver .find_element (By .ID , "2" )
38
38
self .assertEqual (element .get_attribute ("id" ), "2" )
39
39
40
+ def test_should_be_able_to_find_an_element_with_css_escape (self ):
41
+ self ._load_page ("idElements" )
42
+ element = self .driver .find_element (By .ID , "with.dots" )
43
+ self .assertEqual (element .get_attribute ("id" ), "with.dots" )
44
+
40
45
def test_Should_Be_Able_To_Find_Multiple_Elements_By_Id (self ):
41
46
self ._load_page ("nestedElements" )
42
47
elements = self .driver .find_elements (By .ID , "test_id" )
You can’t perform that action at this time.
0 commit comments