Skip to content

uia_type_string should properly escape the 'backslash' character #284

@jmoody

Description

@jmoody

reproduced on

to reproduce
requires iOS > 5
requires launching the app with instruments

#1. start a console
$ be rake sim7
#2. launch with Instruments
> start_test_server_in_background
#3. navigate to text tab
> touch_tabbar_item('Text')
#4. make the top text field the first responder
> touch("view marked:'top tf'")
#5. enter this text
> keyboard_enter_text "hello \\ world"
expected

to see "hello \ world" in the top text field

found
"hello  world"
regression

since 0.9.162 - probably since uia_type_string was introduced.

notes

only appears when running with Instruments. this is strictly a problem with escaping the '' character when passing text to uia_type_string.

thanks to prat...@thoughtworks.com for reporting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions