wgnet / webium

Webium is a Page Object pattern implementation library for Python (http://martinfowler.com/bliki/PageObject.html). It allows you to extend WebElement class to your custom controls like Link, Button and group them as pages.
Apache License 2.0
161 stars 37 forks source link

1_basic_google.py: button name has changed to 'btnG' #8

Open tomsem opened 9 years ago

tomsem commented 9 years ago

This sample fails to run properly, as Google has changed the name attribute of the 'search' button from 'btnK' to 'btnG'.

ufranske commented 9 years ago

Hi! It is still "btnK" for my domain (.by) as well as for de, ge, co.uk, ru. It's probably for a domain where you get redirected to. So, I'll probably get it fixed by adding more generic locator.

tomsem commented 9 years ago

Yes, that makes sense.

Also, the samples are not 3.x ready - just minor things, print() is a function, plus filter() returns a generator, not a list. Once I made those changes, it works and should be back compatible with 2.x.

Checking out webium, after attending talk at selconf. Looking good!

Thanks, Tom

On September 16, 2015, at 1:43 PM, Vladimir Franskevich notifications@github.com wrote:

Hi! It is still "btnK" for my domain (.by) as well as for de, ge, co.uk, ru. It's probably for a domain where you get redirected to. So, I'll probably get it fixed by adding more generic locator.

— Reply to this email directly or view it on GitHub.