{"id":271489,"date":"2016-01-01T08:32:02","date_gmt":"2016-01-01T05:32:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=271489"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=271489","title":{"rendered":"\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 AngularJS Protractor \u0438\u0437 C # \u0438 Java"},"content":{"rendered":"<br \/>\n<h1>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h1>\n<p>  \u041a\u0430\u043a \u043b\u043e\u0437\u0443\u043d\u0433 \u043d\u0430 <a href=\"https:\/\/angularjs.org\/\"> Angular.org <\/a> \u0433\u043e\u0440\u0434\u043e\u0441\u0442\u044c\u044e \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442:<br \/>  <em>Angular is what HTML would have been, had it been designed for applications <\/em>, \u0447\u0442\u043e \u0432 \u0432\u043e\u043b\u044c\u043d\u043e\u043c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0435 \u0437\u0432\u0443\u0447\u0438\u0442 \u0442\u0430\u043a: <em>Angular \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u0435\u043c, \u0447\u0435\u043c \u0431\u044b\u043b \u0431\u044b HTML \u2014 \u0435\u0441\u043b\u0438 \u0431\u044b \u043e\u043d \u0441 \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u0431\u044b\u043b \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f (\u0432\u0435\u0431 -) \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439<\/em>. AngularJS \u0431\u044b\u043b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u0441 \u043d\u0443\u043b\u044f, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u0442\u044c \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u043c. \u041d\u043e \u043c\u043d\u043e\u0433\u0438\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 Selenium \u0445\u043e\u0442\u044f\u0442 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 Java \u0438\u043b\u0438 C # \u043a\u043e\u0434\u043e\u0432\u0443\u044e \u0431\u0430\u0437\u0443 \u0438 \u043d\u0430\u0432\u044b\u043a\u0438 \u043d\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u044e\u0442 \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043d\u0430 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 AngularJS SPA \u0438 MVVM \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u0447\u0442\u043e <a href=\"https:\/\/angular.github.io\/protractor\/#\/\">Protractor<\/a>, \u043b\u0438\u0434\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u0433\u0438\u0439 AngularJS, \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 JavaScript \u0442\u043e\u0436\u0435. <\/p>\n<p>  \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, Protractor \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u044f\u0437\u044b\u043a\u0438 \u2014 \u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043f\u043e\u0434\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 <a href=\"https:\/\/code.google.com\/p\/selenium\/wiki\/JsonWireProtocol\">JsonWire<\/a> \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u0441\u043d\u043e\u0432\u0430\u043d Selenium WebDriver, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u0441\u0435\u0433\u043e <a href=\"https:\/\/code.google.com\/p\/selenium\/wiki\/JsonWireProtocol#\/session\/:sessionId\/execute\">\u043e\u0434\u0438\u043d<\/a> \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.<\/p>\n<p>  \u0417\u0430 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0431\u044b\u043b \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d \u0438 \u0440\u0430\u0437\u0432\u0438\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 <a href=\"https:\/\/github.com\/sergueik\/powershell_selenium\/tree\/master\/csharp\/protractor-net\">protractor-net<\/a> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439 \u043f\u043e\u0440\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 Protractor <a href=\"https:\/\/github.com\/angular\/protractor\/blob\/master\/lib\/clientsidescripts.js\">https:\/\/github.com\/angular\/protractor\/blob\/master\/lib\/clientsidescripts.js<\/a> \u0438\u0437 Javascript \u043d\u0430 C# \u0438 \u0437\u0430\u0442\u0435\u043c \u0434\u0440\u0443\u0433\u043e\u0439 <a href=\"https:\/\/github.com\/sergueik\/selenium_java\/tree\/master\/protractor\">\u043f\u0440\u043e\u0435\u043a\u0442<\/a>, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0438\u0439 \u0442\u0443 \u0436\u0435 \u0437\u0430\u0434\u0430\u0447\u0443 \u0438\u0437 Java.<br \/>  \u0414\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d \u0441\u0430\u0439\u0442 <a href=\"http:\/\/www.way2automation.com\">http:\/\/www.way2automation.com<\/a> \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u0440\u0435\u0434\u0438 \u043f\u0440\u043e\u0447\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u043b\u044f AngularJS, <br \/>  <a href=\"http:\/\/www.way2automation.com\/angularjs-protractor\/banking\">http:\/\/www.way2automation.com\/angularjs-protractor\/banking<\/a>.<\/p>\n<p>  \u0442\u0435\u0441\u0442\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u00ab\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u043d\u044b\u0435\u00bb \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u00ab\u043a\u043b\u0438\u0435\u043d\u0442\u0430\u00bb \u0438 \u00ab\u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430\u00bb \u0431\u0430\u043d\u043a\u0430 \u00abXYZ Bank\u00bb \u043f\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u0431\u0430\u043b\u0430\u043d\u0441\u0430, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0443\u0447\u0435\u0442\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043f\u043b\u0430\u0442\u0435\u0436\u0435\u0439 \u0438 \u0442.\u043f. \u2014 \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u043e \u043f\u0440\u043e\u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0438\u043c\u0435\u044e\u0449\u0438\u0435\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u044b. \u0412\u044b\u0437\u043e\u0432 \u0442\u0435\u0441\u0442\u043e\u0432 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u0435\u043d \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 C# \u0438 \u0438\u0437 Java<\/p>\n<h1>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430<\/h1>\n<p>  <\/p>\n<h2>C#<\/h2>\n<p>  \u00ab\u041a\u043b\u0438\u0435\u043d\u0442\u00bb \u0437\u0430\u0445\u043e\u0434\u0438\u0442, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u0441\u0447\u0435\u0442, \u0437\u0430\u043d\u043e\u0441\u0438\u0442 \u0441\u0443\u043c\u043c\u0443, \u0438 \u043a\u043e\u0433\u0434\u0430 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0448\u043b\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0431\u0430\u043b\u0430\u043d\u0441 (\u0435\u0441\u0442\u044c \u0438 \u0442\u0435\u0441\u0442 \u043d\u0430 \u0441\u044a\u0435\u043c \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u2014 \u0442\u0443\u0442 \u043e\u043d \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d, \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0430\u0440\u0445\u0438\u0432). <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/75c\/9f8\/752\/75c9f8752effe410065b02e065d06327.gif\" alt=\"image\"\/><br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<pre>    [TestFixture]   public class Way2AutomationTests   {       private StringBuilder verificationErrors = new StringBuilder();       private IWebDriver driver;       private NgWebDriver ngDriver;       private WebDriverWait wait;       private IAlert alert;       private string alert_text;       private Regex theReg;       private MatchCollection theMatches;       private Match theMatch;       private Capture theCapture;       private int wait_seconds = 3;       private int highlight_timeout = 100;       private Actions actions;       private String base_url = &quot;http:\/\/www.way2automation.com\/angularjs-protractor\/banking&quot;;        [TestFixtureSetUp]       public void SetUp()       {           driver = new FirefoxDriver();           driver.Manage().Timeouts().SetScriptTimeout(TimeSpan.FromSeconds(60));           ngDriver = new NgWebDriver(driver);           wait = new WebDriverWait(driver, TimeSpan.FromSeconds(wait_seconds));           actions = new Actions(driver);       }        [SetUp]       public void NavigateToBankingExamplePage()       {           driver.Navigate().GoToUrl(base_url);           ngDriver.Url = driver.Url;       }        [TestFixtureTearDown]       public void TearDown()       {           try           {               driver.Close();               driver.Quit();           }           catch (Exception) { }            Assert.IsEmpty(verificationErrors.ToString());       }        [Test]       public void ShouldDeposit()       {           ngDriver.FindElement(NgBy.ButtonText(&quot;Customer Login&quot;)).Click();           ReadOnlyCollection&lt;NgWebElement&gt; ng_customers = ngDriver.FindElement(NgBy.Model(&quot;custId&quot;)).FindElements(NgBy.Repeater(&quot;cust in Customers&quot;));           \/\/ select customer to log in           ng_customers.First(cust =&gt; Regex.IsMatch(cust.Text, &quot;Harry Potter&quot;)).Click();            ngDriver.FindElement(NgBy.ButtonText(&quot;Login&quot;)).Click();           ngDriver.FindElement(NgBy.Options(&quot;account for account in Accounts&quot;)).Click();             NgWebElement ng_account_number_element = ngDriver.FindElement(NgBy.Binding(&quot;accountNo&quot;));           int account_id  = 0;           int.TryParse(ng_account_number_element.Text.FindMatch(@&quot;(?&lt;result&gt;\\d+)$&quot;), out account_id);           Assert.AreNotEqual(0, account_id);            int account_amount = -1;           int.TryParse(ngDriver.FindElement(NgBy.Binding(&quot;amount&quot;)).Text.FindMatch(@&quot;(?&lt;result&gt;\\d+)$&quot;), out account_amount);           Assert.AreNotEqual(-1, account_amount);            ngDriver.FindElement(NgBy.PartialButtonText(&quot;Deposit&quot;)).Click();            \/\/ core Selenium           wait.Until(ExpectedConditions.ElementExists(By.CssSelector(&quot;form[name=&#39;myForm&#39;]&quot;)));           NgWebElement ng_form_element = new NgWebElement(ngDriver, driver.FindElement(By.CssSelector(&quot;form[name=&#39;myForm&#39;]&quot;)));             NgWebElement ng_deposit_amount_element = ng_form_element.FindElement(NgBy.Model(&quot;amount&quot;));           ng_deposit_amount_element.SendKeys(&quot;100&quot;);            NgWebElement ng_deposit_button_element = ng_form_element.FindElement(NgBy.ButtonText(&quot;Deposit&quot;));           ngDriver.Highlight(ng_deposit_button_element);           ng_deposit_button_element.Click();                      \/\/ inspect status message           var ng_message_element = ngDriver.FindElement(NgBy.Binding(&quot;message&quot;));           StringAssert.Contains(&quot;Deposit Successful&quot;, ng_message_element.Text);           ngDriver.Highlight(ng_message_element);            \/\/ re-read the amount           int updated_account_amount = -1;                       int.TryParse(ngDriver.FindElement(NgBy.Binding(&quot;amount&quot;)).Text.FindMatch(@&quot;(?&lt;result&gt;\\d+)$&quot;), out updated_account_amount);           Assert.AreEqual(updated_account_amount, account_amount + 100);       } <\/pre>\n<p>  <\/p>\n<h2>Java<\/h2>\n<p>  \u00ab\u041a\u043b\u0438\u0435\u043d\u0442\u00bb \u0437\u0430\u0445\u043e\u0434\u0438\u0442, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u0441\u0447\u0435\u0442, \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438, \u0443\u043c\u0435\u0435\u0442 \u043d\u0430\u0439\u0442\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u00abCredit\u00bb.<\/p>\n<p>  <\/p>\n<pre> @Test     public void testListTransactions() throws Exception {       \/\/ customer login       ngDriver.findElement(NgBy.buttonText(&quot;Customer Login&quot;)).click();       \/\/ select customer\/account with transactions       assertThat(ngDriver.findElement(NgBy.input(&quot;custId&quot;)).getAttribute(&quot;id&quot;), equalTo(&quot;userSelect&quot;));        Enumeration&lt;WebElement&gt; customers = Collections.enumeration(ngDriver.findElement(NgBy.model(&quot;custId&quot;)).findElements(NgBy.repeater(&quot;cust in Customers&quot;)));              while (customers.hasMoreElements()){         WebElement next_customer = customers.nextElement();         if (next_customer.getText().indexOf(&quot;Hermoine Granger&quot;) &gt;= 0 ){           System.err.println(next_customer.getText());           next_customer.click();         }       }       NgWebElement login_element = ngDriver.findElement(NgBy.buttonText(&quot;Login&quot;));       assertTrue(login_element.isEnabled());       login_element.click();        Enumeration&lt;WebElement&gt; accounts = Collections.enumeration(ngDriver.findElements(NgBy.options(&quot;account for account in Accounts&quot;)));              while (accounts.hasMoreElements()){         WebElement next_account = accounts.nextElement();         if (Integer.parseInt(next_account.getText()) == 1001){           System.err.println(next_account.getText());           next_account.click();         }       }       \/\/ inspect transactions       NgWebElement ng_transactions_element = ngDriver.findElement(NgBy.partialButtonText(&quot;Transactions&quot;));       assertThat(ng_transactions_element.getText(), equalTo(&quot;Transactions&quot;));       highlight(ng_transactions_element);       ng_transactions_element.click();       wait.until(ExpectedConditions.visibilityOf(ngDriver.findElement(NgBy.repeater(&quot;tx in transactions&quot;)).getWrappedElement()));       Iterator&lt;WebElement&gt; ng_transaction_type_columns = ngDriver.findElements(NgBy.repeaterColumn(&quot;tx in transactions&quot;, &quot;tx.type&quot;)).iterator();       while (ng_transaction_type_columns.hasNext() ) {         WebElement column = (WebElement) ng_transaction_type_columns.next();         if (column.getText().isEmpty()){           break;         }         if (column.getText().equalsIgnoreCase(&quot;Credit&quot;) ){           highlight(column);         }       }     } <\/pre>\n<p>  \u0414\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Selenium-\u043d\u043e\u0434\u0443 \u0438 \u0445\u0430\u0431 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u043d\u0430 \u043f\u043e\u0440\u0442 <code>4444<\/code><\/p>\n<pre> @BeforeClass public static void setup() throws IOException {   DesiredCapabilities capabilities =   new DesiredCapabilities(&quot;firefox&quot;, &quot;&quot;, Platform.ANY);   FirefoxProfile profile = new ProfilesIni().getProfile(&quot;default&quot;);   capabilities.setCapability(&quot;firefox_profile&quot;, profile);   seleniumDriver = new RemoteWebDriver(new URL(&quot;http:\/\/127.0.0.1:4444\/wd\/hub&quot;), capabilities);   try{     seleniumDriver.manage().window().setSize(new Dimension(600, 800));     seleniumDriver.manage().timeouts()       .pageLoadTimeout(50, TimeUnit.SECONDS)       .implicitlyWait(20, TimeUnit.SECONDS)       .setScriptTimeout(10, TimeUnit.SECONDS);   }  catch(Exception ex) {     System.out.println(ex.toString());   }   ngDriver = new NgWebDriver(seleniumDriver); } <\/pre>\n<p>  \u0414\u043b\u044f \u0431\u0438\u043b\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c<\/p>\n<pre> @BeforeClass public static void setup() throws IOException {   seleniumDriver = new PhantomJSDriver();   wait = new WebDriverWait(seleniumDriver, flexible_wait_interval );   wait.pollingEvery(wait_polling_interval,TimeUnit.MILLISECONDS);   actions = new Actions(seleniumDriver);   ngDriver = new NgWebDriver(seleniumDriver); } <\/pre>\n<p>  \u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u0435\u0441\u0442\u043e\u0432 \u043d\u0430 01.01.2016:<\/p>\n<ul>\n<li><code>ShouldAddCustomer<\/code><\/li>\n<li><code>ShouldDeleteCustomer<\/code><\/li>\n<li><code>ShouldDeposit<\/code><\/li>\n<li><code>ShouldListTransactions<\/code><\/li>\n<li><code>ShouldLoginCustomer<\/code><\/li>\n<li><code>ShouldOpenAccount<\/code><\/li>\n<li><code>ShouldSortCustomersAccounts<\/code><\/li>\n<li><code>ShouldWithdraw<\/code><\/li>\n<\/ul>\n<p>  \u042d\u0442\u043e \u043d\u0430 C# \u2014 \u043d\u0430 Jave \u0442\u0435\u0441\u0442\u043e\u0432 \u043f\u043e\u043a\u0430 \u043c\u0435\u043d\u044c\u0448\u0435, \u043d\u043e \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u2014 \u0432\u043e\u043f\u0440\u043e\u0441 \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/p>\n<p>  \u0421\u0442\u0430\u0442\u044c\u044f (\u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f) \u0442\u0430\u043a\u0436\u0435 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u0430 \u043c\u043d\u043e\u044e \u043d\u0430 <a href=\"http:\/\/www.codeproject.com\/Articles\/1066968\/Developing-Protractor-tests-in-Csharp-or-Java\">Code Project<\/a>, \u0442\u0443\u0434\u0430 \u0436\u0435 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0441\u0432\u0435\u0436\u0438\u0435 \u0430\u0440\u0445\u0438\u0432\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432. \u041e\u0431\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0430\u0431\u043e\u0447\u0438\u0435, \u043a\u043e\u043c\u043c\u0438\u0442\u044b \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c.                 <\/p>\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\/274413\/\"> http:\/\/habrahabr.ru\/post\/274413\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<br \/>\n<h1>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h1>\n<p>  \u041a\u0430\u043a \u043b\u043e\u0437\u0443\u043d\u0433 \u043d\u0430 <a href=\"https:\/\/angularjs.org\/\"> Angular.org <\/a> \u0433\u043e\u0440\u0434\u043e\u0441\u0442\u044c\u044e \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442:<br \/>  <em>Angular is what HTML would have been, had it been designed for applications <\/em>, \u0447\u0442\u043e \u0432 \u0432\u043e\u043b\u044c\u043d\u043e\u043c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0435 \u0437\u0432\u0443\u0447\u0438\u0442 \u0442\u0430\u043a: <em>Angular \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u0435\u043c, \u0447\u0435\u043c \u0431\u044b\u043b \u0431\u044b HTML \u2014 \u0435\u0441\u043b\u0438 \u0431\u044b \u043e\u043d \u0441 \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u0431\u044b\u043b \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f (\u0432\u0435\u0431 -) \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439<\/em>. AngularJS \u0431\u044b\u043b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u0441 \u043d\u0443\u043b\u044f, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u0442\u044c \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u043c. \u041d\u043e \u043c\u043d\u043e\u0433\u0438\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 Selenium \u0445\u043e\u0442\u044f\u0442 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 Java \u0438\u043b\u0438 C # \u043a\u043e\u0434\u043e\u0432\u0443\u044e \u0431\u0430\u0437\u0443 \u0438 \u043d\u0430\u0432\u044b\u043a\u0438 \u043d\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u044e\u0442 \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043d\u0430 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 AngularJS SPA \u0438 MVVM \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u0447\u0442\u043e <a href=\"https:\/\/angular.github.io\/protractor\/#\/\">Protractor<\/a>, \u043b\u0438\u0434\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u0433\u0438\u0439 AngularJS, \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 JavaScript \u0442\u043e\u0436\u0435. <\/p>\n<p>  \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, Protractor \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u044f\u0437\u044b\u043a\u0438 \u2014 \u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043f\u043e\u0434\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 <a href=\"https:\/\/code.google.com\/p\/selenium\/wiki\/JsonWireProtocol\">JsonWire<\/a> \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u0441\u043d\u043e\u0432\u0430\u043d Selenium WebDriver, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u0441\u0435\u0433\u043e <a href=\"https:\/\/code.google.com\/p\/selenium\/wiki\/JsonWireProtocol#\/session\/:sessionId\/execute\">\u043e\u0434\u0438\u043d<\/a> \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.<\/p>\n<p>  \u0417\u0430 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0431\u044b\u043b \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d \u0438 \u0440\u0430\u0437\u0432\u0438\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 <a href=\"https:\/\/github.com\/sergueik\/powershell_selenium\/tree\/master\/csharp\/protractor-net\">protractor-net<\/a> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439 \u043f\u043e\u0440\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 Protractor <a href=\"https:\/\/github.com\/angular\/protractor\/blob\/master\/lib\/clientsidescripts.js\">https:\/\/github.com\/angular\/protractor\/blob\/master\/lib\/clientsidescripts.js<\/a> \u0438\u0437 Javascript \u043d\u0430 C# \u0438 \u0437\u0430\u0442\u0435\u043c \u0434\u0440\u0443\u0433\u043e\u0439 <a href=\"https:\/\/github.com\/sergueik\/selenium_java\/tree\/master\/protractor\">\u043f\u0440\u043e\u0435\u043a\u0442<\/a>, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0438\u0439 \u0442\u0443 \u0436\u0435 \u0437\u0430\u0434\u0430\u0447\u0443 \u0438\u0437 Java.<br \/>  \u0414\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d \u0441\u0430\u0439\u0442 <a href=\"http:\/\/www.way2automation.com\">http:\/\/www.way2automation.com<\/a> \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u0440\u0435\u0434\u0438 \u043f\u0440\u043e\u0447\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u043b\u044f AngularJS, <br \/>  <a href=\"http:\/\/www.way2automation.com\/angularjs-protractor\/banking\">http:\/\/www.way2automation.com\/angularjs-protractor\/banking<\/a>.<\/p>\n<p>  \u0442\u0435\u0441\u0442\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u00ab\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u043d\u044b\u0435\u00bb \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u00ab\u043a\u043b\u0438\u0435\u043d\u0442\u0430\u00bb \u0438 \u00ab\u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430\u00bb \u0431\u0430\u043d\u043a\u0430 \u00abXYZ Bank\u00bb \u043f\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u0431\u0430\u043b\u0430\u043d\u0441\u0430, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0443\u0447\u0435\u0442\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043f\u043b\u0430\u0442\u0435\u0436\u0435\u0439 \u0438 \u0442.\u043f. \u2014 \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u043e \u043f\u0440\u043e\u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0438\u043c\u0435\u044e\u0449\u0438\u0435\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u044b. \u0412\u044b\u0437\u043e\u0432 \u0442\u0435\u0441\u0442\u043e\u0432 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u0435\u043d \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 C# \u0438 \u0438\u0437 Java<\/p>\n<h1>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430<\/h1>\n<p>  <\/p>\n<h2>C#<\/h2>\n<p>  \u00ab\u041a\u043b\u0438\u0435\u043d\u0442\u00bb \u0437\u0430\u0445\u043e\u0434\u0438\u0442, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u0441\u0447\u0435\u0442, \u0437\u0430\u043d\u043e\u0441\u0438\u0442 \u0441\u0443\u043c\u043c\u0443, \u0438 \u043a\u043e\u0433\u0434\u0430 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0448\u043b\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0431\u0430\u043b\u0430\u043d\u0441 (\u0435\u0441\u0442\u044c \u0438 \u0442\u0435\u0441\u0442 \u043d\u0430 \u0441\u044a\u0435\u043c \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u2014 \u0442\u0443\u0442 \u043e\u043d \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d, \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0430\u0440\u0445\u0438\u0432). <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/75c\/9f8\/752\/75c9f8752effe410065b02e065d06327.gif\" alt=\"image\"\/>  <\/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-271489","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/271489","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=271489"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/271489\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=271489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=271489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=271489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}