如何使用 IEHtmlWindow 小部件更改 html 表单 [英] how use IEHtmlWindow widget change html form

查看:42
本文介绍了如何使用 IEHtmlWindow 小部件更改 html 表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部

我想用wx.lib.iewin开发一个软.软包括一个即框架和三个按钮.当我单击一个按钮时,ie 框架可以单击google.com"这样的 url,然后单击另一个按钮可以在 google.com 的搜索输入表单中设置一些值.最后一个按钮可以点击 google.com 的搜索按钮.

i want to use wx.lib.iewin develop a soft. the soft include an ie frame and three buttons. when i click one button , the ie frame can click an url like 'google.com', and click another button can set some value in google.com 's search input form. and last button can click google.com 's search button.

我知道如何浏览谷歌网址.

i know how to navigate google url.

    self.ie = iewin.IEHtmlWindow(self.panel_left,pos=wx.DefaultPosition, size=(465,560),style=wx.html.HW_SCROLLBAR_AUTO)
    self.ie.AddEventSink(self.panel_left)
    self.ie.Navigate('http://google.com')

但是'我如何获得 ie 的文档.并更改 dom 的值.

but' how i can get the ie 's document . and change dom's value.

推荐答案

文档对象应该可以作为 self.ie.ctrl.Document 访问.

The document object should be accessible as self.ie.ctrl.Document.

这篇关于如何使用 IEHtmlWindow 小部件更改 html 表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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