Checking disable filed

7 posts, 1 answers
  1. Talal
    Talal avatar
    19 posts
    Member since:
    Jan 2012

    Posted 10 Feb 2012 Link to this post

    Hi there,

    1. How I can verify disabled field in UI Sliverlight application

    2. I run some test cases under Internet Explorer it works fine but when I tried to run them under FireFox browser not working any idea? thanks
  2. Answer
    Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 10 Feb 2012 Link to this post

    Hello Talal,

    1. See this video on Telerik TV.

    2. How is it not working? If the browser launches but never navigates, there is likely an issue with the FF extension. See here and here for more information. If the test executes to a certain step and then fails, we'll need more information to continue troubleshooting. See here for what to provide.

    All the best,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Talal
    Talal avatar
    19 posts
    Member since:
    Jan 2012

    Posted 13 Feb 2012 Link to this post

    Hi Anthony,

    Question 2:  is resolved thanks for your solution

    Question 1:  I have watched the vedio, but when I try to check for IsDisable, I coudent found this check the test menu, I highlighted the disabled field and displyed the menu and tried to do build verification I coudn't found the IsDisable or IsEnable checks as mentioned in the vedio, please advise, thanks for your help and support
  4. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 13 Feb 2012 Link to this post

    Hello Talal,

    It seems the video is a bit dated. When I tested this in version 2001.2.1305, I was able to highlight a disabled Silverlight element directly and craft an advanced verification on it. There is no IsDisabled property; you'll have to selected the IsEnabled property and set it to Equal to False.

    See the attached screen shot for an example against a public site. After navigation, I clicked the DataForm left-hand menu item. Then I clicked the IsReadOnly checked box. This disabled the Business Address CheckBox. I was able to highlight it and select the second blue nub which corresponds to the CheckBox.

    Does this public example work for you? Are you sure you're targeting the correct element in your application? Can you provide access to your app, or a public site that exhibits the same behavior, so I can reproduce your issue?

    Greetings,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  5. Talal
    Talal avatar
    19 posts
    Member since:
    Jan 2012

    Posted 13 Feb 2012 Link to this post

    Hi Anthony

    Yes it is working, now I can see the IsEnbled check in the menu when I clicked on the right nub.
     I have only one issue on this, some fields on the screen "Read only" not allawod to update these fields, but when I try to check for IsEnabled the default value is "True" and if I change it to "False" the verifivation failed, I expect the default value is False because you can't overwrite on these fields, How I can test these fields? I tried to check for ReadOnly but most of them not have ReadOnly check and some have ReadOnly check, is any proper test for these readonly fields?

    Thanks Anthony for your help and support

    Talal 
  6. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 13 Feb 2012 Link to this post

    Hello Talal,

    In Silverlight there's a subtle difference when an element is read only and when it is disabled. In the example (see new screen shot), when a TextBox is in read only mode, it is still actually enabled. Your suspicion about using the IsReadOnly property is correct.

    Again, this is likely an issue of clicking on the blue nub that corresponds to the correct element. In the new example provided it's the TextBox.

    Kind regards,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  7. Talal
    Talal avatar
    19 posts
    Member since:
    Jan 2012

    Posted 13 Feb 2012 Link to this post

    Hi Anthony,

    Issue solved, thanks man for your help and support


    Talal
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!