I am trying to test an app we develop via webpagetest. It is not publicly available, so I cannot provide access, but here’s some details:
- the page has a set of iFrames on it, it is organised through yui framework (I’m not a dev, so that’s as much as I know)
- the link I want to click is inside one of the iframes with a code like below (I removed all other elements). When I click on that link manually, changes occure in another frame, and even if I open menu frame in a separate tab, all of the frames still seem to be connected somehow (I guess, through yui).
- I am trying to click entry-0-1 link, and I have tried all I could think of: click, clickAndWait, sendClickAndWait, exec/execAndWait… I also tried using sleep before trying to click a link, as advised for a similar problem in MS edge webdriver. I tried different browsers. There are no error messages anywhere, but no activity either, test just waits for “up to 420 seconds” to finish.
Any idea what the problem might be? Did anyone ever encounter smth like this? Hard to believe I’m the first one…
If the iframe is in the same domain you can find the elements in the iframe document like this:
They won’t be discoverable in the top document.
Some browsers (Firefox, Edge, IE) allow you to navigate accross frames using the cd() command. Then you can just find it as if it is the main document - $("#entry-0-1"). Chrome doesn’t have this.
If it still doesn’t work, you can post here the script you are trying to run.