[python-win32] equivalent selenium findElement(By.xpath...) with win32com
laurent solano
laurent.solano at gmail.com
Mon Mar 7 06:10:02 EST 2016
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.solano at 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,
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20160307/5af3f1be/attachment.html>
More information about the python-win32
mailing list