- Регистрация
- 09.02.2011
- Сообщения
- 1 216
- Благодарностей
- 683
- Баллы
- 113
Since like many here I'm new to C# and the CodeCreator program I'm trying to figure out how to make the templates work right. I've recorded a template in PM and it works fine. I made a new template in CodeCreator and the form fields are not filled out. I would like to learn how to do this as I like a challenge. Here's what I'm looking at:
Doesn't put anything in the field when debugged.
Код:
// Executing macros
he.SetValue(instance.RiseMacros("String.Split", new [] { "", "File.GetString", "\\Resources\\email.txt", "0", "false", "", ":", "1" }), true);
// Setting value [{-String.S...] to the element with tag [input:password]
he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByTag("form", 0).FindChildByName("passwordconfirm");
if (he.IsVoid) {
he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByTag("form", 0).FindChildByAttribute("input:password", "fulltag", "input:password", "text", 1);
}
if (he.IsVoid) return -1;