해결됨
does hobbes js used in aem 6.5 for testing or we prefer selenium?
No text available
To test a component with Hobbes.js, define a test case with actions and assertions, set up the test scenario, and run the test using hobbes.runTest.
Example:
hobbes.testCase('MyComponent Test', function (browser, done) {
// Test scenario setup
browser.find('.my-component').click();
// Assertions
browser.assert.elementPresent('.my-component .title');
browser.assert.containsText('.my-component .title', 'Hello, World!');
// Run the test
browser.runTest(done);
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.