Skip to content

complexFind must return an element #25

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
bootstraponline opened this issue May 18, 2014 · 2 comments · Fixed by #26
Closed

complexFind must return an element #25

bootstraponline opened this issue May 18, 2014 · 2 comments · Fixed by #26
Labels

Comments

@bootstraponline
Copy link
Member

complexFind must return an element. Currently a string is returned.

I expect the following method signature:

public WebDriver complexFind(String complex) {

Instead it's

public String complexFind(String[] complex) {

@bootstraponline
Copy link
Member Author

// expected
WebElement element = complexFind("["scroll",[[3,"Animation"]],[[7,"Animation"]]]")

// actual
String something = complexFind(new String[]{""scroll"","[[3,"Animation"]]","[[7,"Animation"]]"});

@bootstraponline
Copy link
Member Author

Here's what the server sees:

// Works (Ruby bindings):
// debug: Request received with params: ["scroll",[[3,"animation"]],[[7,"animation"]]]

// Fails (Java bindings):
// Request received with params: {"selector":"[\"scroll\",[[3,\"Animation\"]],[[7,\"Animation\"]]]"}

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant