Recommend using $
and $$
shortcuts instead of element(by.css())
and element.all(by.css())
respectively.
The rule is disabled by default.
👎 Any use of the following patterns are considered warnings:
element(by.css(".class"));
element.all(by.css(".class"));
element(by.id("id")).element(by.css(".class"));
element(by.id("id")).all(by.css(".class"));
👍 The following patterns are not warnings:
$(".class");
$$(".class");
element(by.id("id")).$(".class");
element(by.id("id")).$$(".class");