{"id":1257,"date":"2023-11-17T01:02:49","date_gmt":"2023-11-17T01:02:49","guid":{"rendered":"https:\/\/edwheel.com\/?page_id=1257"},"modified":"2023-11-17T02:43:11","modified_gmt":"2023-11-17T02:43:11","slug":"selenium-practice","status":"publish","type":"page","link":"https:\/\/edwheel.com\/index.php\/selenium-practice\/","title":{"rendered":"Selenium Practice"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1257\" class=\"elementor elementor-1257\">\n\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f25a5f8 e-flex e-con-boxed e-con e-parent\" data-id=\"f25a5f8\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;boxed&quot;}\" data-core-v316-plus=\"true\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6e817cd elementor-widget elementor-widget-html\" data-id=\"6e817cd\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n    <title>Form and Elements<\/title>\r\n    <style>\r\n        label {\r\n            font-weight: bold;\r\n            display: block;\r\n            margin-top: 10px;\r\n        }\r\n        .checkbox-label, .radio-label {\r\n            display: inline-block;\r\n            margin-right: 20px;\r\n        }\r\n        table {\r\n            width: 100%;\r\n            border-collapse: collapse;\r\n            margin-top: 20px;\r\n        }\r\n        th, td {\r\n            border: 1px solid #ddd;\r\n            padding: 8px;\r\n            text-align: left;\r\n        }\r\n        th {\r\n            background-color: #f2f2f2;\r\n        }\r\n    <\/style>\r\n<\/head>\r\n<body>\r\n\r\n    <label for=\"name\">Name:<\/label>\r\n    <input type=\"text\" id=\"name\" name=\"name\" style=\"margin-bottom: 20px;\"><br>\r\n\r\n    <label for=\"email\">Email:<\/label>\r\n    <input type=\"text\" id=\"email\" name=\"email\" pattern=\"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$\" style=\"margin-bottom: 20px;\"><br>\r\n\r\n    <label for=\"dropdown\">Dropdown Example:<\/label>\r\n    <select id=\"dropdown\" name=\"dropdown\" style=\"margin-bottom: 20px;\">\r\n        <option value=\"DPValue1\">DPValue 1<\/option>\r\n        <option value=\"DPValue2\">DPValue 2<\/option>\r\n        <option value=\"DPValue3\">DPValue 3<\/option>\r\n    <\/select><br>\r\n\r\n    <label for=\"checkbox\" class=\"checkbox-label\">Checkbox example:<\/label>\r\n    <input type=\"checkbox\" id=\"chbValue1\" name=\"chbValue1\">\r\n    <label for=\"chbValue1\" class=\"checkbox-label\">CHBValue 1<\/label>\r\n    <input type=\"checkbox\" id=\"chbValue2\" name=\"chbValue2\">\r\n    <label for=\"chbValue2\" class=\"checkbox-label\">CHBValue 2<\/label>\r\n    <input type=\"checkbox\" id=\"chbValue3\" name=\"chbValue3\">\r\n    <label for=\"chbValue3\" class=\"checkbox-label\">CHBValue 3<\/label><br>\r\n\r\n    <label for=\"resetButton\">Reset Dummy Button:<\/label>\r\n    <button id=\"resetButton\" onclick=\"resetForm()\" style=\"margin-bottom: 20px;\">Reset Dummy Button<\/button><br>\r\n\r\n    <label for=\"listbox\">Listbox example:<\/label>\r\n    <select id=\"listbox\" name=\"listbox\" multiple style=\"margin-bottom: 20px;\">\r\n        <option value=\"list1\">List 1<\/option>\r\n        <option value=\"list2\">List 2<\/option>\r\n        <option value=\"list3\">List 3<\/option>\r\n        <option value=\"list4\">List 4<\/option>\r\n    <\/select><br>\r\n\r\n    <label for=\"radio\" class=\"radio-label\">Radio Button Example:<\/label>\r\n    <input type=\"radio\" id=\"radio1\" name=\"radio\" value=\"Radio 1\">\r\n    <label for=\"radio1\" class=\"radio-label\">Radio 1<\/label>\r\n    <input type=\"radio\" id=\"radio2\" name=\"radio\" value=\"Radio 2\">\r\n    <label for=\"radio2\" class=\"radio-label\">Radio 2<\/label>\r\n    <input type=\"radio\" id=\"radio3\" name=\"radio\" value=\"Radio 3\">\r\n    <label for=\"radio3\" class=\"radio-label\">Radio 3<\/label><br>\r\n\r\n    <label for=\"sampleLink\"><a href=\"https:\/\/www.google.com\" target=\"_blank\" style=\"text-decoration: none; font-weight: bold; color: blue;\">Sample Link<\/a><\/label><br>\r\n\r\n    <label for=\"countrySuggestion\">Country Name suggestion box:<\/label>\r\n    <input type=\"text\" id=\"countrySuggestion\" name=\"countrySuggestion\" list=\"countries\" autocomplete=\"on\" style=\"margin-bottom: 20px;\">\r\n    <datalist id=\"countries\">\r\n        <!-- Add country names here -->\r\n        <option value=\"Australia\">\r\n        <option value=\"Brazil\">\r\n        <option value=\"Canada\">\r\n        <option value=\"India\">\r\n        <option value=\"United States\">\r\n    <\/datalist><br>\r\n\r\n    <label for=\"switchWindowButton\">Switch Window Example:<\/label>\r\n    <button id=\"switchWindowButton\" onclick=\"openWindow()\" style=\"margin-bottom: 20px;\">Open Window<\/button><br>\r\n\r\n    <script>\r\n        function resetForm() {\r\n            document.getElementById(\"name\").value = \"\";\r\n            document.getElementById(\"email\").value = \"\";\r\n        }\r\n\r\n        function openWindow() {\r\n            window.open(\"https:\/\/www.edwheel.com\");\r\n        }\r\n    <\/script>\r\n\r\n    <label for=\"sampleTable\">Sample Table:<\/label>\r\n    <table id=\"sampleTable\">\r\n        <thead>\r\n            <tr>\r\n                <th>Name<\/th>\r\n                <th>Course<\/th>\r\n                <th>City<\/th>\r\n                <th>Purpose<\/th>\r\n                <th>Amount<\/th>\r\n            <\/tr>\r\n        <\/thead>\r\n        <tbody>\r\n            <tr>\r\n                <td>John Doe<\/td>\r\n                <td>Programming<\/td>\r\n                <td>New York<\/td>\r\n                <td>Education<\/td>\r\n                <td>$500<\/td>\r\n            <\/tr>\r\n            <tr>\r\n                <td>Jane Smith<\/td>\r\n                <td>Data Science<\/td>\r\n                <td>London<\/td>\r\n                <td>Research<\/td>\r\n                <td>$750<\/td>\r\n            <\/tr>\r\n            <tr>\r\n                <td>Bob Johnson<\/td>\r\n                <td>Web Development<\/td>\r\n                <td>Sydney<\/td>\r\n                <td>Career Upgrade<\/td>\r\n                <td>$600<\/td>\r\n            <\/tr>\r\n            <tr>\r\n                <td>Alice Brown<\/td>\r\n                <td>Machine Learning<\/td>\r\n                <td>Tokyo<\/td>\r\n                <td>Innovation<\/td>\r\n                <td>$800<\/td>\r\n            <\/tr>\r\n            <tr>\r\n                <td>Chris Davis<\/td>\r\n                <td>Cybersecurity<\/td>\r\n                <td>Berlin<\/td>\r\n                <td>Security<\/td>\r\n                <td>$700<\/td>\r\n            <\/tr>\r\n        <\/tbody>\r\n    <\/table>\r\n    \r\n    <br>\r\n\r\n    <label for=\"hideShowButton\">Hide\/Show:<\/label>\r\n    <input type=\"text\" placeholder=\"Hide\/Show Example\" id=\"toggleTextbox\" name=\"toggleTextbox\" style=\"display: block; margin-top: 5px;\"> <br>\r\n        <button id=\"hideShowButton\" onclick=\"toggleVisibility()\">Hide\/Show<\/button>\r\n    \r\n    <script>\r\n        function toggleVisibility() {\r\n            var textbox = document.getElementById(\"toggleTextbox\");\r\n            textbox.style.display = (textbox.style.display === \"none\" || textbox.style.display === \"\") ? \"block\" : \"none\";\r\n        }\r\n    <\/script>\r\n\r\n    <!-- ... (previous code) ... -->\r\n\r\n    <label for=\"switchWindowButton\">Switch Window Example:<\/label>\r\n    <button id=\"switchWindowButton\" onclick=\"openNewWindow()\">Open Window<\/button>\r\n    \r\n    <script>\r\n        function openGoogleWindow() {\r\n            window.open(\"https:\/\/www.google.com\", \"_blank\");\r\n        }\r\n    <\/script>\r\n\r\n<!-- ... (remaining code) ... -->\r\n\r\n\r\n    <label for=\"switchTab\">Switch Tab Example:<\/label>\r\n    <button id=\"switchTabButton\" onclick=\"openNewTab()\">Open Tab<\/button>\r\n\r\n    <script>\r\n        function openNewTab() {\r\n            window.open(\"https:\/\/www.google.com\", \"_blank\");\r\n        }\r\n    <\/script>\r\n<!-- ... (remaining code) ... -->\r\n\r\n<!-- ... (previous code) ... -->\r\n\r\n    <label for=\"alertExample\">Switch to Alert Example:<\/label>\r\n    <input type=\"text\" id=\"nameTextbox\" placeholder=\"Your Name please\" style=\"margin-bottom: 10px;\">\r\n    <button onclick=\"showAlert()\">Alert<\/button>\r\n    <button onclick=\"showConfirm()\">Confirm<\/button>\r\n    \r\n    <script>\r\n        function showAlert() {\r\n            var name = document.getElementById(\"nameTextbox\").value;\r\n            alert(\"Hello, \" + name + \"! Good work! You have just clicked an Alert box.\");\r\n        }\r\n    \r\n        function showConfirm() {\r\n            var name = document.getElementById(\"nameTextbox\").value;\r\n            var confirmation = confirm(\"Hello, \" + name + \"! I confirm that you have clicked on Confirm box.\");\r\n            if (confirmation) {\r\n                \/\/ User clicked \"OK\"\r\n                alert(\"You clicked 'OK' in the confirmation box.\");\r\n            } else {\r\n                \/\/ User clicked \"Cancel\"\r\n                alert(\"You clicked 'Cancel' in the confirmation box.\");\r\n            }\r\n        }\r\n    <\/script>\r\n\r\n<!-- ... (remaining code) ... -->\r\n<!-- ... (previous code) ... -->\r\n\r\n<label for=\"mouseHoverExample\">Mouse Hover Example:<\/label>\r\n<button id=\"mouseHoverButton\" onmouseover=\"showTexts()\" onmouseout=\"hideTexts()\">Mouse Hover<\/button>\r\n\r\n<div id=\"hoverTexts\" style=\"margin-top: 10px; display: none;\">\r\n    <p>Mouse Hover 1<\/p>\r\n<\/div>\r\n\r\n<script>\r\n    function showTexts() {\r\n        var hoverTexts = document.getElementById(\"hoverTexts\");\r\n        hoverTexts.style.display = \"block\";\r\n    }\r\n\r\n    function hideTexts() {\r\n        var hoverTexts = document.getElementById(\"hoverTexts\");\r\n        hoverTexts.style.display = \"none\";\r\n    }\r\n<\/script>\r\n\r\n<!-- ... (remaining code) ... -->\r\n\r\n<!-- ... (previous code) ... -->\r\n\r\n<label for=\"iframeExample\">IFrame Example:<\/label>\r\n<button id=\"toggleIframeButton\" onclick=\"toggleIframe()\">IFrame Example<\/button>\r\n\r\n<iframe id=\"exampleIframe\" src=\"https:\/\/selenium-python.readthedocs.io\/\" style=\"display: none; margin-top: 10px; width: 100%; height: 300px;\"><\/iframe>\r\n\r\n<script>\r\n    var iframeVisible = false;\r\n\r\n    function toggleIframe() {\r\n        var exampleIframe = document.getElementById(\"exampleIframe\");\r\n        iframeVisible = !iframeVisible;\r\n\r\n        if (iframeVisible) {\r\n            exampleIframe.style.display = \"block\";\r\n        } else {\r\n            exampleIframe.style.display = \"none\";\r\n        }\r\n    }\r\n<\/script>\r\n\r\n<!-- ... (remaining code) ... -->\r\n<!-- ... (previous code) ... -->\r\n\r\n<!-- ... (previous code) ... -->\r\n\r\n<label for=\"calendarExample\">Calendar Example:<\/label>\r\n<input type=\"date\" id=\"calendarInput\" onchange=\"showSelectedDate()\" style=\"margin-bottom: 10px;\">\r\n<div id=\"selectedDateMessage\" style=\"margin-bottom: 10px;\"><\/div>\r\n\r\n<script>\r\n    function showSelectedDate() {\r\n        var calendarInput = document.getElementById(\"calendarInput\");\r\n        var selectedDateMessage = document.getElementById(\"selectedDateMessage\");\r\n\r\n        var selectedDate = calendarInput.value;\r\n        selectedDateMessage.innerHTML = \"You have selected: \" + selectedDate;\r\n    }\r\n<\/script>\r\n\r\n<!-- ... (remaining code) ... -->\r\n\r\n<\/body>\r\n<\/html>\r\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-0dfe184 e-flex e-con-boxed e-con e-parent\" data-id=\"0dfe184\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;boxed&quot;}\" data-core-v316-plus=\"true\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Form and Elements Name: Email: Dropdown Example: DPValue 1DPValue 2DPValue 3 Checkbox example: CHBValue 1 CHBValue 2 CHBValue 3 Reset Dummy Button: Reset Dummy Button Listbox example: List 1List 2List 3List 4 Radio Button Example: Radio 1 Radio 2 Radio 3 Sample Link Country Name suggestion box: Switch Window Example: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-1257","page","type-page","status-publish","hentry"],"aioseo_notices":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/edwheel.com\/index.php\/wp-json\/wp\/v2\/pages\/1257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/edwheel.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/edwheel.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/edwheel.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/edwheel.com\/index.php\/wp-json\/wp\/v2\/comments?post=1257"}],"version-history":[{"count":34,"href":"https:\/\/edwheel.com\/index.php\/wp-json\/wp\/v2\/pages\/1257\/revisions"}],"predecessor-version":[{"id":1296,"href":"https:\/\/edwheel.com\/index.php\/wp-json\/wp\/v2\/pages\/1257\/revisions\/1296"}],"wp:attachment":[{"href":"https:\/\/edwheel.com\/index.php\/wp-json\/wp\/v2\/media?parent=1257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}