- Регистрация
- 22.10.2018
- Сообщения
- 27
- Благодарностей
- 3
- Баллы
- 3
I keep getting an error
Here is my code:
Is this a bug with Zenno, or is there a better way to determine if a child exists when i specify the parent element and expected child attribute value?
Thanks,
Maddis
I am checking if an element exists based on it's attribute value. If count is 0, I get thrown this error:System.FormatException: Input string was not in a correct format..
Here is my code:
C#:
HtmlElementCollection results = parent.FindChildrenByAttribute("span","innerhtml","chickens","text");
if (results.Count == 0)
{
project.SendInfoToLog("Chicken found");
}
else
{
project.SendInfoToLog("Chicken not found");
}
Is this a bug with Zenno, or is there a better way to determine if a child exists when i specify the parent element and expected child attribute value?
Thanks,
Maddis