- SriKalyani
- Posts : 1
Join date : 2017-05-10
How to access element through Selenium which uses observable binding
Wed May 10, 2017 4:16 pm
Hi All,
I am new to Selenium automation. I am testing an application where a text box uses observable binding . How can we deal this through Selenium. Here is the information on issue I am facing. Please help to resolve this issue.
I am saving a report through automation.
In report name Text box I entered name through automation and selected done.
Now I am observing a message "please enter report name" , which indicates that report name I entered in not taken.
From visual studio while debugging I entered report name manually re executed Done button. Now it works fine.
I tried following :
IWebElement textBox1 = driver.FindElement(By.CssSelector("div#Update-view input#reportName"));
builder.Click(textBox1).SendKeys("Automation2").Perform();
IWebElement doneButton = driver.FindElement(By.CssSelector("div#Update-view div.ui-block-d span.ui-btn-text"));
builder.Click(doneButton).Perform();
Following is the info of the element:
data-bind="value:Name,attr:{'maxlength':userInputLimits.titleLength}"
Thanks,
Sri.
I am new to Selenium automation. I am testing an application where a text box uses observable binding . How can we deal this through Selenium. Here is the information on issue I am facing. Please help to resolve this issue.
I am saving a report through automation.
In report name Text box I entered name through automation and selected done.
Now I am observing a message "please enter report name" , which indicates that report name I entered in not taken.
From visual studio while debugging I entered report name manually re executed Done button. Now it works fine.
I tried following :
IWebElement textBox1 = driver.FindElement(By.CssSelector("div#Update-view input#reportName"));
builder.Click(textBox1).SendKeys("Automation2").Perform();
IWebElement doneButton = driver.FindElement(By.CssSelector("div#Update-view div.ui-block-d span.ui-btn-text"));
builder.Click(doneButton).Perform();
Following is the info of the element:
data-bind="value:Name,attr:{'maxlength':userInputLimits.titleLength}"
Thanks,
Sri.
Permissions in this forum:
You cannot reply to topics in this forum