Hi all
I need find hidden control and perform action click
I customized as attachment
But it's not running on firefox
Please refer attachment
Thanks
I need find hidden control and perform action click
I customized as attachment
But it's not running on firefox
Please refer attachment
Thanks
3 Answers, 1 is accepted
0
Hello Ha,
I am sorry for the delay in getting back to you on this. Looking the log files, is seems that most likely the items collection is empty and test never enters in the "If" clause. You can verify that by performing an Assert right before the "If" statement.
If this is the case, please try setting the SimulateRealClick Test Step property to "True" for the "Click 'DnnCtr431ViewSheetInfoLblSaveSpan'" step(step 9). This ensures that your test will click on the button as a real user triggering any events associated with that step.
Please give it a try and let me know the result.
Greetings,
Plamen
the Telerik team
I am sorry for the delay in getting back to you on this. Looking the log files, is seems that most likely the items collection is empty and test never enters in the "If" clause. You can verify that by performing an Assert right before the "If" statement.
IList<HtmlControl> items = Find.AllByAttributes<HtmlControl>(
"class=component-item"
);
Assert.IsNotNull(items);
If this is the case, please try setting the SimulateRealClick Test Step property to "True" for the "Click 'DnnCtr431ViewSheetInfoLblSaveSpan'" step(step 9). This ensures that your test will click on the button as a real user triggering any events associated with that step.
Please give it a try and let me know the result.
Greetings,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Test Studio Trainings
0
Ha
Top achievements
Rank 1
answered on 30 May 2012, 04:53 AM
Hi Plamen!
It's exactly, almost of items have never enter in "If" clause
I am sure DnnCtr431ViewSheetInfoLblSaveSpan is simulateRealClick
I think this cause is " Can not find element " HtmlControl pTag = item.Find.ByContent<HtmlControl>("Delete test");" after saving (test 1)
With test (2) , I only find when open screen. It is ok.
I attached log file and step of 2 tests (1) &(2). Both of them can run successfully on IE9
But only test (2) run successfully on firefox (Scripts which is used in 2 tests are the same)
Thanks
It's exactly, almost of items have never enter in "If" clause
I am sure DnnCtr431ViewSheetInfoLblSaveSpan is simulateRealClick
I think this cause is " Can not find element " HtmlControl pTag = item.Find.ByContent<HtmlControl>("Delete test");" after saving (test 1)
With test (2) , I only find when open screen. It is ok.
I attached log file and step of 2 tests (1) &(2). Both of them can run successfully on IE9
But only test (2) run successfully on firefox (Scripts which is used in 2 tests are the same)
Thanks
0
Hi Ha,
If the SimulateRealClick property of the "Click 'BtnSaveDiv'" is set to True and you are still unable to find the items, then probably the underlying "OnClick" event is not being triggered for that button.
Try to invoke the JavaScript event through the Elements Menu. See below for a screen recording demonstrating this:
http://screencast.com/t/STFnJ10iMe
If this doesn't work, I'll need to see the issue first hand. Is your application publicly accessible? If not, can you provide a sample site that demonstrates the issue you are experiencing?
As an alternative you can record and send us a Fiddler Trace, which is a good substitute for direct access. Basically with that trace we'll be able to "simulate" your app in order to reproduce the problem.
Greetings,
Plamen
the Telerik team
If the SimulateRealClick property of the "Click 'BtnSaveDiv'" is set to True and you are still unable to find the items, then probably the underlying "OnClick" event is not being triggered for that button.
Try to invoke the JavaScript event through the Elements Menu. See below for a screen recording demonstrating this:
http://screencast.com/t/STFnJ10iMe
If this doesn't work, I'll need to see the issue first hand. Is your application publicly accessible? If not, can you provide a sample site that demonstrates the issue you are experiencing?
As an alternative you can record and send us a Fiddler Trace, which is a good substitute for direct access. Basically with that trace we'll be able to "simulate" your app in order to reproduce the problem.
Greetings,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Test Studio Trainings