After successfully locating the button on the row using its value stored in the "title" HTML attribute, I am now faced with the task of passing a dynamic value to this attribute. To achieve this, I have declared it as a variable. However, I am unsure about how to effectively pass this variable into the CSS Selector.
Below is the CSS Selector code in question:
btnMoreNewRole = element(by.css("//input[@title='Access']/ancestor::tr/td[16]"))
In the aforementioned CSS Selector, there is a need to pass the value of the HTML attribute title as a variable. Any assistance or guidance on how to accomplish this would be greatly appreciated. Thank you in advance.