SeleniumBuilder / se-builder

Legacy Selenium Builder Project
Other
215 stars 104 forks source link

SwitchToFrame (by ID) not working #281

Open mathias-aa opened 9 years ago

mathias-aa commented 9 years ago

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 commented 9 years ago

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

Zarkonnen commented 9 years ago

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

mathias-aa commented 9 years ago

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 commented 9 years ago

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