{"id":3156,"date":"2023-07-05T17:12:52","date_gmt":"2023-07-05T09:12:52","guid":{"rendered":"https:\/\/www.vmlogin.us\/help\/?p=3156"},"modified":"2023-08-14T13:05:02","modified_gmt":"2023-08-14T05:05:02","slug":"the-page-whether-loading-complete","status":"publish","type":"post","link":"https:\/\/www.vmlogin.us\/help\/api\/the-page-whether-loading-complete.html","title":{"rendered":"API Ask if the current page has loaded"},"content":{"rendered":"\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Ask if the current page has loaded using the API:<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Request Url:<\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/profile\/readyState<\/mark><\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Request Type: POST<\/p>\n\n\n\n<figure class=\"wp-block-table has-medium-font-size\"><table><tbody><tr><td><strong><strong>Name<\/strong><\/strong><\/td><td><strong><strong>Type<\/strong><\/strong><\/td><td><strong>Description<\/strong><\/td><td><strong>required<\/strong><\/td><\/tr><tr><td>profileId<\/td><td>string<\/td><td>Browser profile ID<\/td><td>true<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Body<br>x-www-form-urlencoded<\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">{\n    \"profileId\": \"17D40B01-566A-4E3F-888A-C40A404668B8\"\n}\n\n<\/mark><\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Response<\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">{\n    \"status\": \"OK\",\n    \"value\": \"loading\"\n}\n<\/mark><\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Or<\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">{\n    \"status\": \"OK\",\n    \"value\": \"complete\"\n}<\/mark><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><br><\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Note:<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">(1) When using the local interface, you need to Enable browser automation settings on the VMLogin client and save the settings. Please refer to the tutorial&nbsp;<strong><a href=\"https:\/\/www.vmlogin.us\/help\/api\/browser-automation-interface.html\" target=\"_blank\" rel=\"noreferrer noopener\">\"Launch the browser automation port\"<\/a><\/strong>;<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">(2) For profiled, please refer to the tutorial&nbsp;<strong><a rel=\"noreferrer noopener\" href=\"https:\/\/www.vmlogin.us\/help\/api\/where-is-profile-id.html\" target=\"_blank\">\"Where is the profile ID\"<\/a><\/strong> or use the&nbsp;<strong><a href=\"https:\/\/www.vmlogin.us\/help\/api\/get-list-of-available-browser-profile.html\">profile\/list interface<\/a><\/strong>&nbsp;to get all profileId.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"531\" src=\"https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/07\/9-readystate.png\" alt=\"\" class=\"wp-image-3157\" srcset=\"https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/07\/9-readystate.png 800w, https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/07\/9-readystate-300x199.png 300w, https:\/\/www.vmlogin.us\/help\/wp-content\/uploads\/2023\/07\/9-readystate-768x510.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Ask if the current page has loaded using the API: Reque [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-3156","post","type-post","status-publish","format-standard","hentry","category-api"],"_links":{"self":[{"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/posts\/3156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/comments?post=3156"}],"version-history":[{"count":4,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/posts\/3156\/revisions"}],"predecessor-version":[{"id":3429,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/posts\/3156\/revisions\/3429"}],"wp:attachment":[{"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/media?parent=3156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/categories?post=3156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/tags?post=3156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}