Not really via the win32 api, but if you're looking for the python equivalent of this selenium use-case, you should check out Splinter ( http://splinter.readthedocs.org/en/latest/).
You'll need phantomjs, or any other compatible web "driver" installed as well though for this to work. I imagine achieving similar functionality with just win32 api will be a pretty massive effort... On Mon, 7 Mar 2016 at 22:15 laurent solano <laurent.sol...@gmail.com> wrote: > Hi, > > For now, i make automation by simulating the keyboard. It's working, but not > satisfying. > > What I want to do is the equivalent in Python win32 of this line of code > (from java selenium) : > > - webDriver.findElement(By.name("valider")).click(); > > - confirmation = > webDriver.findElement(By.xpath("//table[@id='tablename']/tbody/tr[1]/td[2]")).getText(); > > > Using doc.valider.click() and doc.TheForm.valider.click() is not working. > > Using "createtree" method, i can find the first level (frameset), but nothing > under this level. idem with "children" property. > > > Any idea ? > > > Laurent > > ---- > > Tim Roberts, timr at probo.com > <https://mail.python.org/mailman/listinfo/python-win32>: > > Why don't you show us the code you have? The Internet Explorer COM > > object surface is very large, so we don't want to waste time explaining > what you already know. > > > 2016-02-22 9:46 GMT+01:00 laurent solano <laurent.sol...@gmail.com>: > >> Hi, >> >> I'm automating ie webbrowser with win32com module. >> >> I need to locate some xpath elements to manipulate them. Is there a way >> to do it ? >> More or less, i need the same feature than findElement(By.xpath ...) from >> selenium. >> >> Can anyone help ? >> thanks in advance, >> >> Laurent, >> > > _______________________________________________ > python-win32 mailing list > python-win32@python.org > https://mail.python.org/mailman/listinfo/python-win32 >
_______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32