-
-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep examples up-to-date #97
Comments
Yes first of all locator in PageObject example is wrong, it should be:
this work correct |
The locator should be actually self.results = ss(".srg .g")
Which other examples do not work?
They should.
The Google may not work sometimes because it's google:-) I believe it does
not make sense to bother with correctness of Google examples all the time.
Also there a lot of examples in
https://github.com/yashaka/selene/tree/master/tests/examples. They all are
up to date because are executed on Jenkins and pass. No any need to create
separate project for them. We just need to ensure link to them exists in
readme.
There is also this project with initial examples:
https://github.com/yashaka/talks/tree/master/easy-automation-py
It also has even video with detailed walk through. I just have not had time
to edit and publish it.
In March I will do this and everyone will be more than happy.
Also there will be gitbook about selene... I plan to do this also somewhere
in march.
Also one other example project is developing. The port of this one:
https://github.com/yashaka/talks/tree/master/widgets-workshop but in Python
+ Selene. It will be available soon.
For some special cases like saucelabs setup, browserstack setup, allure
setup - It would really make sense to have separate examples-project on
github...
I am just not sure where to put them. I was planning to put them somewhere
on https://github.com/automician/snippets/
But still unsure...
…On Mon, Feb 20, 2017, 4:45 AM Ivanello ***@***.***> wrote:
Yes first of all locator in PageObject example is wrong, it should be:
class SearchResultsPage(object):
def __init__(self):
self.results = ss("span.st")
this work correct
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#97 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AB3snoqIWZN-oD5lej9lsg6VyV3DOfRrks5reWCggaJpZM4MF9AJ>
.
|
this cycle work properly with chrome only with sleep? like this
|
The example is correct. It just sometimes need additional explicit waiting
for js loading.
look at this project
https://github.com/yashaka/talks/tree/master/easy-automation-py
and you'll find the answer how to fix it.
And send me your Gmail to [email protected], I will share you that
mentioned video. It has the detailed explanation of how it should work.
…On Mon, Feb 20, 2017, 8:18 AM Ivanello ***@***.***> wrote:
for task_text in ["1", "2", "3"]:
s("#new-todo").set_value(task_text).press_enter()
this cycle work properly with chrome only with sleep? like this
for task_text in ["1", "2", "3"]:
s("#new-todo").set_value(task_text)
sleep(2)
s("#new-todo").press_enter()
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#97 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AB3snhS-BZBbtmkg4ppV-hPtJAozgsh8ks5reZKZgaJpZM4MF9AJ>
.
|
sleep is bad idea nevertheless ;-)
…On Mon, Feb 20, 2017, 8:31 AM Iakiv Kramarenko ***@***.***> wrote:
The example is correct. It just sometimes need additional explicit waiting
for js loading.
look at this project
https://github.com/yashaka/talks/tree/master/easy-automation-py
and you'll find the answer how to fix it.
And send me your Gmail to ***@***.***, I will share you that
mentioned video. It has the detailed explanation of how it should work.
On Mon, Feb 20, 2017, 8:18 AM Ivanello ***@***.***> wrote:
for task_text in ["1", "2", "3"]:
s("#new-todo").set_value(task_text).press_enter()
this cycle work properly with chrome only with sleep? like this
for task_text in ["1", "2", "3"]:
s("#new-todo").set_value(task_text)
sleep(2)
s("#new-todo").press_enter()
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#97 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AB3snhS-BZBbtmkg4ppV-hPtJAozgsh8ks5reZKZgaJpZM4MF9AJ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
People argue that examples provided in README is not up-to-date, in some places locators are wrong. Sometimes they can not just download test project run and start diving into Python + selene tests. Probably we should create example project for this and keep it up-to date, so for people that are not familiar with Selene will be easier to start
The text was updated successfully, but these errors were encountered: