0

I have an external browser plugin (which is blackbox to me). This plugin tries to fill values to input fields of html page (on load. I want to make a program, which is able if the external program filled values properly.

So what I want to do is to open an url from my python program in a browser. On load of this page is automatically executed the plugin and tries to insert values. After that I want to find specific input fields and resolve, whether they are filled correctly or not in the current instance of the browser and page.

Is there any way to do such thing using python (standard or 3rd party) modules? Could you recommend me any?

(Note: I also want to build exe file using cx_freeze, so the best would be, if the module does not depend on external files)

Thanks.

dakov
  • 1,039
  • 2
  • 12
  • 33

1 Answers1

0

I would suggest using PyQt or Selenium.

Community
  • 1
  • 1
warvariuc
  • 57,116
  • 41
  • 173
  • 227
  • PyQt can access the browser the way I need? And if I understand properly, selenium requires extra "Server" file to communicate with, wouldn't it be a problem, when build with cx_freeze? – dakov Oct 22 '13 at 10:40
  • I haven't used Selenium, but i worked with PyQt. You open a web page in a widget, load a URL in it, then you can access the DOM and execute Javascript on the page. – warvariuc Oct 22 '13 at 11:10