Closed ferpasri closed 1 year ago
The variable policyAttributes that allow users to declare a List of attributes to identify and close policy popups is a Map that does not support the declaration of multiple attributes using the same Map.Key.
policyAttributes
https://github.com/TESTARtool/TESTAR_dev/blob/3db158a5aba4ea21c4154c76909f2e1beba5b70e/testar/src/org/testar/protocols/WebdriverProtocol.java#L104
For example, declaring two policy buttons using the same key (class) will only enable the usage of the last value (btn-accept):
class
btn-accept
policyAttributes.put("class", "btn-cancel"); policyAttributes.put("class", "btn-accept");
A possible solution for this improvement is to allow multiple declarations of values for the same key is to use a MultiMap:
Multimap<String, String> policyAttributes = ArrayListMultimap.create();
Solved with #332
The variable
policyAttributes
that allow users to declare a List of attributes to identify and close policy popups is a Map that does not support the declaration of multiple attributes using the same Map.Key.https://github.com/TESTARtool/TESTAR_dev/blob/3db158a5aba4ea21c4154c76909f2e1beba5b70e/testar/src/org/testar/protocols/WebdriverProtocol.java#L104
For example, declaring two policy buttons using the same key (
class
) will only enable the usage of the last value (btn-accept
):A possible solution for this improvement is to allow multiple declarations of values for the same key is to use a MultiMap: