I need to wait until an IFrame's body loads up all the items within it. I wrote code that worked great for IE, but in FF and Chrome it does not work. So right now in IE I'm doing this:
MyBody = MyWebDoc.FindSingle(".//iframe[@id='MyID']/body[@valid='true'],120000)I noticed in all browsers another way I could get it to work involving the Location attribute. The location in my case is always 8,8 until it is loaded, at which point it becomes 0,0.
I saw an example of RxPath using location for a button, and this example didn't use an "@" before the location, and I tried this in my code, but it never found the item even though the "location.x=0" is what is shown in Spy when it appears. Even in Spy itself, I can edit the Xpath and it will not find it.
So if I change my code to this:
MyBody = MyWebDoc.FindSingle(".//iframe[@id='MyID']/body[location.x=0],120000)It doesn't find it.
In Spy, If I type this out, it always throws an "@" in front of the location attribute, and still doesn't find it.
Does this not work for body or web elements?
For reference, please see: http://www.ranorex.com/support/user-gui ... xpath.html
and look in the "attributes" section for this line: