Skip to content
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

Closed
SergeyPirogov opened this issue Feb 20, 2017 · 5 comments
Closed

Keep examples up-to-date #97

SergeyPirogov opened this issue Feb 20, 2017 · 5 comments

Comments

@SergeyPirogov
Copy link
Contributor

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

@Ivanello
Copy link

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

@yashaka
Copy link
Owner

yashaka commented Feb 20, 2017 via email

@Ivanello
Copy link

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()

@yashaka
Copy link
Owner

yashaka commented Feb 20, 2017 via email

@yashaka
Copy link
Owner

yashaka commented Feb 20, 2017 via email

yashaka added a commit that referenced this issue Feb 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants