Forum Discussion
UnderTest
Occasional Contributor
Better to change wDate value, or even to execute JavaScript to set datepicker value, instead of clicks.
sean_ng
6 years agoOccasional Contributor
i can't pass in value using the wDate, it seems like the date time picker does not allow value to be change unless using a click.
i tried using css selectors but it does not work too
CSSSelector("//*[div[class*=available]:not([class*='off'])\"]").Click();
function CSSSelector(CSSSelector)
{
var Page, CSSSelector, arr, res, cnt, i,obj;
Page = Sys.Browser().Page("*");
var obj = Page.QuerySelector(CSSSelector)
if (obj != null)
{
return obj;
}
else
{
Log.Error("The element was not found.");
}
}
Related Content
- 6 years agomayursheth1
- 11 months agomtsapa
- 11 years agotobello
Recent Discussions
- 2 days agovladd1