Internet Explorer is not thread safe so WatiN should use a single threaded apartment (STA). To ensure you abide by this WatiN will throw a ThreadStateException if it is not. This can be rectified by setting the ApartmentState to ApartmentState.STA as the error message suggests for Internet Explorer.
How set your CurrentThread to ApartmenState.STA for WatiN in NUnit
If you've haven't already create an App.config in your NUnit testing assembly. You will need to add the following to it:<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <sectionGroup name="NUnit"> <section name="TestRunner" type="System.Configuration.NameValueSectionHandler"/> </sectionGroup> </configSections> <NUnit> <TestRunner> <!-- Valid values are STA,MTA. Others ignored. --> <add key="ApartmentState" value="STA" /> </TestRunner> </NUnit> </configuration>
If you are having problems with different runners other than NUnit you can find tips on how to set STA on them too.
Not working
ReplyDeleteLatest sports news headlines from India and world. Check out today's most recent & up-to-date news coverage, videos & photos at thesportsrumour.com
ReplyDeletesports news
Awesome blog. I would love to see true life prepared to walk, so please share more informative updates. Great work keeps it up. 3313 exam questions answers
ReplyDeleteMotifz Designer Lawn. 1, 2 & 3 Piece Unstitched Premium Embroidered Lawn 2019, Premium embroidered Lawn, Premium lawn, Premium lawn 2019, Motifz, Premium lawn in Pakistan Summer collection. Shipping worldwide. Stitching option available.
ReplyDeleteNorton setup has the best products. Norton antivirus provide high security and protects the device from viruses and hackers. You can get the Norton products from Norton setup. If you are facing any problem regarding Norton then use the Norton removal tool. For further information, please visit Norton Setup
ReplyDeleteQuickbooks is a tech assistant provider company that provides tech assistance for all tech-related issues in Quickbooks books as in case you face any issue in the software you can contact Quickbooks tech support and ask them for Quickbooks support
ReplyDeleteIf you are hoping to be able to use a public network as a solution to cheap wireless internet access then you may want to think again. Firstly your download may be limited. Unlimited wireless internet
ReplyDeleteNice Post thanks!
ReplyDeleteemail address lookup tips
Quickbooks Support is one of the best accounting software in United States. if you are facing issue then you can use QuickBooks tech support.
ReplyDelete
ReplyDeleteنقل عفش داخل جدة نقل عفش داخل جدة
دينا نقل عفش جدة دينا نقل عفش جدة
افضل نقل عفش من جدة الى الرياض افضل نقل عفش من جدة الى الرياض
نقل عفش من جدة الى دبي شحن عفش من جدة الى الامارات
This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. https://интернет-на-дачу.рф
ReplyDeletehome wifi Du Home Internet Packages with exciting Offers Staring from AED 270/- High Speed Internet upto 800 MBPS. Du Internet Packages with Free Landline & TV Channels
ReplyDeleteYou may know Gmail is the most used email service with 1 billion users. With a Gmail account, you also have an Google account that give you permission to access all Google products: Google Drive, Google Hangouts, Google Photos, Google Play, Youtube, Blogger... without signing up again with gmail email login
ReplyDeleteBuy online wholesale printed candle boxes and packaging at easy prices and shipping worldwide, with 24/7 customer support. Get a free custom quote now!!
ReplyDeleteBuy online wholesale printed custom candle boxes and packaging at easy prices and shipping worldwide, with 24/7 customer support. Get a free custom quote now!!
ReplyDeleteBlackbird packaging provide you with any size, shape design, custom bath bomb display boxes sooner than any other packaging competitor in the market
ReplyDeletehttps://www.guest-articles.com/education/mcd-level-1-mulesoft-certified-developer-level-1-10-12-2020
ReplyDelete