Need to edge out the competition for your dream job? Train for certifications today.
# role is the name of the role
# everyone is yes or no to say if everyone has the role
# allAuth is yes or no to say if every authenticated
# user has the role
# users is a LIST of strings, one for each user
# groups is a LIST of strings, one for each group
# create a single role mapping
roleMapping = [role, everyone, allAuth, '|'.join(users), '|'.join(groups)]
# The construct '|'.join(list) converts the list of Strings
# into the single '|' separated string we need.
# put that role within a list.
roleMappings = [rolemapping]
# If we had multiple roles, we would create
# additional roleMapping values, and append
# them to roleMappings, e.g.,
# roleMappings = [role1Mapping role2mapping & roleNmapping]
# finally, create the list the defines the task
# All that remains is to apply this to the application
Open in new window
An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.
One of a set of tools we're offering as a way of saying thank you for being a part of the community.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.