Skip to content

Use .equals() instead of == to compare Strings #49

Closed
@MarkusBernhardt

Description

@MarkusBernhardt

Class FormElement:

       protected boolean isFormElement(WebElement element) {
               if (element == null) {
                       return false;
               }
               String tag = element.getTagName().toLowerCase();
               return tag == "input" || tag == "select" || tag == "textarea" || tag == "button" || tag == "option";
       }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions