[英]Selenium IDE select random name (link)
This week were learning Selenium IDE and our teacher wants us to do different tasks with Selenium on a site called konstnarshuset (will have link down below). 这周正在学习Selenium IDE,我们的老师希望我们在一个名为konstnarshuset的网站上使用Selenium做不同的任务(下面将提供链接)。
He wants us with Selenium IDE to select a random name (link) 他希望我们使用Selenium IDE选择一个随机名称(链接)
http://www.konstnarshuset.org/showroom/konstnarer/ http://www.konstnarshuset.org/showroom/konstnarer/
You can see for yourself if you press the link alot of names will pop up in a line and he wants us to make Selenium pick a random name. 您可以自己查看是否按下链接,一行中会弹出很多名称,他希望我们让Selenium选择一个随机名称。
I´ve googled around alot but cannot seem to find the answer, very grateful if anyone can help me. 我在Google上搜索了很多,但是似乎找不到答案,如果有人可以帮助我,我非常感谢。
by using xpath u can do this 通过使用xpath你可以做到这一点
eg: a//font[text() = 'random name here'] 例如:a // font [text()='这里是随机名称']
follow below ink 跟随下面的墨水
Selenium xpath selector based on the element text 基于元素文本的Selenium Xpath选择器
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.