File tree 2 files changed +4
-11
lines changed
JDI/web/selenium/elements
2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,9 @@ class Element(BaseElement):
10
10
11
11
def __init__ (self , by_locator = None , web_element = None ):
12
12
self .parent = None
13
- if by_locator is not None :
14
- super (Element , self ).__init__ (by_locator = by_locator )
15
- elif web_element is not None :
16
- super (Element , self ).__init__ ()
13
+ super (Element , self ).__init__ (by_locator = by_locator )
14
+ if web_element is not None :
17
15
self .avatar .set_web_element (web_element )
18
- else :
19
- super (Element , self ).__init__ ()
20
16
21
17
def get_element (self ):
22
18
return self .avatar .get_element ()
Original file line number Diff line number Diff line change 6
6
7
7
class Selector (BaseSelector ):
8
8
def __init__ (self , by_option_locator_template = None , by_option_locator_all = None ):
9
- if by_option_locator_all is None :
10
- super (Selector , self ).__init__ (by_option_locator_template = by_option_locator_template )
11
- else :
12
- super (Selector , self ).__init__ (by_option_locator_template = by_option_locator_template ,
13
- by_option_locator_all = by_option_locator_all )
9
+ super (Selector , self ).__init__ (by_option_locator_template = by_option_locator_template ,
10
+ by_option_locator_all = by_option_locator_all )
14
11
15
12
def is_selected_action (self , el ):
16
13
if isinstance (el , str ):
You can’t perform that action at this time.
0 commit comments