Hi,
I am using Selenium automation testing in one of my view with kendo ui editor.
I couldn't pass values to the editor control from my test. Please give information how to do this.
View
====
@(Html.Kendo().EditorFor(m => Model.reportDetail.Content)
.Name("Content")
.HtmlAttributes(new { style = "width: 810px;height:500px" })
.Tools(tools => tools
.Clear()
.Bold()
.Italic()
.Underline()
.Strikethrough()
.FontName()
.FontSize()
.FormatBlock()
.FontColor()
.BackColor()
.InsertOrderedList()
.InsertUnorderedList()
.CreateLink()
))
Test
====
[TestMethod]
public void TestName()
{
// code goes here..
var kendoEditor = webDriver.FindElement(By.Name("Content"));
// assert code goes here..
}
I need to set value as "Test" in the editor.
I couldn't assign value as other controls
Ex:- @Html.DropDownListFor
var yearInputControl = new SelectElement(webDriver.FindElement(By.Name("dateComponent.Year")));
yearInputControl.SelectByValue("2013");
Thanks in advance,
PK
I am using Selenium automation testing in one of my view with kendo ui editor.
I couldn't pass values to the editor control from my test. Please give information how to do this.
View
====
@(Html.Kendo().EditorFor(m => Model.reportDetail.Content)
.Name("Content")
.HtmlAttributes(new { style = "width: 810px;height:500px" })
.Tools(tools => tools
.Clear()
.Bold()
.Italic()
.Underline()
.Strikethrough()
.FontName()
.FontSize()
.FormatBlock()
.FontColor()
.BackColor()
.InsertOrderedList()
.InsertUnorderedList()
.CreateLink()
))
Test
====
[TestMethod]
public void TestName()
{
// code goes here..
var kendoEditor = webDriver.FindElement(By.Name("Content"));
// assert code goes here..
}
I need to set value as "Test" in the editor.
I couldn't assign value as other controls
Ex:- @Html.DropDownListFor
var yearInputControl = new SelectElement(webDriver.FindElement(By.Name("dateComponent.Year")));
yearInputControl.SelectByValue("2013");
Thanks in advance,
PK