-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1e849fd2.df7329ae.js
1 lines (1 loc) · 12.6 KB
/
1e849fd2.df7329ae.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{216:function(e,t,a){"use strict";a.d(t,"a",(function(){return p})),a.d(t,"b",(function(){return d}));var r=a(0),n=a.n(r);function i(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function b(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?o(Object(a),!0).forEach((function(t){i(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function s(e,t){if(null==e)return{};var a,r,n=function(e,t){if(null==e)return{};var a,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)a=i[r],t.indexOf(a)>=0||(n[a]=e[a]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}var c=n.a.createContext({}),l=function(e){var t=n.a.useContext(c),a=t;return e&&(a="function"==typeof e?e(t):b(b({},t),e)),a},p=function(e){var t=l(e.components);return n.a.createElement(c.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.a.createElement(n.a.Fragment,{},t)}},h=n.a.forwardRef((function(e,t){var a=e.components,r=e.mdxType,i=e.originalType,o=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),p=l(a),h=r,d=p["".concat(o,".").concat(h)]||p[h]||u[h]||i;return a?n.a.createElement(d,b(b({ref:t},c),{},{components:a})):n.a.createElement(d,b({ref:t},c))}));function d(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var i=a.length,o=new Array(i);o[0]=h;var b={};for(var s in t)hasOwnProperty.call(t,s)&&(b[s]=t[s]);b.originalType=e,b.mdxType="string"==typeof e?e:r,o[1]=b;for(var c=2;c<i;c++)o[c]=a[c];return n.a.createElement.apply(null,o)}return n.a.createElement.apply(null,a)}h.displayName="MDXCreateElement"},97:function(e,t,a){"use strict";a.r(t),a.d(t,"frontMatter",(function(){return o})),a.d(t,"metadata",(function(){return b})),a.d(t,"rightToc",(function(){return s})),a.d(t,"default",(function(){return l}));var r=a(3),n=a(7),i=(a(0),a(216)),o={id:"navigate-refresh",title:"Navigate - Refresh"},b={unversionedId:"actions/web/navigate-refresh",id:"actions/web/navigate-refresh",isDocsHomePage:!1,title:"Navigate - Refresh",description:"Purpose",source:"@site/docs\\actions\\web\\navigate-refresh.md",slug:"/actions/web/navigate-refresh",permalink:"/docs/actions/web/navigate-refresh",version:"current",sidebar:"docs",previous:{title:"Navigate - Forward",permalink:"/docs/actions/web/navigate-forward"},next:{title:"Select Element by Index",permalink:"/docs/actions/web/select-element-by-index"}},s=[{value:"Purpose",id:"purpose",children:[]},{value:"Scenarios",id:"scenarios",children:[{value:"Scenario 1",id:"scenario-1",children:[]},{value:"Scenario 2",id:"scenario-2",children:[]}]},{value:"Test Cases",id:"test-cases",children:[{value:"Test case for Scenario 1",id:"test-case-for-scenario-1",children:[]},{value:"Test Case for Scenario 2",id:"test-case-for-scenario-2",children:[]}]},{value:"Additional Tips for this Action",id:"additional-tips-for-this-action",children:[{value:"Error Handling for Navigate - Refresh",id:"error-handling-for-navigate---refresh",children:[]}]}],c={rightToc:s};function l(e){var t=e.components,a=Object(n.a)(e,["components"]);return Object(i.b)("wrapper",Object(r.a)({},c,a,{components:t,mdxType:"MDXLayout"}),Object(i.b)("h2",{id:"purpose"},"Purpose"),Object(i.b)("p",null,"This action simulates the browser's ",Object(i.b)("strong",{parentName:"p"},"refresh")," button, allowing the current page to reload. It is equivalent to pressing the ",Object(i.b)("strong",{parentName:"p"},"refresh")," button in the browser, which is useful for updating or reloading page content."),Object(i.b)("hr",null),Object(i.b)("h2",{id:"scenarios"},"Scenarios"),Object(i.b)("h3",{id:"scenario-1"},"Scenario 1"),Object(i.b)("h4",{id:"title"},"Title:"),Object(i.b)("p",null,"Refresh the current page",Object(i.b)("br",{parentName:"p"}),"\n","Test case link: ",Object(i.b)("a",Object(r.a)({parentName:"p"},{href:"https://zeuz.zeuz.ai/Home/ManageTestCases/Edit/TEST-8002/#parentHorizontalTab2"}),"TEST-8002 Refresh the Page")),Object(i.b)("h4",{id:"scenario-overview"},"Scenario Overview:"),Object(i.b)("p",null,"A user is interacting with a webpage that displays dynamic content and needs to reload the page to update its content. This scenario demonstrates using the 'Navigate - Refresh' action to perform this operation."),Object(i.b)("h4",{id:"steps-to-follow"},"Steps to Follow:"),Object(i.b)("ol",null,Object(i.b)("li",{parentName:"ol"},"Open a webpage with either dynamic or static content."),Object(i.b)("li",{parentName:"ol"},"Use the 'Navigate - Refresh' action to reload the current page."),Object(i.b)("li",{parentName:"ol"},"Verify that the page reloads successfully.")),Object(i.b)("h4",{id:"actions"},"Actions:"),Object(i.b)("ul",null,Object(i.b)("li",{parentName:"ul"},Object(i.b)("strong",{parentName:"li"},"Input parameters"),":",Object(i.b)("ul",{parentName:"li"},Object(i.b)("li",{parentName:"ul"},"Field: ",Object(i.b)("inlineCode",{parentName:"li"},"navigate")),Object(i.b)("li",{parentName:"ul"},"Selenium action: ",Object(i.b)("inlineCode",{parentName:"li"},"refresh"))))),Object(i.b)("h4",{id:"expected-result"},"Expected Result:"),Object(i.b)("ul",null,Object(i.b)("li",{parentName:"ul"},"The browser reloads the current page, and the content is updated.")),Object(i.b)("h4",{id:"common-errors-and-fixes"},"Common Errors and Fixes:"),Object(i.b)("ul",null,Object(i.b)("li",{parentName:"ul"},Object(i.b)("strong",{parentName:"li"},"Error"),": The page fails to reload.",Object(i.b)("ul",{parentName:"li"},Object(i.b)("li",{parentName:"ul"},Object(i.b)("strong",{parentName:"li"},"Fix"),": Ensure the browser is not in a state that prevents reloading, such as due to an unresponsive script or blocked network request.")))),Object(i.b)("hr",null),Object(i.b)("h3",{id:"scenario-2"},"Scenario 2"),Object(i.b)("h4",{id:"title-1"},"Title:"),Object(i.b)("p",null,"Refresh a page that has unsaved changes",Object(i.b)("br",{parentName:"p"}),"\n","Test case link: ",Object(i.b)("a",Object(r.a)({parentName:"p"},{href:"https://zeuz.zeuz.ai/Home/ManageTestCases/Edit/TEST-8002/#parentHorizontalTab2"}),"TEST-8002 Refresh the Page")),Object(i.b)("h4",{id:"scenario-overview-1"},"Scenario Overview:"),Object(i.b)("p",null,"A user has unsaved changes on a webpage and attempts to reload the page. This scenario demonstrates the behavior when the 'Navigate - Refresh' action is performed in such cases."),Object(i.b)("h4",{id:"steps-to-follow-1"},"Steps to Follow:"),Object(i.b)("ol",null,Object(i.b)("li",{parentName:"ol"},"Open a webpage containing a form or editable fields."),Object(i.b)("li",{parentName:"ol"},"Make changes to the form without saving them."),Object(i.b)("li",{parentName:"ol"},"Use the 'Navigate - Refresh' action to reload the page."),Object(i.b)("li",{parentName:"ol"},"Verify that the browser prompts for unsaved changes (if applicable).")),Object(i.b)("h4",{id:"actions-1"},"Actions:"),Object(i.b)("ul",null,Object(i.b)("li",{parentName:"ul"},Object(i.b)("strong",{parentName:"li"},"Input parameters"),":",Object(i.b)("ul",{parentName:"li"},Object(i.b)("li",{parentName:"ul"},"Field: ",Object(i.b)("inlineCode",{parentName:"li"},"navigate")),Object(i.b)("li",{parentName:"ul"},"Selenium action: ",Object(i.b)("inlineCode",{parentName:"li"},"refresh"))))),Object(i.b)("h4",{id:"expected-result-1"},"Expected Result:"),Object(i.b)("ul",null,Object(i.b)("li",{parentName:"ul"},"The browser reloads the page and may prompt about unsaved changes, depending on the webpage's implementation.")),Object(i.b)("h4",{id:"common-errors-and-fixes-1"},"Common Errors and Fixes:"),Object(i.b)("ul",null,Object(i.b)("li",{parentName:"ul"},Object(i.b)("strong",{parentName:"li"},"Error"),": Unsaved changes are lost without any warning.",Object(i.b)("ul",{parentName:"li"},Object(i.b)("li",{parentName:"ul"},Object(i.b)("strong",{parentName:"li"},"Fix"),": Confirm the webpage's behavior before performing the refresh action to prevent loss of data.")))),Object(i.b)("hr",null),Object(i.b)("h2",{id:"test-cases"},"Test Cases"),Object(i.b)("h3",{id:"test-case-for-scenario-1"},"Test case for Scenario 1"),Object(i.b)("h4",{id:"objective"},"Objective:"),Object(i.b)("p",null,"Ensure that reloading the current page works correctly."),Object(i.b)("h4",{id:"steps-to-perform"},"Steps to perform:"),Object(i.b)("ol",null,Object(i.b)("li",{parentName:"ol"},"Open a browser and visit a webpage."),Object(i.b)("li",{parentName:"ol"},"Use the action with inputs:",Object(i.b)("ul",{parentName:"li"},Object(i.b)("li",{parentName:"ul"},"Field: ",Object(i.b)("inlineCode",{parentName:"li"},"navigate")),Object(i.b)("li",{parentName:"ul"},"Selenium action: ",Object(i.b)("inlineCode",{parentName:"li"},"refresh")))),Object(i.b)("li",{parentName:"ol"},"Verify that the page reloads successfully.")),Object(i.b)("h4",{id:"expected-outcome"},"Expected Outcome:"),Object(i.b)("ul",null,Object(i.b)("li",{parentName:"ul"},"The browser reloads the current page.")),Object(i.b)("hr",null),Object(i.b)("h3",{id:"test-case-for-scenario-2"},"Test Case for Scenario 2"),Object(i.b)("h4",{id:"objective-1"},"Objective:"),Object(i.b)("p",null,"Ensure that reloading a page with unsaved changes prompts a warning, if applicable."),Object(i.b)("h4",{id:"steps-to-perform-1"},"Steps to Perform:"),Object(i.b)("ol",null,Object(i.b)("li",{parentName:"ol"},"Open a browser and navigate to a webpage containing a form."),Object(i.b)("li",{parentName:"ol"},"Enter data into the form without saving it."),Object(i.b)("li",{parentName:"ol"},"Use the action with inputs:",Object(i.b)("ul",{parentName:"li"},Object(i.b)("li",{parentName:"ul"},"Field: ",Object(i.b)("inlineCode",{parentName:"li"},"navigate")),Object(i.b)("li",{parentName:"ul"},"Selenium action: ",Object(i.b)("inlineCode",{parentName:"li"},"refresh")))),Object(i.b)("li",{parentName:"ol"},"Verify that the browser reloads the page and prompts for unsaved changes, if applicable.")),Object(i.b)("h4",{id:"expected-outcome-1"},"Expected Outcome:"),Object(i.b)("ul",null,Object(i.b)("li",{parentName:"ul"},"The page reloads, and a prompt for unsaved changes appears if supported.")),Object(i.b)("hr",null),Object(i.b)("h2",{id:"additional-tips-for-this-action"},"Additional Tips for this Action"),Object(i.b)("ul",null,Object(i.b)("li",{parentName:"ul"},"Use this action to reload pages with dynamic content to ensure the updates are reflected."),Object(i.b)("li",{parentName:"ul"},"Verify the webpage's behavior with unsaved changes to prevent data loss.")),Object(i.b)("hr",null),Object(i.b)("h3",{id:"error-handling-for-navigate---refresh"},"Error Handling for Navigate - Refresh"),Object(i.b)("h4",{id:"common-problems-and-their-fixes"},"Common Problems and Their Fixes"),Object(i.b)("ol",null,Object(i.b)("li",{parentName:"ol"},Object(i.b)("p",{parentName:"li"},Object(i.b)("strong",{parentName:"p"},"Problem"),": The page fails to reload.",Object(i.b)("br",{parentName:"p"}),"\n",Object(i.b)("strong",{parentName:"p"},"Possible Cause"),": The browser is unresponsive, or network issues have occurred.",Object(i.b)("br",{parentName:"p"}),"\n",Object(i.b)("strong",{parentName:"p"},"How to Fix"),": Ensure the browser is responsive and the network connection is stable.")),Object(i.b)("li",{parentName:"ol"},Object(i.b)("p",{parentName:"li"},Object(i.b)("strong",{parentName:"p"},"Problem"),": Data loss occurs when the page is refreshed.",Object(i.b)("br",{parentName:"p"}),"\n",Object(i.b)("strong",{parentName:"p"},"Possible Cause"),": The webpage does not display a prompt for unsaved changes.",Object(i.b)("br",{parentName:"p"}),"\n",Object(i.b)("strong",{parentName:"p"},"How to Fix"),": Test the webpage's behavior to ensure it handles unsaved changes before performing the refresh action.")),Object(i.b)("li",{parentName:"ol"},Object(i.b)("p",{parentName:"li"},Object(i.b)("strong",{parentName:"p"},"Problem"),": Browser settings prevent the refresh action from being executed.",Object(i.b)("br",{parentName:"p"}),"\n",Object(i.b)("strong",{parentName:"p"},"Possible Cause"),": Certain browser extensions or settings may prevent the refresh action from being executed.",Object(i.b)("br",{parentName:"p"}),"\n",Object(i.b)("strong",{parentName:"p"},"How to Fix"),": Disable conflicting extensions or adjust browser settings to enable the refresh action."))))}l.isMDXComponent=!0}}]);