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

Unable set visibility attribute for a step #1032

Closed
uarlouski opened this issue Oct 16, 2020 · 0 comments · Fixed by #1273
Closed

Unable set visibility attribute for a step #1032

uarlouski opened this issue Oct 16, 2020 · 0 comments · Fixed by #1273
Assignees
Labels
bug Something isn't working
Milestone

Comments

@uarlouski
Copy link
Member

Describe the bug
Visibility attribute is always "ALL" for the following steps

When I save `$attributeName` attribute value of element located `$locator` to $scopes variable `$variableName`
When I set '$attributeName' attribute value of the element by $locator to the $scopes variable '$variableName'

Code

public void saveAttributeValueOfElementByLocatorToVariable(String attributeName, Locator locator,
            Set<VariableScope> scopes, String variableName)
    {
        locator.getSearchParameters().setVisibility(Visibility.ALL);
        Optional<Object> value = baseValidations.assertElementExists("The element to extract the attribute", locator)
                                                .map(element -> getAssertedAttributeValue(element, attributeName));
        putVariable(scopes, variableName, value);
    }

Expected behavior
End user should be able to set desired visibility for the locator in the steps mentioned above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant