Skip to content

Navigation with iframe #3

@Crash--

Description

@Crash--

during recording session, if you go to a web page that loads iframe, we'll record all the navigation done by the iframes.

In some scenario, we'll want to follow iframe navigation but not in all cases, exemple:

  • If I go on twake drive :
  • top window === drive
  • but I have an iframe with the data-proxy.
  • If I click on record, I've at the end:
  - name: "Recording - qvalmori-dataproxy.twake.linagora.com"
version: "1.0.0"
description: "Auto-generated from recording"
steps:
  - action: navigate
    url: "https://qvalmori-dataproxy.twake.linagora.com/?intent=xxx"
  - action: navigate
    url: "https://qvalmori-dataproxy.twake.linagora.com/?intent=xxx"
  - action: click
    target:
      hints:
        - type: text_contains
          value: "adminis"
        - type: landmark_context
          value: "main"
  - action: click
    target:
      hints:
        - type: text_contains
          value: "adminis"
        - type: landmark_context
          value: "main"
  - action: click
    target:
      hints:
        - type: text_contains
          value: "adminis"
        - type: landmark_context
          value: "main"
  - action: click
    target:
      hints:
        - type: text_contains
          value: "creer"
        - type: class_contains
          value: "MuiButton-label"
        - type: landmark_context
          value: "complementary"

So if I replay the scenario it doesn't work, since the script goes to the dataproxy at first and then will never find the right (aka drive) content to interact with.

Perhaps the solution is to ignore iframe navigation as long as the URL does not interact with it. However, as soon as the user clicks on an iframe, we must track the navigation within it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions