Open ravi005e opened 3 years ago
additional method /**
@param elementPair Sticking with standard selenium locator */ protected findElements(elementPair: KeyValuePair): ElementArrayFinder { const selector: string = elementPair.selector; const locatorType: LocatorType = elementPair.locatorType;
switch (locatorType) { case LocatorType.JQUERY: return protractor.$$(selector); default: return element.all(this.fetchBy(elementPair)); } }
protected fetchBy(elementPair: KeyValuePair): any { const selector: string = elementPair.selector; const locatorType: LocatorType = elementPair.locatorType;
}
2021-01-17 19:57:54.669 - ResultsPage:[INFO]: fetching element with locator [className], selector [rc] <-- here, this is what I'm passing
(node:6284) UnhandledPromiseRejectionWarning: NoSuchElementError: No element found using locator: By(css selector, .rc) <-- here at F:\protractor_framework_jasmine\node_modules\protractor\built\element.js:814:27 at processTicksAndRejections (internal/process/taskqueues.js:93:5)Error at ElementArrayFinder.applyAction (F:\protractor_framework_jasmine\node_modules\protractor\built\element.js:459:27)
at ElementArrayFinder