예제 #1
0
    def test_start_activity_with_opts(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/appium/device/start_activity'),
            body='{"value": ""}'
        )
        driver.start_activity(
            app_package='com.example.myapp',
            app_activity='.ExampleActivity',
            app_wait_package='com.example.waitapp',
            intent_action='android.intent.action.MAIN',
            intent_category='android.intent.category.LAUNCHER',
            intent_flags='0x10200000',
            optional_intent_arguments='--es "activity" ".ExampleActivity"',
            dont_stop_app_on_reset=True
        )

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['appPackage'] == 'com.example.myapp'
        assert d['appActivity'] == '.ExampleActivity'
        assert d['appWaitPackage'] == 'com.example.waitapp'
        assert d['intentAction'] == 'android.intent.action.MAIN'
        assert d['intentCategory'] == 'android.intent.category.LAUNCHER'
        assert d['intentFlags'] == '0x10200000'
        assert d['optionalIntentArguments'] == '--es "activity" ".ExampleActivity"'
        assert d['dontStopAppOnReset'] is True
예제 #2
0
 def test_open_notifications(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.POST,
         appium_command(
             '/session/1234567890/appium/device/open_notifications'))
     assert isinstance(driver.open_notifications(), WebDriver)
예제 #3
0
 def test_hide_keyboard(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.POST,
         appium_command('/session/1234567890/appium/device/hide_keyboard')
     )
     assert isinstance(driver.hide_keyboard(), WebDriver)
예제 #4
0
    def test_start_activity_with_opts(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/appium/device/start_activity'),
            body='{"value": ""}')
        driver.start_activity(
            app_package='com.example.myapp',
            app_activity='.ExampleActivity',
            app_wait_package='com.example.waitapp',
            intent_action='android.intent.action.MAIN',
            intent_category='android.intent.category.LAUNCHER',
            intent_flags='0x10200000',
            optional_intent_arguments='--es "activity" ".ExampleActivity"',
            dont_stop_app_on_reset=True)

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['appPackage'] == 'com.example.myapp'
        assert d['appActivity'] == '.ExampleActivity'
        assert d['appWaitPackage'] == 'com.example.waitapp'
        assert d['intentAction'] == 'android.intent.action.MAIN'
        assert d['intentCategory'] == 'android.intent.category.LAUNCHER'
        assert d['intentFlags'] == '0x10200000'
        assert d[
            'optionalIntentArguments'] == '--es "activity" ".ExampleActivity"'
        assert d['dontStopAppOnReset'] is True
예제 #5
0
 def test_unlock(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.POST,
         appium_command('/session/1234567890/appium/device/unlock'),
     )
     assert isinstance(driver.unlock(), WebDriver)
예제 #6
0
 def test_toggle_location_services(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.POST,
         appium_command('/session/1234567890/appium/device/toggle_location_services')
     )
     assert isinstance(driver.toggle_location_services(), WebDriver)
예제 #7
0
    def test_batch_with_timeout(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/appium/execute_driver'),
            body='{"value": {"result":['
            '{"element-6066-11e4-a52e-4f735466cecf":"39000000-0000-0000-D39A-000000000000",'
            '"ELEMENT":"39000000-0000-0000-D39A-000000000000"},'
            '{"y":237,"x":18,"width":67,"height":24}],"logs":{'
            '"error":[],"warn":["warning message"],"log":[]}}}',
        )

        script = """
            console.warn('warning message');
            const element = await driver.findElement('accessibility id', 'Buttons');
            const rect = await driver.getElementRect(element.ELEMENT);
            return [element, rect];
        """
        response = driver.execute_driver(script=textwrap.dedent(script), timeout_ms=10000)
        assert response.result[0].id == '39000000-0000-0000-D39A-000000000000'
        assert response.result[1]['y'] == 237
        assert response.logs['error'] == []

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['script'] == textwrap.dedent(script)
        assert d['type'] == 'webdriverio'
        assert d['timeout'] == 10000
예제 #8
0
    def test_compare_commands(self):
        driver_base = android_w3c_driver()
        driver_sub = self.android_w3c_driver(SubWebDriver)
        driver_subsub = self.android_w3c_driver(SubSubWebDriver)

        assert len(driver_base.command_executor._commands) == len(driver_sub.command_executor._commands)
        assert len(driver_base.command_executor._commands) == len(driver_subsub.command_executor._commands)
예제 #9
0
 def test_islocked_false(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.POST,
         appium_command('/session/1234567890/appium/device/is_locked'),
         body='{"value": false}')
     assert driver.is_locked() is False
예제 #10
0
 def test_toggle_wifi(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.POST,
         appium_command('/session/1234567890/appium/device/toggle_wifi'),
     )
     assert isinstance(driver.toggle_wifi(), WebDriver) is True
