Skip to content

[Bug]: Cannot switch to the newly opened tab #2098

@ferry-luo

Description

@ferry-luo

English Translation

In the YAML flow below, clicking the 经济活动/收支管理 module opens a new tab. The next step uses aiAct to visit the given URL, but Midscene actually opens the URL in the old tab instead of switching to the new tab.

I could not find any documented field that forces a switch to the new tab. forceSameTabNavigation does not solve the problem I described.

Reproduce link: none.
Reproduce steps: none.


Version

- name: 事前申请
    flow:
      - ai: 在左上角找到'经济活动/收支管理'模块,点击它,会出现新标签页。
      - aiAct: 访问这个url,http://192.168.10.166:8085/a-front/expendManegement/advanceApply
      - ai: 在'请选择业务类型'栏目,点'一般经费申请'

实际现象是在旧标签页访问了给定的url。
官网没看到有啥字段可以控制切换到新标签页。forceSameTabNavigation不能解决我描述的问题

Details

Image

Reproduce link

Reproduce Steps

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions