Protractor: Finding Element by Div Text January 2, 2024 by Tarik I would recommend you to use by.cssContainingText element(by.cssContainingText('.col-sm-8', 'Account Information'))