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

any waitForJs function to wait some javascript code returns true #4

Open
ypapax opened this issue Jan 12, 2015 · 0 comments
Open

any waitForJs function to wait some javascript code returns true #4

ypapax opened this issue Jan 12, 2015 · 0 comments

Comments

@ypapax
Copy link

ypapax commented Jan 12, 2015

Is there any function that returns only after some js code return true.

func waitForRedButton(session *webdriver.Session){
     session.waitForJs(`$('#redButton').css('color')=='red'`)
     // next code should be executed only after `#redButton` becomes red
}
@ypapax ypapax changed the title any waitForJs function to wait some javascript code become true any waitForJs function to wait some javascript code returns true Jan 12, 2015
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

1 participant