예제 #11
0
 def test_is_ime_active(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.GET,
         appium_command('/session/1234567890/ime/activated'),
         body=json.dumps({'value': True}))
     assert driver.is_ime_active() is True
예제 #12
0
 def test_toggle_wifi(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.POST,
         appium_command('/session/1234567890/appium/device/toggle_wifi'),
     )
     assert isinstance(driver.toggle_wifi(), WebDriver)
예제 #13
0
 def test_get_device_time(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.GET,
         appium_command('/session/1234567890/appium/device/system_time'),
         body='{"value": "2019-01-05T14:46:44+09:00"}')
     assert driver.get_device_time() == '2019-01-05T14:46:44+09:00'
예제 #14
0
 def test_hide_keyboard(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.POST,
         appium_command('/session/1234567890/appium/device/hide_keyboard')
     )
     assert isinstance(driver.hide_keyboard(), WebDriver)
예제 #15
0
 def test_get_settings_string(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.GET,
         appium_command('/session/1234567890/appium/settings'),
         body='{"value": {"sample": "string"}}')
     assert driver.get_settings()['sample'] == 'string'
예제 #16
0
 def test_network_connection(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.GET,
         appium_command('/session/1234567890/network_connection'),
         body='{"value": 2}')
     assert driver.network_connection == 2
예제 #17
0
 def test_keyevent(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.POST,
         appium_command('/session/1234567890/appium/device/keyevent'),
         body='{keycode: 86}')
     assert isinstance(driver.keyevent(86), WebDriver)
예제 #18
0
 def test_deactivate_ime_engine(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.POST,
         appium_command('/session/1234567890/ime/deactivate'),
     )
     assert isinstance(driver.deactivate_ime_engine(), WebDriver)
예제 #19
0
 def test_close_app(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.POST,
         appium_command('/session/1234567890/appium/app/close'),
         body='{"value": }')
     assert isinstance(driver.close_app(), WebDriver)
예제 #20
0
 def test_islocked_false(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.POST,
         appium_command('/session/1234567890/appium/device/is_locked'),
         body='{"value": false}'
     )
     assert driver.is_locked() is False
예제 #21
0
 def test_get_device_time(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.GET,
         appium_command('/session/1234567890/appium/device/system_time'),
         body='{"value": "2019-01-05T14:46:44+09:00"}'
     )
     assert driver.get_device_time() == '2019-01-05T14:46:44+09:00'
예제 #22
0
 def test_get_display_density(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.GET,
         appium_command(
             '/session/1234567890/appium/device/display_density'),
         body='{"value": 560}')
     assert driver.get_display_density() == 560
예제 #23
0
 def test_wait_activity(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.GET,
         appium_command(
             '/session/1234567890/appium/device/current_activity'),
         body='{"value": ".ExampleActivity"}')
     assert driver.wait_activity('.ExampleActivity', 1) is True
예제 #24
0
 def test_get_contexts(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.GET,
         appium_command('/session/1234567890/context'),
         body='{"value": "NATIVE"}'
     )
     assert driver.current_context == 'NATIVE'
예제 #25
0
 def test_network_connection(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.GET,
         appium_command('/session/1234567890/network_connection'),
         body='{"value": 2}'
     )
     assert driver.network_connection == 2
예제 #26
0
 def test_get_contexts(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.GET,
         appium_command('/session/1234567890/context'),
         body='{"value": "NATIVE"}'
     )
     assert driver.current_context == 'NATIVE'
예제 #27
0
 def test_get_settings_string(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.GET,
         appium_command('/session/1234567890/appium/settings'),
         body='{"value": {"sample": "string"}}'
     )
     assert driver.get_settings()['sample'] == 'string'
예제 #28
0
 def test_active_ime_engine(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.GET,
         appium_command('/session/1234567890/ime/active_engine'),
         body=json.dumps({'value': 'com.android.inputmethod.latin/.LatinIME'})
     )
     assert driver.active_ime_engine == 'com.android.inputmethod.latin/.LatinIME'
예제 #29
0
 def test_wait_activity(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.GET,
         appium_command('/session/1234567890/appium/device/current_activity'),
         body='{"value": ".ExampleActivity"}'
     )
     assert driver.wait_activity('.ExampleActivity', 1) is True
예제 #30
0
 def test_current_package(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.GET,
         appium_command(
             '/session/1234567890/appium/device/current_package'),
         body='{"value": ".ExamplePackage"}')
     assert driver.current_package == '.ExamplePackage'
