Angular Test-Driven Development by 2017

Angular Test-Driven Development by 2017

Author:2017
Language: eng
Format: mobi, epub
Publisher: Packt Publishing


Tip

Remember that it's only the input or texture that may have some value and needs you to clear/reset the value.

When we need to trigger a click event on any button, link, or image, after selecting a specific elementFinder object, we will need to chain the click() method, and it will act like a real click on that element:

element.(Locator).click(); elementObj.click(); // will trigger the click event as the selected element chaining it.

Sometimes, we might need to trigger the submit() method for form submission. In that case, we have to chain the submit() method with the selected element. The selected element should be a form element:

element.(Locator).submit(); elementObj.submit(); // Will trigger the submit for the form element as submit() work only for form element.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.