打开网页,然后单击在azure webjob上运行的控制台应用程序中的单选按钮。 [英] Open webpage and click a radio button from console application running on azure webjob.

查看:54
本文介绍了打开网页,然后单击在azure webjob上运行的控制台应用程序中的单选按钮。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试打开一个页面并单击其上的单选按钮并以编程方式关闭页面,该页面在azure webjob中运行。



我有什么尝试过:



我使用Selenium chormedriver它在本地运行但在部署时无法运行。任何人都可以帮助我。

解决方案

嗯......那不行。 WebJobs在您无法控制的计算机上运行,​​并且未安装Chrome。 Selenium可以使用已安装的浏览器和GDI +,而不是单独使用。



如果您在安装了Chrome的虚拟机上设置作业,它将会起作用。

I am trying to open a page and click a radio button on it and close the page programatically which runs in azure webjob.

What I have tried:

I used Selenium chormedriver it runs locally but fail to run when deployed. can anyone help me out from this.

解决方案

Ummm...that's not going to work. WebJobs run on machines that you don't really control and they don't have Chrome installed. Selenium works with the installed browser and GDI+, not on it's own.

It'll work if you setup your job on a VM with Chrome installed on it.


这篇关于打开网页,然后单击在azure webjob上运行的控制台应用程序中的单选按钮。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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