This is a migrated thread and some comments may be shown as answers.

Checking disable filed

6 Answers 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Talal
Top achievements
Rank 1
Talal asked on 10 Feb 2012, 06:14 AM
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

6 Answers, 1 is accepted

Sort by
0
Accepted
Anthony
Telerik team
answered on 10 Feb 2012, 05:01 PM
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
0
Talal
Top achievements
Rank 1
answered on 13 Feb 2012, 06:49 AM
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
0
Anthony
Telerik team
answered on 13 Feb 2012, 05:38 PM
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
0
Talal
Top achievements
Rank 1
answered on 14 Feb 2012, 12:31 AM
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 
0
Anthony
Telerik team
answered on 14 Feb 2012, 12:52 AM
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
0
Talal
Top achievements
Rank 1
answered on 14 Feb 2012, 01:43 AM
Hi Anthony,

Issue solved, thanks man for your help and support


Talal
Tags
General Discussions
Asked by
Talal
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Talal
Top achievements
Rank 1
Share this question
or