in

ArtOfTest, Inc. Community Forums

Discuss and ask questions about ArtOfTest's products.

WebAii problem due to Regional Settings (solved)

Last post 09-08-2008 5:36 AM by henginy. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 08-19-2008 9:00 AM

    WebAii problem due to Regional Settings (solved)

    Hi,

    This one took our several hours so I'm posting the solution for those who might have a similar problem. I wrote a simple google test where the browser navigates to google.com and executes a query. Although the explorer window opened, every attempt to reference an element on the page resulted in an exception like this:

    "Test method TestDnm.WebAiiVSUnitTestSM1.TestMethod1 threw exception:  System.ArgumentException: Target '[Element: 'ınput:1' (name=q)]' is not a support element to set text to.."

    We tried vs_piaredist.exe, reinstalling webaii and ie developer toolbar, checking gac, etc..with no success. It turned out to be the regional settings which is Turkish by default and changing the setting to English solved the problem. I don't know if this would be counted as a bug but could save hours for someone. The configuration is IE7 on WinXP, WebAii v1.1.

    Best regards



  • 08-19-2008 10:04 AM In reply to

    Re: WebAii problem due to Regional Settings (solved)

    Hi Henginy -

    Thanks for reporting this, this does sound like a bug. To help us replicate this scenarios, was the OS turkish? What about IE? Did you have to change any of its setting to make this work or you simply changed the settings of the OS?

    ArtOfTest, Inc.
  • 08-20-2008 4:05 AM In reply to

    Re: WebAii problem due to Regional Settings (solved)

    The OS is English - WinXP SP2, so is IE7. Only changing the Regional and Language Options from Turkish to English (United States) worked for us. We didn't need to alter any IE settings. I want to call attention to the Turkish character 'ı' (i without the dot) in the error string.

    "Test method TestDnm.WebAiiVSUnitTestSM1.TestMethod1 threw exception:  System.ArgumentException: Target '[Element: 'ınput:1' (name=q)]' is not a support element to set text to.."

    [WebAii assembly version: 1.1.900.0]

  • 08-29-2008 5:31 AM In reply to

    Re: WebAii problem due to Regional Settings (solved)

    Hello,

    This problem often appears in ASP.NET. You should use the InvariantCulture when parsing integers or calling ToString() method. See Jeff Atwood's post on the subject here:

     http://www.codinghorror.com/blog/archives/001075.html

     Hope this helps.

    -Konstantin
     

  • 09-03-2008 6:35 AM In reply to

    Re: WebAii problem due to Regional Settings (solved)

    The problem was not only in our code, it also arose in the sample tests that come bundled with WebAii. There aren't any explicit calls to ToString() or parsing methods, but I agree that might be the problem somewhere up in the method chain.

    I tried it now and can reproduce the problem with CheckAnElement test in BrowserActions.cs (included in WebAii QuickStart Projects - QuickStarts_VSTS_CS.zip) by setting Regional Options -> Standards and Formats to Turkish. Then the test fails with these notifications:

    Error Messsage:
    Test method QuickStarts_VSTS_CS.BrowserActions.CheckAnElement threw exception:  System.ArgumentException: Target '[Element: 'ınput:2' (id=check1)]' is not a support element to check..
    Error Stack Trace:
    ArtOfTest.WebAii.Core.Actions.Check(Element targetElement, Boolean checkedState)
    QuickStarts_VSTS_CS.BrowserActions.CheckAnElement() in C:\Program Files\ArtOfTest Inc\WebAii 1.1\QuickStart Projects\QuickStarts_VSTS_CS\Tests\BrowserActions.cs: line 268

    After changing Regional Options to English (United States) the test passes.

    Hope this helps,
    H. Engin

  • 09-03-2008 9:54 AM In reply to

    Re: WebAii problem due to Regional Settings (solved)

    Thanks for helping us identify this bug. This issue is resolved and should be included in our next WebAii update.

    ArtOfTest, Inc.
  • 09-08-2008 5:36 AM In reply to

    Re: WebAii problem due to Regional Settings (solved)

    Thanks for the response, great news! We'll be looking forward to next update.
Page 1 of 1 (7 items)
Copyrights © 2008 ArtOfTest, Inc. All rights reserved.