{"id":270473,"date":"2015-12-16T16:41:38","date_gmt":"2015-12-16T13:41:38","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=270473"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=270473","title":{"rendered":"Selenium \u0434\u043b\u044f Python. \u0413\u043b\u0430\u0432\u0430 6. \u041e\u0431\u044a\u0435\u043a\u0442\u044b \u0421\u0442\u0440\u0430\u043d\u0438\u0446\u044b"},"content":{"rendered":"<p>       \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u043d\u0435\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Selenium \u0434\u043b\u044f Python.<br \/>  \u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 <a href=\"http:\/\/selenium-python.readthedocs.org\/page-objects.html\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<h2>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435:<\/h2>\n<p>  1. <a href=\"http:\/\/habrahabr.ru\/post\/248559\/\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/a><br \/>  2. <a href=\"http:\/\/habrahabr.ru\/post\/250921\/\">\u041f\u0435\u0440\u0432\u044b\u0435 \u0448\u0430\u0433\u0438<\/a><br \/>  3. <a href=\"http:\/\/habrahabr.ru\/post\/250947\/\">\u041d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f<\/a><br \/>  4. <a href=\"http:\/\/habrahabr.ru\/post\/250975\/\">\u041f\u043e\u0438\u0441\u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432<\/a><br \/>  5. <a href=\"http:\/\/habrahabr.ru\/post\/273089\/\">\u041e\u0436\u0438\u0434\u0430\u043d\u0438\u044f<\/a><br \/>  6. \u041e\u0431\u044a\u0435\u043a\u0442\u044b \u0421\u0442\u0440\u0430\u043d\u0438\u0446\u044b<br \/>  7. WebDriver API<br \/>  8. \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435: \u0427\u0430\u0441\u0442\u043e \u0417\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0412\u043e\u043f\u0440\u043e\u0441\u044b<\/p>\n<h2>6. \u041e\u0431\u044a\u0435\u043a\u0442\u044b \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b<\/h2>\n<p>  \u042d\u0442\u043e\u0442 \u0440\u0430\u0437\u0434\u0435\u043b \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c \u0432 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u041e\u0431\u044a\u0435\u043a\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0432 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0448 \u0442\u0435\u0441\u0442.<\/p>\n<p>  \u041f\u043b\u044e\u0441\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b:<\/p>\n<ul>\n<li>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0430\u0442\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u0441\u0440\u0435\u0434\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0442\u0435\u0441\u0442-\u043a\u0435\u0439\u0441\u043e\u0432<\/li>\n<li>\u0423\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u043a\u043e\u0434\u0430<\/li>\n<li>\u0415\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u043a\u0430 \u0432\u0441\u0435\u0433\u043e \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435<\/li>\n<\/ul>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>6.1 \u0422\u0435\u0441\u0442-\u043a\u0435\u0439\u0441<\/h2>\n<p>  \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d \u0442\u0435\u0441\u0442-\u043a\u0435\u0439\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0449\u0435\u0442 \u0441\u043b\u043e\u0432\u043e \u043d\u0430 python.org \u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u043d\u0435\u043a\u0438\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043d\u0430\u0439\u0434\u0435\u043d.<\/p>\n<pre><code class=\"python\">import unittest from selenium import webdriver import page  class PythonOrgSearch(unittest.TestCase):     &quot;&quot;&quot;A sample test class to show how page object works&quot;&quot;&quot;      def setUp(self):         self.driver = webdriver.Firefox()         self.driver.get(&quot;http:\/\/www.python.org&quot;)      def test_search_in_python_org(self):         &quot;&quot;&quot;         Tests python.org search feature. Searches for the word &quot;pycon&quot; then verified that some results show up.         Note that it does not look for any particular text in search results page. This test verifies that         the results were not empty.         &quot;&quot;&quot;          #Load the main page. In this case the home page of Python.og.         main_page = page.MainPage(self.driver)         #Checks if the word &quot;Python&quot; is in title         assert main_page.is_title_matches(), &quot;python.org title doesn't match.&quot;         #Sets the text of search textbox to &quot;pycon&quot;         main_page.search_text_element = &quot;pycon&quot;         main_page.click_go_button()         search_results_page = page.SearchResultsPage(self.driver)         #Verifies that the results page is not empty             assert search_results_page.is_results_found(), &quot;No results found.&quot;      def tearDown(self):         self.driver.close()  if __name__ == &quot;__main__&quot;:     unittest.main() <\/code><\/pre>\n<p>  <\/p>\n<h2>6.2 \u041a\u043b\u0430\u0441\u0441\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b<\/h2>\n<p>  \u041f\u0430\u0442\u0442\u0435\u0440\u043d \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043d\u0430\u043c\u0435\u0440\u0435\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0435\u0431-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u0421\u043b\u0435\u0434\u0443\u044f \u044d\u0442\u043e\u0439 \u0442\u0435\u0445\u043d\u0438\u043a\u0435, \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u043e\u0439 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u0438 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439.<\/p>\n<p>  page.py \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\">from element import BasePageElement from locators import MainPageLocators  class SearchTextElement(BasePageElement):     &quot;&quot;&quot;This class gets the search text from the specified locator&quot;&quot;&quot;      #The locator for search box where search string is entered     locator = 'q'   class BasePage(object):     &quot;&quot;&quot;Base class to initialize the base page that will be called from all pages&quot;&quot;&quot;      def __init__(self, driver):         self.driver = driver   class MainPage(BasePage):     &quot;&quot;&quot;Home page action methods come here. I.e. Python.org&quot;&quot;&quot;      #Declares a variable that will contain the retrieved text     search_text_element = SearchTextElement()      def is_title_matches(self):         &quot;&quot;&quot;Verifies that the hardcoded text &quot;Python&quot; appears in page title&quot;&quot;&quot;         return &quot;Python&quot; in self.driver.title      def click_go_button(self):         &quot;&quot;&quot;Triggers the search&quot;&quot;&quot;         element = self.driver.find_element(*MainPageLocators.GO_BUTTON)         element.click()   class SearchResultsPage(BasePage):     &quot;&quot;&quot;Search results page action methods come here&quot;&quot;&quot;      def is_results_found(self):         # Probably should search for this text in the specific page         # element, but as for now it works fine         return &quot;No results found.&quot; not in self.driver.page_source <\/code><\/pre>\n<p>  <\/p>\n<h2>6.3 \u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b<\/h2>\n<p>  element.py \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"python\">from selenium.webdriver.support.ui import WebDriverWait   class BasePageElement(object):     &quot;&quot;&quot;Base page class that is initialized on every page object class.&quot;&quot;&quot;      def __set__(self, obj, value):         &quot;&quot;&quot;Sets the text to the value supplied&quot;&quot;&quot;         driver = obj.driver         WebDriverWait(driver, 100).until(             lambda driver: driver.find_element_by_name(self.locator))         driver.find_element_by_name(self.locator).send_keys(value)      def __get__(self, obj, owner):         &quot;&quot;&quot;Gets the text of the specified object&quot;&quot;&quot;         driver = obj.driver         WebDriverWait(driver, 100).until(             lambda driver: driver.find_element_by_name(self.locator))         element = driver.find_element_by_name(self.locator)         return element.get_attribute(&quot;value&quot;) <\/code><\/pre>\n<p>  <\/p>\n<h2>6.4 \u041b\u043e\u043a\u0430\u0442\u043e\u0440\u044b<\/h2>\n<p>  \u041e\u0434\u0438\u043d \u0438\u0437 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u2014 \u044d\u0442\u043e \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438 \u043b\u043e\u043a\u0430\u0442\u043e\u0440\u0430 \u0438\u0437 \u043c\u0435\u0441\u0442\u0430, \u0433\u0434\u0435 \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f. \u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043b\u043e\u043a\u0430\u0442\u043e\u0440\u044b \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0442 \u043e\u0434\u043d\u043e\u043c\u0443 \u043a\u043b\u0430\u0441\u0441\u0443.<\/p>\n<p>  locators.py \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\">from selenium.webdriver.common.by import By  class MainPageLocators(object):     &quot;&quot;&quot;A class for main page locators. All main page locators should come here&quot;&quot;&quot;     GO_BUTTON = (By.ID, 'submit')  class SearchResultsPageLocators(object):     &quot;&quot;&quot;A class for search results locators. All search results locators should come here&quot;&quot;&quot;     pass <\/code><\/pre>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/273115\/\"> http:\/\/habrahabr.ru\/post\/273115\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u043d\u0435\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Selenium \u0434\u043b\u044f Python.<br \/>  \u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 <a href=\"http:\/\/selenium-python.readthedocs.org\/page-objects.html\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<h2>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435:<\/h2>\n<p>  1. <a href=\"http:\/\/habrahabr.ru\/post\/248559\/\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/a><br \/>  2. <a href=\"http:\/\/habrahabr.ru\/post\/250921\/\">\u041f\u0435\u0440\u0432\u044b\u0435 \u0448\u0430\u0433\u0438<\/a><br \/>  3. <a href=\"http:\/\/habrahabr.ru\/post\/250947\/\">\u041d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f<\/a><br \/>  4. <a href=\"http:\/\/habrahabr.ru\/post\/250975\/\">\u041f\u043e\u0438\u0441\u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432<\/a><br \/>  5. <a href=\"http:\/\/habrahabr.ru\/post\/273089\/\">\u041e\u0436\u0438\u0434\u0430\u043d\u0438\u044f<\/a><br \/>  6. \u041e\u0431\u044a\u0435\u043a\u0442\u044b \u0421\u0442\u0440\u0430\u043d\u0438\u0446\u044b<br \/>  7. WebDriver API<br \/>  8. \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435: \u0427\u0430\u0441\u0442\u043e \u0417\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0412\u043e\u043f\u0440\u043e\u0441\u044b<\/p>\n<h2>6. \u041e\u0431\u044a\u0435\u043a\u0442\u044b \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b<\/h2>\n<p>  \u042d\u0442\u043e\u0442 \u0440\u0430\u0437\u0434\u0435\u043b \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c \u0432 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u041e\u0431\u044a\u0435\u043a\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0432 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0448 \u0442\u0435\u0441\u0442.<\/p>\n<p>  \u041f\u043b\u044e\u0441\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b:<\/p>\n<ul>\n<li>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0430\u0442\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u0441\u0440\u0435\u0434\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0442\u0435\u0441\u0442-\u043a\u0435\u0439\u0441\u043e\u0432<\/li>\n<li>\u0423\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u043a\u043e\u0434\u0430<\/li>\n<li>\u0415\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u043a\u0430 \u0432\u0441\u0435\u0433\u043e \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435<\/li>\n<\/ul>\n<p>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-270473","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/270473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=270473"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/270473\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=270473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=270473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=270473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}