<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://logicwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=NewUserRegistration.feature</id>
		<title>NewUserRegistration.feature - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://logicwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=NewUserRegistration.feature"/>
		<link rel="alternate" type="text/html" href="https://logicwiki.co.uk/index.php?title=NewUserRegistration.feature&amp;action=history"/>
		<updated>2026-05-01T09:28:27Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>https://logicwiki.co.uk/index.php?title=NewUserRegistration.feature&amp;diff=303&amp;oldid=prev</id>
		<title>Dt1nh6: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://logicwiki.co.uk/index.php?title=NewUserRegistration.feature&amp;diff=303&amp;oldid=prev"/>
				<updated>2016-05-09T13:27:30Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 13:27, 9 May 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='en'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Dt1nh6</name></author>	</entry>

	<entry>
		<id>https://logicwiki.co.uk/index.php?title=NewUserRegistration.feature&amp;diff=302&amp;oldid=prev</id>
		<title>Macrop at 06:51, 23 August 2014</title>
		<link rel="alternate" type="text/html" href="https://logicwiki.co.uk/index.php?title=NewUserRegistration.feature&amp;diff=302&amp;oldid=prev"/>
				<updated>2014-08-23T06:51:07Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:BDD]]&lt;br /&gt;
[[Category:Specflow]]&lt;br /&gt;
[[Category:Feature Files]]&lt;br /&gt;
[[Category:SpecFlow Features]]&lt;br /&gt;
&lt;br /&gt;
 Feature: New User Registration&lt;br /&gt;
    In order to get access to the member-only features&lt;br /&gt;
    As a potential new user&lt;br /&gt;
    I want to create an account&lt;br /&gt;
 &lt;br /&gt;
 Scenario: Password Strength Indicator&lt;br /&gt;
    Given I'm on the registration page&lt;br /&gt;
    When I enter a password of Pass&lt;br /&gt;
    Then the password strength indicator should read Poor&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 using System;&lt;br /&gt;
 using TalkTexh.Specflow;&lt;br /&gt;
 using WatiNCore;&lt;br /&gt;
 using NUnit.Framework;&lt;br /&gt;
&lt;br /&gt;
 namespace DemoExampleSite.specs&lt;br /&gt;
 {&lt;br /&gt;
   [Binding]&lt;br /&gt;
   public class NewUserRegistrationSteps&lt;br /&gt;
   {&lt;br /&gt;
     [Given]&lt;br /&gt;
     public void Given_I_m_on_the_registration_page()&lt;br /&gt;
     {&lt;br /&gt;
       var ie= new IE(&amp;quot;http://localhost:62988/Register.aspx&amp;quot;)&lt;br /&gt;
       ie.BringToFrontForDemo();&lt;br /&gt;
 &lt;br /&gt;
       ScenarioContext.Current.Add(&amp;quot;browser&amp;quot;, ie);    / to store ie in context&lt;br /&gt;
     }&lt;br /&gt;
     [When]&lt;br /&gt;
     public void When_I_enter_a_password_of_Pass()&lt;br /&gt;
     {&lt;br /&gt;
       var ie = ScenarioContext.Current[&amp;quot;browser&amp;quot;] as IE;&lt;br /&gt;
       ie.TextField(Find.ByID(&amp;quot;Password&amp;quot;)).TypeText(&amp;quot;Pass&amp;quot;);&lt;br /&gt;
       // WatiN TypeText - the js keypress event doesn't fire (it's a BUG in WatiN) &lt;br /&gt;
       ie.Eval(&amp;quot;$('#Password').keypress()&amp;quot;); // workaround of the bug above&lt;br /&gt;
     }&lt;br /&gt;
     [Then]&lt;br /&gt;
    public void Then_the_password_strength_indicatopr_should_read_Poor()&lt;br /&gt;
    {&lt;br /&gt;
       var ie = ScenarioContext.Current[&amp;quot;browser&amp;quot;] as IE;&lt;br /&gt;
       var stregth = ie.Div(Find.ByID(&amp;quot;PasswordStrength&amp;quot;)).InnerHtml;&lt;br /&gt;
       Assert.AreEqual(&amp;quot;Poor&amp;quot;, stregth);&lt;br /&gt;
      ie.AutoClose = false ; // to see what happened&lt;br /&gt;
      ie.Dispose&lt;br /&gt;
  &lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
include /DemoHelpers/BrowserDemoHelper.cs  to project and take name space from this file and include in Step definition file like &lt;br /&gt;
 using DemoExampleSite.specs.DemoHelpers;&lt;br /&gt;
&lt;br /&gt;
When we use WatiN we go and edit the properties of &amp;quot;References/Interop.SHDocVw&amp;quot;-&amp;gt; EmbedInteropTypes -&amp;gt; false&lt;br /&gt;
&lt;br /&gt;
Change Project.Specs -&amp;gt; Properties -&amp;gt; AssemblyInfo.cs file and add &lt;br /&gt;
 [assembly:RequiresSTA]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Refactoring ==&lt;br /&gt;
We create a class&lt;br /&gt;
[[File:WebBrowserClassForSpecFlow.PNG|thumbnail|WebBrowser Class]]&lt;br /&gt;
and refactor the code &lt;br /&gt;
[[File:RefactoringCode.PNG|thumbnail|Refactoring]]&lt;/div&gt;</summary>
		<author><name>Macrop</name></author>	</entry>

	</feed>