Skip to content

complexFind must return an element #25

Closed

Description

@bootstraponline

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

Activity

  1. bootstraponline commented on May 18, 2014

    @bootstraponline
    MemberAuthor

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

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

  2. bootstraponline commented on May 18, 2014

    @bootstraponline
    MemberAuthor

    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\"]]]"}
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions