Synchronization inside the 'it' Block in protractor
<p>Hi actually i'm facing sync in 'it' block of my code. Following snippet depicts the problem.</p>

<pre><code> it('Some Download Operation',function()
 {
    console.log("before");
    myobj.clickOnDownloadBtn();
    console.log("after download click");
    browser.driver.sleep(5000);
    var enter = browser.actions().sendKeys(protractor.Key.ENTER);
    enter.perform();
    console.log("after enter btn");
});
</code></pre>

<p>Im getting the output like:</p>

<pre><code>before
after download click
after enter btn
//Then the  click on PO Object's 'myobj.clickOnDownloadBtn()' operation.
</code></pre>

<p>Please soon let me know the problem and solution for this. </p>