File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -23,4 +23,6 @@ __pycache__
23
23
venv *
24
24
.tox
25
25
26
- Pipfile.lock
26
+ Pipfile.lock
27
+
28
+ .coverage
Original file line number Diff line number Diff line change 28
28
29
29
class TestWebElement (object ):
30
30
31
+ @httpretty .activate
32
+ def test_set_value (self ):
33
+ driver = android_w3c_driver ()
34
+ httpretty .register_uri (
35
+ httpretty .POST ,
36
+ appium_command ('/session/1234567890/appium/element/element_id/value' )
37
+ )
38
+
39
+ element = MobileWebElement (driver , 'element_id' , w3c = True )
40
+ value = 'happy testing'
41
+ element .set_value (value )
42
+
43
+ d = get_httpretty_request_body (httpretty .last_request ())
44
+ assert d ['value' ] == [value ]
45
+
31
46
@httpretty .activate
32
47
def test_send_key (self ):
33
48
driver = android_w3c_driver ()
You can’t perform that action at this time.
0 commit comments