我有一个带视图的开关,比如“switch_view”。我需要更改它以进行自动化测试。我该怎么做呢?我到现在的工作是:
def switch(switch_view)
# Get the value of the switch
switch_state = (frankly_map(switch_view, 'isON')).first
switch_state[0] = !switch_state[0]
touch(switch_view)
end
正如你所看到的,这只是我迄今为止尝试过的所有东西的合并,那个该死的开关仍然没有移动。请帮帮我。