网站自动化的最佳方法? [英] Best method for Website Automation?

查看:29
本文介绍了网站自动化的最佳方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我重新表述这个问题...

Let me rephrase the question...

场景如下:作为保险代理人,您经常与多个保险网站合作.对于每个网站,我都需要登录并拉出一个客户端.我希望自动化这个过程.

Here's the scenario: As an insurance agent you are constantly working with multiple insurance websites. For each website I need to login and pull up a client. I am looking to automate this process.

我目前有一个为 iMacros 构建的解决方案,但需要下载/安装.

I currently have a solution built for iMacros but that requires a download/installation.

我正在寻找一种使用 .NET 框架的解决方案,它允许用户提供他们的登录凭据和有关客户端的信息,我将能够为他们自动执行此过程.

I'm looking for a solution using the .NET framework that will allow the user to provide their login credentials and information about a client and I will be able to automate this process for them.

这将涉及每个特定网站的知识,这很好,我将拥有所有这些信息.

This will involve knowledge of each specific website which is fine, I will have all of that information.

我希望这个过程能够在后台发生,然后在执行操作后向用户启动网站.

I would like for this process to be able to happen in the background and then launch the website to the user once the action is performed.

推荐答案

使用 Watin.它是一个开源的 .NET 库,用于自动化 IE 和 Firefox.这比操纵原始 HTTP 请求或破解 WebBrowser 控件来执行您想要的操作要容易得多,并且您可以从控制台应用程序或服务运行它,因为您提到这不是 WinForms 应用程序.

Use Watin. It's an open source .NET library to automate IE and Firefox. It's a lot easier than manipulating raw HTTP requests or hacking the WebBrowser control to do what you want, and you can run it from a console app or service, since you mentioned this wouldn't be a WinForms app.

如果需要,您还可以使浏览器窗口不可见,因为您提到仅在特定时间向用户显示此内容.

You can also make the browser window invisible if needed, since you mentioned only showing this to the user at a certain point.

这篇关于网站自动化的最佳方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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