Tim, I fear your proposal does not solve my problem. With ie = win32com.client.Dispatch("InternetExplorer.Application") : - how can I assign this "ie" object with my already running browser ? - how can I use function like ".find_by_xpath" with thie ie.object.
I think splinter is a good way, just need to know how to connect it to my browser (i don't want to log in automaticaly, so i need to log in manually and after take control of my browser.) any ideas ? Laurent. ------------------------------ > > Message: 3 > Date: Wed, 9 Mar 2016 10:12:18 -0800 > From: Tim Roberts <t...@probo.com> > To: Python-Win32 List <python-win32@python.org> > Subject: Re: [python-win32] equivalent selenium > findElement(By.xpath...) with win32com > Message-ID: <56e06782.3010...@probo.com> > Content-Type: text/plain; charset="utf-8" > > laurent solano wrote: > > > > I had already identified and look at the documentation about splinter. > > Sound great, but there is one missing feature : i need to automate an > > already open browser, where i'm already log in. > > > > With win32com, i can do it. below my code: > > You're doing this is in a somewhat unusual way. The COM server you're > accessing here is the Windows shell, when then indirectly finds a web > browser and opens it. Have you looked at the IEC module? > > At the lowest level, you can do > ie = win32com.client.Dispatch("InternetExplorer.Application") > > You can then use ie.Document to get the IHTMLDocument2 interface for the > visible tab. It's then possible to query through the DOM, although not > with the usual DOM methods. > > -- > Tim Roberts, t...@probo.com > Providenza & Boekelheide, Inc. > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > python-win32 mailing list > python-win32@python.org > https://mail.python.org/mailman/listinfo/python-win32 > > > ------------------------------ > > End of python-win32 Digest, Vol 156, Issue 5 > ******************************************** >
_______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32