AOL registering - "Next" Button Pushing problem

tuncay_ergun

Client
Регистрация
04.02.2012
Сообщения
27
Благодарностей
1
Баллы
0
Hi Mates,

i use Emulatin.dll but still it can NOT find and push "Next" button.i need exprerienced users helps

thanks a lot

here is code i used

he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("a", "outerhtml", "Next", "regexp", 0);
//if (he.IsVoid) return -1;

he.Focus();
Emulations.Emulator.LeftMouseClick(instance.MainTab.Handle,he);
he.RiseEvent("blur", true);
 

shade

Client
Регистрация
19.11.2010
Сообщения
580
Благодарностей
346
Баллы
63
Hi Mates,

i use Emulatin.dll but still it can NOT find and push "Next" button.i need exprerienced users helps

thanks a lot

here is code i used

he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("a", "outerhtml", "Next", "regexp", 0);
//if (he.IsVoid) return -1;

he.Focus();
Emulations.Emulator.LeftMouseClick(instance.MainTab.Handle,he);
he.RiseEvent("blur", true);
Maybe you should try to use overload of this method. Like this:
JavaScript:
he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("a", "outerhtml", "Next", "regexp", 0);
if (he.IsVoid) return -1;

he.Focus();
Emulations.Emulator.LeftMouseClick(instance.MainTab.Handle, he, 10);
he.RiseEvent("blur", false);
This method click on element with offset = 10.
Emulations.Emulator.LeftMouseClick(instance.MainTab.Handle, he, 10);
But if can not find this link you need change search condition of this html element.
 

tuncay_ergun

Client
Регистрация
04.02.2012
Сообщения
27
Благодарностей
1
Баллы
0
thanks it worked ! :-)

but same method did not work for aol sign up button

here is my code

where did i do mistake ? .. whenever i try to push it,sand glass runs, and doesnot take action
i am sure that it finds this button

thanks


// Click the link "Sign Up"
he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByTag("form", 0).FindChildByAttribute("a", "href", "javascript:void\\(0\\);", "regexp", 5);
if (he.IsVoid) {
he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByTag("form", 0).FindChildByAttribute("a", "InnerText", "Sign\\ Up", "regexp", 0);
}
//if (he.IsVoid) return -1;

he.RiseEvent("click", false);
if (tb.IsBusy) tb.WaitDownloading();
if (instance.GetTabByAddress("popup").IsBusy) instance.GetTabByAddress("popup").WaitDownloading();



he.Focus();
Emulations.Emulator.LeftMouseClick(instance.MainTab.Handle, he, 10);
he.RiseEvent("blur", false);
 

shade

Client
Регистрация
19.11.2010
Сообщения
580
Благодарностей
346
Баллы
63
thanks it worked ! :-)

but same method did not work for aol sign up button

here is my code

where did i do mistake ? .. whenever i try to push it,sand glass runs, and doesnot take action
i am sure that it finds this button

thanks


// Click the link "Sign Up"
he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByTag("form", 0).FindChildByAttribute("a", "href", "javascript:void\\(0\\);", "regexp", 5);
if (he.IsVoid) {
he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByTag("form", 0).FindChildByAttribute("a", "InnerText", "Sign\\ Up", "regexp", 0);
}
//if (he.IsVoid) return -1;

he.RiseEvent("click", false);
if (tb.IsBusy) tb.WaitDownloading();
if (instance.GetTabByAddress("popup").IsBusy) instance.GetTabByAddress("popup").WaitDownloading();



he.Focus();
Emulations.Emulator.LeftMouseClick(instance.MainTab.Handle, he, 10);
he.RiseEvent("blur", false);
Try this:
JavaScript:
// Click the link "Sign Up"
he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByTag("form", 0).FindChildByAttribute("a", "href", "javascript:void\\(0\\);", "regexp", 5);
if (he.IsVoid) {
    he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByTag("form", 0).FindChildByAttribute("a", "InnerText", "Sign\\ Up", "regexp", 0);
}
if (he.IsVoid) return -1;

he.Focus();
Emulations.Emulator.LeftMouseClick(instance.MainTab.Handle, he, 10);
if (tb.IsBusy) tb.WaitDownloading();
if (instance.GetTabByAddress("popup").IsBusy) instance.GetTabByAddress("popup").WaitDownloading();
he.RiseEvent("blur", false);
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)