예제 #31
0
    def test_send_key(self):
        driver = android_w3c_driver()
        httpretty.register_uri(httpretty.POST, appium_command('/session/1234567890/element/element_id/value'))

        element = MobileWebElement(driver, 'element_id', w3c=True)
        element.send_keys('happy testing')

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['text'] == ''.join(d['value'])
예제 #32
0
 def test_lock(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.POST,
         appium_command('/session/1234567890/appium/device/lock'),
         body='{"value": ""}')
     driver.lock(1)
     d = json.loads(httpretty.last_request().body.decode('utf-8'))
     assert d['seconds'] == 1
예제 #33
0
 def test_press_keycode(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.POST,
         appium_command('/session/1234567890/appium/device/press_keycode'),
         body='{"value": "86"}')
     driver.press_keycode(86)
     d = get_httpretty_request_body((httpretty.last_request()))
     assert d['keycode'] == 86
예제 #34
0
    def test_set_location_str(self):
        driver = android_w3c_driver()
        httpretty.register_uri(httpretty.POST, appium_command('/session/1234567890/location'))
        assert isinstance(driver.set_location('11.1', '22.2', '33.3'), WebDriver)

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['location']['latitude'] == '11.1'
        assert d['location']['longitude'] == '22.2'
        assert d['location']['altitude'] == '33.3'
예제 #35
0
 def test_background_app(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.POST,
         appium_command('/session/1234567890/appium/app/background'),
         body='{"value": ""}')
     result = driver.background_app(0)
     assert {'app': 0}, get_httpretty_request_body(httpretty.last_request())
     assert isinstance(result, WebDriver)
예제 #36
0
    def test_set_location_without_altitude(self):
        driver = android_w3c_driver()
        httpretty.register_uri(httpretty.POST, appium_command('/session/1234567890/location'))
        assert isinstance(driver.set_location(11.1, 22.2), WebDriver)

        d = get_httpretty_request_body(httpretty.last_request())
        assert abs(d['location']['latitude'] - 11.1) <= FLT_EPSILON
        assert abs(d['location']['longitude'] - 22.2) <= FLT_EPSILON
        assert d['location'].get('altitude') is None
예제 #37
0
    def test_compare_commands(self):
        driver_base = android_w3c_driver()
        driver_sub = self.android_w3c_driver(SubWebDriver)
        driver_subsub = self.android_w3c_driver(SubSubWebDriver)

        assert len(driver_base.command_executor._commands) == len(
            driver_sub.command_executor._commands)
        assert len(driver_base.command_executor._commands) == len(
            driver_subsub.command_executor._commands)
예제 #38
0
    def test_set_power_ac(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/appium/device/power_ac'),
        )
        assert isinstance(driver.set_power_ac(Power.AC_ON), WebDriver)

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['state'] == Power.AC_ON
예제 #39
0
    def test_set_gsm_voice(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/appium/device/gsm_voice'),
        )
        assert isinstance(driver.set_gsm_voice(GsmVoiceState.ROAMING), WebDriver)

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['state'] == GsmVoiceState.ROAMING
예제 #40
0
    def test_lock_no_args(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/appium/device/lock'),
            body='{"value": ""}')
        driver.lock()

        d = get_httpretty_request_body(httpretty.last_request())
        assert d == {}
예제 #41
0
    def test_set_network_connection(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/network_connection'),
            body='{"value": ""}')
        driver.set_network_connection(2)

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['parameters']['type'] == 2
예제 #42
0
    def test_set_network_speed(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/appium/device/network_speed'),
        )
        assert isinstance(driver.set_network_speed(NetSpeed.LTE), WebDriver)

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['netspeed'] == NetSpeed.LTE
예제 #43
0
    def test_update_settings_string(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/appium/settings'),
        )
        assert isinstance(driver.update_settings({"sample": 'string'}), WebDriver)

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['settings']['sample'] == 'string'
예제 #44
0
    def test_set_power_ac(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/appium/device/power_ac'),
        )
        assert isinstance(driver.set_power_ac(Power.AC_ON), WebDriver)

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['state'] == Power.AC_ON
예제 #45
0
    def test_set_power_capacity(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/appium/device/power_capacity'),
        )
        assert isinstance(driver.set_power_capacity(50), WebDriver)

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['percent'] == 50
예제 #46
0
    def test_lock(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/appium/device/lock'),
            body='{"value": ""}'
        )
        driver.lock(1)

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['seconds'] == 1
예제 #47
0
    def test_set_gsm_signal(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/appium/device/gsm_signal'),
        )
        assert isinstance(driver.set_gsm_signal(GsmSignalStrength.GREAT), WebDriver)

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['signalStrength'] == GsmSignalStrength.GREAT
        assert d['signalStrengh'] == GsmSignalStrength.GREAT
예제 #48
0
 def test_location(self):
     driver = android_w3c_driver()
     httpretty.register_uri(
         httpretty.GET,
         appium_command('/session/1234567890/location'),
         body='{"value": {"latitude": 11.1, "longitude": 22.2, "altitude": 33.3}}'
     )
     val = driver.location
     assert abs(val['latitude'] - 11.1) <= FLT_EPSILON
     assert abs(val['longitude'] - 22.2) <= FLT_EPSILON
     assert abs(val['altitude'] - 33.3) <= FLT_EPSILON
