selenium2.0的switchTo().frame(0)的问题
来源:学生作业帮 编辑:作业帮 分类:英语作业 时间:2024/10/04 06:23:08
selenium2.0的switchTo().frame(0)的问题
碰到了一个页面,有两个iframe(实际上我不确定是几个),iframe都没有id,name之类,我每次都只能获取到一个iframe里的信息,随后我尝试着写下了switchTo().frame(0).getxxxx.
然后就能获得另一个iframe里的内容了
请问,switchTo().frame(0)
1:切换下一个iframe吗?
2:形参里的数值代表什么?
3:如果页面含有多个iframe,我想切换到下下个iframe,是这么写的么switchTo().frame(1)?
4:如果是的话,那么这个iframe切换的顺序是什么?
小弟在此谢过
碰到了一个页面,有两个iframe(实际上我不确定是几个),iframe都没有id,name之类,我每次都只能获取到一个iframe里的信息,随后我尝试着写下了switchTo().frame(0).getxxxx.
然后就能获得另一个iframe里的内容了
请问,switchTo().frame(0)
1:切换下一个iframe吗?
2:形参里的数值代表什么?
3:如果页面含有多个iframe,我想切换到下下个iframe,是这么写的么switchTo().frame(1)?
4:如果是的话,那么这个iframe切换的顺序是什么?
小弟在此谢过
1、2、3的回答:
你对方法frame(index)的index理解是对的,具体如下:
Select a frame by its (zero-based) index.That is,if a page has three frames,
the first frame would be at index "0",the second at index "1" and the third at
index "2".Once the frame has been selected,all subsequent calls on the
WebDriver interface are made to that frame.
Parameters:
index (zero-based) index
Returns:
This driver focused on the given frame
Throws:
NoSuchFrameException
- If the frame cannot be found
第4的回答:(看下面这个)
jarvi.iteye.com/blog/1450525
By the way:你说的iframe都没有id,name之类,请把这个iframe在firebug里的源码截图上来看一下
你对方法frame(index)的index理解是对的,具体如下:
Select a frame by its (zero-based) index.That is,if a page has three frames,
the first frame would be at index "0",the second at index "1" and the third at
index "2".Once the frame has been selected,all subsequent calls on the
WebDriver interface are made to that frame.
Parameters:
index (zero-based) index
Returns:
This driver focused on the given frame
Throws:
NoSuchFrameException
- If the frame cannot be found
第4的回答:(看下面这个)
jarvi.iteye.com/blog/1450525
By the way:你说的iframe都没有id,name之类,请把这个iframe在firebug里的源码截图上来看一下
fabric和frame的区别
船体制图的问题webs at every 4th frame stiffeners fb100*10 ah36
Java 的Frame和Panel的区别
Frame
in the right frame of mind 的意思
关于in a peaceful frame of mind的感想.
AE崩溃问题我是AE初学者,用的是CS4.我在渲染一个模板的时候,第一次用了Frame rate是30,Resoluti
BIOS中的"frame buffer size"的值是不是设置的越大越好?
Draft Common Frame of Reference是法律上的术语,翻译成汉语是什么意思
英语翻译Replacement 和 Exchange 在这里有什么区别?我觉得都是更换的意思.Frame/Bezel 框
英语翻译准确的翻译:搜索框.除了这些之外,还有最佳翻译吗?Searches the frame Search box
电动车行业的zoom 原文是is it steel frame?no zoom fork?is it li ion ba