[python-win32] equivalent selenium findElement(By.xpath...) with win32com

Tim Roberts timr at probo.com
Mon Mar 7 15:47:45 EST 2016


laurent solano wrote:
> 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.

You still haven't shown us any of your code.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list