예제 #49
0
    def test_get_formatted_device_time(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/appium/device/system_time'),
            body='{"value": "2019-01-08"}'
        )
        assert driver.get_device_time('YYYY-MM-DD') == '2019-01-08'

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['format'] == 'YYYY-MM-DD'
예제 #50
0
    def test_reset(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/appium/app/reset'),
            body='{"value": ""}'
        )
        result = driver.reset()

        assert {'sessionId': '1234567890'}, get_httpretty_request_body(httpretty.last_request())
        assert isinstance(result, WebDriver)
예제 #51
0
    def test_make_gsm_call(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/appium/device/gsm_call'),
        )
        assert isinstance(driver.make_gsm_call('5551234567', GsmCallActions.CALL), WebDriver)

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['phoneNumber'] == '5551234567'
        assert d['action'] == GsmCallActions.CALL
예제 #52
0
    def test_set_network_connection(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/network_connection'),
            body='{"value": ""}'
        )
        driver.set_network_connection(2)

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['parameters']['type'] == 2
예제 #53
0
    def test_finger_print(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/appium/device/finger_print'),
            # body is None
        )

        assert driver.finger_print(1) is None

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['fingerprintId'] == 1
예제 #54
0
    def test_start_activity(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/appium/device/start_activity'),
            body='{"value": ""}'
        )
        driver.start_activity('com.example.myapp', '.ExampleActivity')

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['appPackage'] == 'com.example.myapp'
        assert d['appActivity'] == '.ExampleActivity'
예제 #55
0
    def test_set_location(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/location')
        )
        assert isinstance(driver.set_location(11.1, 22.2, 33.3), WebDriver)

        d = get_httpretty_request_body(httpretty.last_request())
        assert abs(d['location']['latitude'] - 11.1) <= FLT_EPSILON
        assert abs(d['location']['longitude'] - 22.2) <= FLT_EPSILON
        assert abs(d['location']['altitude'] - 33.3) <= FLT_EPSILON
예제 #56
0
    def test_lock_no_args(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/appium/device/lock'),
            body='{"value": ""}'
        )
        driver.lock()

        d = get_httpretty_request_body(httpretty.last_request())
        assert len(d.keys()) == 1
        assert d['sessionId'] == '1234567890'
예제 #57
0
    def test_find_elements_by_android_data_matcher_no_value(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/elements'),
            body='{"value": []}'
        )
        els = driver.find_elements_by_android_data_matcher()

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['using'] == '-android datamatcher'
        assert d['value'] == '{}'
        assert len(els) == 0
예제 #58
0
    def test_set_clipboard_with_url(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/appium/device/set_clipboard'),
            body='{"value": ""}'
        )
        driver.set_clipboard(appium_bytes(str('http://appium.io/'), 'UTF-8'),
                             ClipboardContentType.URL, 'label for android')

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['content'] == 'aHR0cDovL2FwcGl1bS5pby8='
        assert d['contentType'] == 'url'
        assert d['label'] == 'label for android'
예제 #59
0
    def test_find_elements_by_android_data_matcher(self):
        driver = android_w3c_driver()
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/elements'),
            body='{"value": [{"element-6066-11e4-a52e-4f735466cecf": "element-id1"}, {"element-6066-11e4-a52e-4f735466cecf": "element-id2"}]}'
        )
        els = driver.find_elements_by_android_data_matcher(name='title', args=['title', 'Animation'])

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['using'] == '-android datamatcher'
        value_dict = json.loads(d['value'])
        assert value_dict['args'] == ['title', 'Animation']
        assert value_dict['name'] == 'title'
        assert els[0].id == 'element-id1'
        assert els[1].id == 'element-id2'
예제 #60
0
    def test_find_element_by_android_data_matcher(self):
        driver = android_w3c_driver()
        element = MobileWebElement(driver, 'element_id', w3c=True)
        httpretty.register_uri(
            httpretty.POST,
            appium_command('/session/1234567890/element/element_id/element'),
            body='{"value": {"element-6066-11e4-a52e-4f735466cecf": "child-element-id"}}'
        )
        el = element.find_element_by_android_data_matcher(
            name='title', args=['title', 'Animation'], className='class name')

        d = get_httpretty_request_body(httpretty.last_request())
        assert d['using'] == '-android datamatcher'
        value_dict = json.loads(d['value'])
        assert value_dict['args'] == ['title', 'Animation']
        assert value_dict['name'] == 'title'
        assert value_dict['class'] == 'class name'
        assert el.id == 'child-element-id'