atributi sintakse
id #idname
classname .classname
Customized with any attribute tagname(attribute==value)
tagnames [value='Confirm']
atributi se pisu kao: [value='Confirm']
nth-child tr td:nth-child(2)
.search-keyword
space ako imamo stavljamo . izmedju
umesto -
input(type='search')
form input
Navigating to URL
Through command line, Cypress runs in headless
Update configurations in [Link] which over rides existing behaviour
Cypress supports CSS selectors only
We can see what happened on every step with scr and error messages in cypress
how to handle click, type, text ()
Iterating over the array of web elements using each
Cypressi s asynchronus in nature and there is no guarantee in sequence of execution, but cy takes care of
Promise comes with rejection, resolved, pending
.then => ukoliko zelimo da sacekamo da sve 3 faze prodju
Non cypress commands can't resolve promise by themselves. We need to manually resolve it by then ()
Aliasing to reuse locators
Cypress auto accepts alerts and pop ups
Cypress have capability browser [Link]:alert is the event which get fired on alert open
So you are firing the event through cypress to get access to that alert
Cypress have ability to manipulate the DOM
Yes you can traverse to sibiling with next() and it works only on get
Mouse hover are not supported in cypress. Alternatively use Jquery or force click
./node_modules/.bin/cypress run --browser firefox