使用selenium(Java)单击文件中存在的多个选项中的一个链接

时间:2013-08-12 06:31:26

标签: webdriver selenium-webdriver anchor file-handling

我有一个文件可供阅读,如下所示

contains    a   @href   ENVIRONMENT*somexyzsite=####

contains    a   @href   javascript:XYZ  VolunteerRegistration

contains   a    @href   javascript:ABC  VolunteerNavigation %20 REGISTRATION_LINK

contains  a @href   javascript:PQR  VolunteerNavigation VOL_REGISTRATION_LINK

=   a   @title  New Volunteer Signup

加载特定网页后,我需要转到上面提到的注册链接之一。 我还需要检查上面指定的链接是否适用于该网页? 如果适用,那么我需要导航到该链接

我不明白我们如何使用webdriver继续这个。

任何人都可以帮我开始使用这个功能吗?

0 个答案:

没有答案