在Google上搜索时获取前10个结果的网址

时间:2014-01-07 10:19:23

标签: selenium-rc

您好我正在使用Selenium RC With Java

我在google上搜索了一个术语“Selenium”。

现在我想知道www.seleniumhq.org从搜索结果页面的前10个结果中获得了多少结果。

我尝试了以下步骤:1。启动Mozilla Firefox 2.导航到“www.google.co.in/”3。在搜索框中输入术语“Selenium”4。单击“搜索”按钮5.现在我想要从前10个结果中了解结果页面上特定网址“www.seleniumhq.org”的出现次数。

请为上面的场景提供java代码(Selenium RC)。

0 个答案:

没有答案