Search code examples
htmltestingautomated-testsrobotframeworkweb-testing

How to select a frame with no name or id in robot framework?


I need to select a frame but it has no name or id. How do it do it?

<frame src="sampleSrouce" scrolling="yes" frameborder="0" />
<frame src="sampleSource2" scrolling="yes" frameborder="0" />

Thanks!


Solution

  • So basically, I found out that the solution is quite simple. I just used an xpath that points to the second frame:

    xpath=/html/frameset/frame[2]