EPAM carreer page should open, with a visible logo on the page.
return expect(epamLogo.isDisplayed()).to.eventually.be.true;
The "Keyword or job ID" input field should be visible.
return expect(keyWordOrIDInput.isDisplayed()).to.eventually.be.true;
The "Location" dropdown should be visible.
return expect(locationDropdown.isDisplayed()).to.eventually.be.true;
The "Skills" selector should be visible.
return expect(skillsSelector.isDisplayed()).to.eventually.be.true;
The "Find" button should be visible.
return expect(findButton.isDisplayed()).to.eventually.be.true;
When the "Test Automation engineer" keyword is typed into the search field.
return keyWordOrIDInput.sendKeys(keyWord);
And the "Find" button is clicked.
findButton.click();
driver.sleep(6000);
return driver.wait(function () {
return driver.findElement(by.css(searchResultHeadingLocator)).isDisplayed();
});
Then the search result list heading should contain the searched searchterm.
return expect(driver.findElement(by.css(searchResultHeadingLocator)).getText()).to.eventually.include(keyWord.toUpperCase());