Introduction - To - HTML - CSS
Introduction - To - HTML - CSS
Recap :
We understand =>
it.skip() to skip particular testcase from the execution queue
it.only() to execute only this test case
Cypress >>
>> e2e => sample.cy.js
you can create all your end to end tests
>> fixtures => example.json test data
>> support =>
e2e.js => which will execute before your tests
commands.js => where you can create or overwrite your cypress
commands
>>
cypress.config.js
package.json
as a manual tester how you locate a particular UI component the same way an
automation tool also locate the element where it is present in the web page to do
we need to understand the location of UI component with in the page source .
CTRL+U in the webpage => source code of the web page
// <html>
<html xmlns:fb="http://ogp.me/ns/fb#" lang="en-US">
//<head>
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# zoomvideocall:
http://ogp.me/ns/fb/zoomvideocall#">
//<script> all your JavaScript code exist with in the script tag
<script nonce="1QusFK0aRVac_GqgTbdgyQ">
window.zmGlobalMrktId = "efe685d4a3e74c249bf3c752bf6eb76d" || null;
window.zmGlobalMrktKey = "4AKSIDPKaQF9fIU6+7qa8nLCh+uP6UotxJ2QKJVWrvs=" || null;
window['optimizely'] = window['optimizely'] || [];
window["optimizely"].push({
"type": "tags",
"tags": {
"zm_usr_id_sha256": window.zmGlobalMrktKey || ""
}
});
</script>
<script nonce="1QusFK0aRVac_GqgTbdgyQ">
var optimizely = window["optimizely"] || [];
optimizely.push({"type": "holdEvents"});
</script>
<script nonce="1QusFK0aRVac_GqgTbdgyQ"
src="https://us06st2.zoom.us/static/6.3.34727/js/app/optimizely/helper.min.js"></
script>
<script src="https://explore.zoom.us/docs/js/optimizely/optimizely.js"
nonce="1QusFK0aRVac_GqgTbdgyQ"></script>
<script nonce="1QusFK0aRVac_GqgTbdgyQ">
(function () {
var optimizely = window["optimizely"];
if (!optimizely || !optimizely.get) return;
optimizely.get('utils').waitUntil(function () {
// wait until default defined OneTrust OptanonWrapper function is defined
return typeof window.OptanonWrapper !== 'undefined';
}).then(function () {
(function (origFunc) {
window.OptanonWrapper = function () {
origFunc && origFunc();
var oneTrustConsentId = OneTrust.getDataSubjectId();
var activeGroups = (OnetrustActiveGroups || '').split(',');
activeGroups = activeGroups.filter(function (v) {
return v !== '';
});
// send Optimizely events when Performance consent is given
if (activeGroups.indexOf('C0002') > -1) {
optimizely.push({
"type": "tags",
"tags": {
"onetrust_id": oneTrustConsentId || ""
}
});
optimizely.push({"type": "sendEvents"});
}
};
})(window.OptanonWrapper);
});
})();
</script>
//page title will be captured by title tag
HTML Tags :
<html>
<hader> </header>
<title> </title>
<body>
<script> ... </script>
//page body
</body>
</html>
The <!DOCTYPE html> declaration defines that this document is an HTML5 document
The <html> element is the root element of an HTML page
The <head> element contains meta information about the HTML page
The <title> element specifies a title for the HTML page (which is shown in the
browser's title bar or in the page's tab)
The <body> element defines the document's body, and is a container for all the
visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists,
etc.
The <h1> element defines a large heading
The <p> element defines a paragraph
href="https://example.cypress.io"
<html lang="en">
<meta charset="utf-8">
<nav class="navbar navbar-inverse">
<div class="container">
Note:
The link's destination is specified in the href attribute.
HTML Images:
<img> </img>
The source file (src), alternative text (alt), width, and height are provided as
attributes:
CSS :