控制使用Python浏览器,在Mac(Firefox或Safari浏览器或Chrome / IUM或Opera)
问题描述:
我正在寻找一种方式来编程控制使用Python在Mac上的浏览器(即非IE)。
I'm looking for a way to programatically control a browser on a Mac (i.e. not IE) using Python.
我需要包括以下链接,如果在一个页面存在的元素检查和提交表单的动作。
The actions I need include following links, checking if elements exist in a page, and submitting forms.
你会推荐哪一个解决方案?
Which solution would you recommend?
答
看一看PyShell(延期PyXPCOM):
Take a look at PyShell (an extension to PyXPCOM):