Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwitchToFrame (by ID) not working #281

Open
mathias-aa opened this issue Sep 14, 2015 · 4 comments
Open

SwitchToFrame (by ID) not working #281

mathias-aa opened this issue Sep 14, 2015 · 4 comments

Comments

@mathias-aa
Copy link

Hi,

I'm trying to access a frame by ID using your included fonction called "switchToFrame".
Unfortunatly, the function seems to don't works anymore.
Can you help ?
Thanks in advance !

Here is the testing URL: http://s450668013.onlinehome.fr/dev/frametest/

Here is my Json case :

{
  "type": "script",
  "seleniumVersion": "2",
  "formatVersion": 2,
  "steps": [
    {
      "type": "get",
      "url": "http://s450668013.onlinehome.fr/dev/frametest/"
    },
    {

      "type": "waitForElementPresent",
      "locator": {
        "type": "id",
        "value": "testframe"
      }
    },
    {
      "type": "switchToFrame",
      "identifier": "testframe"
    }
  ],
  "data": {
    "configs": {},
    "source": "none"
  },
  "inputs": [],
  "timeoutSeconds": 60
}
@mathias-aa
Copy link
Author

Someone got it working ? Some help would be much appreciated... thx in advance

@Zarkonnen
Copy link

Have you tried using a numerical index or a name? Also, is this in local or remote playback?

@mathias-aa
Copy link
Author

Using a numerical index works, but this is not applicable for our projects because we use the same tests in different pages where the index of the frame is not the same.
We tried using iframe name, but the same error.
We run the test locally, not remotely.

@Zarkonnen
Copy link

Can you check if running the test remotely you get the same problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants