I'm fairly new to protractor and writing test cases.I tried to run this test case as shown below which is to open a page and click on "Home" which then takes back to another page added as expectation. The content of conf.js is:
exports.config = { framework: 'jasmine', seleniumAddress: 'http://localhost:4444/wd/hub', specs: [ '*navigating_spec.js' ], useAllAngular2AppRoots: true }; similarly the test case:
// spec.js describe('Navigatiion', function() { it('GNavigate to search page and back to dashboard', function() { browser.get('http://appspot.com/#/pages/search'); element( by.ccs('/pages/dashboard')).click(); var EC = protractor.ExpectedConditions; // Waits for the URL to contain 'foo'. browser.wait(EC.urlContains('http://appspot.com/#/pages/dashboard'), 1000000); }); }); The click part is not working, and I do not know which locator to use for this "Home" button The text in application under text is shown below in image: HTML text When I run this test case, it does not do the click part and ends with error as process exited with error 1. Suggestions are appreciated is appreciated.
Just something to add, The conf.js file is working with another test, so configuration file should not be an issue. I just dont know which locator to use base don html code