Manager.DialogMonitor.AddDialog(altDlg);
Manager.DialogMonitor.Start();
//The alert dialog opens On click of below button
PfmPageManager.EditQuestionsPage.Elements.SaveTextButton.Click();
When the alert dialog opens and clicks on Ok button the pop up window closes.
Next it tries to execute this code : PfmPageManager.EditQuestionsPage.Elements.SaveTextButton.Click();
and fails here throwing Null pointer exception as this button exists in the pop up window which is already closed.
Please let me know if you have any soltuion for this.
Thanks,
Hemashree
The MouseClick event does not click on the element. The mouse always clicks in the wrong location. This is a sample of what my code looks like where cw is my active browser.
cw.Find.ById<HtmlInputText>("igtxtctl00_Main_txtCycleIntervalNum").MouseClick();
This is working in IE but does not click in the correct location in FF or Chrome. This is only a problem on my machine. I can execute the same tests on another machines and it clicks in the correct location. I recently got some new high resolution monitors and was thinking the issue might be with my monitors. I changed the resolution to the same resolution as the machines the tests work on and they still break on my machine. At a loss of what to do.
Hi,
I am running my Test Cases on 3 browsers i.e Internet Explorer, Google Chrome, Mozilla Firefox. But I am facing "QTAgent32.exe has stopped working " only on Firefox and on other browsers it is working fine.
Please find the below attachment for error details.
Although we have updated our Telerik framework 2016.3 to 2017.2 but still we are facing the same issue again.
We are running our Test Cases on Firefox version : 52.0.1
KendoGrid grid = myManager.ActiveBrowser.Find.ById<KendoGrid> (gridId);
Hi,
can you help me to find solution for my case?
I have attached an example.
My application has 3 windows - 2 are visible, and one has Visibility = Hidden.
By WpfApplication.Windows.Count i can get 2 visible windows. But after my third window become Visible the count is still 2.
I can see two ways to pass this problem:
1) refresh WpfApplication, like WpfApplication.MainWindow.RefreshVisualTrees() but for the entire application;
2) initialize WpfApplication after my window will be Visible, i.e. connect through the processID.
The problem is that i was not able to find the way to implement any of this options.
Can you suggest something?
I have an MVC application in which a view contains a Kendo Grid htmlhelper. As such, I just specify the columns in the grid, and when the view is loaded it adds the rows and data based on the data source:
@(Html.Kendo().Grid<CustomerJob>()
.Name("customerJobGrid")
.DataSource(dataSource => dataSource
.Ajax()
.Sort(sort =>
{
sort.Add("IsFavorite").Descending();
sort.Add("JobNo").Descending();
})
.Read(read => read.Action("Jobs_Active_Read", "DashBoard"))
.Model(model => model.Id(p => p.JobNo)
)
)
.Columns(columns =>
{
columns.Template(p => { }).ClientTemplate(
"# if(IsFavorite == 1) { #" +
"<span id=\"star-#=NavCustomerNo#-#=JobNo#\" class=\"favorite-star glyphicon glyphicon-star\"></span>" +
"# } else { #" +
"<span id=\"star-#=NavCustomerNo#-#=JobNo#\" class=\"favorite-star glyphicon glyphicon-star-empty\"></span>" +
"# } # "
).Width(50);
columns.Bound(p => p.CustomerName).Title("Account");
columns.Bound(p => p.Nickname).Title("Name");
columns.Bound(p => p.JobNo).Title("Job ID").Width(90).MinScreenWidth(768);
})
.Pageable()
.Sortable()
.Scrollable()
.Filterable()
.Mobile(MobileMode.Disabled)
.Selectable(selectable => selectable
.Mode(GridSelectionMode.Single)
.Type(GridSelectionType.Row))
.Events(events => events.Change("onChange"))
.HtmlAttributes(new { style = "height:400px;" })
)
So in the view, I can click within a cell in the grid and it will take me to a page specific for that row.
I would like to automate this using the test framework, so my test can find a cell either by a specified row and column or by a specified text content, and then click in that cell.
I did find this thread, but it's specific to an actual Kendo UI Grid: http://www.telerik.com/forums/automating-kendo-ui-controls
I need help with this for the htmlhelper version.
Thank you!
Using the Find.ByAttributes<T>() method I am able to find a specific control in the DOM, but once found I cannot cast it to a more specific type, HtmlInputText. The control is an input field, which can be seen in the HtmlControl properties. I then attempt to cast the HtmlControl by simply:
HtmlInputText _email = ctrl as HtmlInputText; (ctrl is the generic HtmlControl)
I could work with the HtmlControl, but there are specific methods and properties that the HtmlInputControl has that the more generic HtmlControl does not.
I was hoping to find any feedback on why the casting could not be done, when the HtmlControl returned was an input control.
How to get a vaule form TextBlock for FontSize.
I need to get number 14 !
<TextBlock Grid.Row="1"
TextWrapping="Wrap"
Margin="5"
Name="TextBlockAbout"
FontSize="14">
</TextBlock>
var fSize = TextBlockAbout.GetProperty<TextBlock>("FontSize");
Regards,
Peter