如何编写可以在网页上浏览和操作的自动化机器人 [英] How to code an automated bot that can browse and do operations on a webpage

查看:1108
本文介绍了如何编写可以在网页上浏览和操作的自动化机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要对需要执行以下操作的机器人进行编码:

I need to code a bot that needs to do the following:

转到jsp页面并按
搜索:

Go to a jsp page and search for something by:


  • 1:在搜索框上写点东西

  • 2:点击搜索按钮(提交按钮)

  • 3:单击生成的按钮/链接之一(具有不同输出的相同jsp页面)

  • 4:获取新页面的整个html(相同) jsp页面有不同的输出)

  • 1: writing something on a search box
  • 2: clicking the search button(submit button)
  • 3: clicking one of the the resulting buttons/links(same jsp page with different output)
  • 4: get the entire html of the new page(same jsp page with different output)

第四个可以通过屏幕抓取完成,我认为我不需要帮助。但我需要一些指导,从1到3做选项。任何链接或只是一些关键字,将帮助我谷歌了解它将不胜感激。我计划用java做这个。

The 4th one can be done with screen scraping and I do not think I need help with it. But I need some guidance to do the options from 1 to 3. Any links or just some keyword that will help me google to learn about it will be appreciated. I plan to do this with java.

推荐答案

也许这不是你想要的,但你可以试试selenium: http://seleniumhq.org/

Maybe it's not what you want, but you can try selenium : http://seleniumhq.org/

这是一个Web应用程序测试系统。

It's a web application testing system.

这篇关于如何编写可以在网页上浏览和操作的自动化机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