clicking dropdown menu on facebook ads

surfmore

Client
Регистрация
08.09.2011
Сообщения
138
Благодарностей
7
Баллы
18
46466


Hi I am trying to select a dropdown menu inside facebook ads backoffice and use the number of the pixel as input to click, but i cant figure out. It doesnt record, i could not figure out on the Action Designer too.

I appreciate some help here. thanks.
 

cportal

Client
Регистрация
16.04.2013
Сообщения
141
Благодарностей
30
Баллы
28
hi you need find this item inside div
use c#
click:
//find main div
var btn =  instance.ActiveTab.FindElementByAttribute("div","innertext","text","regexp",0);
//find item inside as example li tag
btn  = btn  .FindChildByTag("li");
//then move to html element then click
instance.ActiveTab.FullEmulationMouseMoveToHtmlElement(btn);
instance.ActiveTab.FullEmulationMouseClick("left","click");
 

surfmore

Client
Регистрация
08.09.2011
Сообщения
138
Благодарностей
7
Баллы
18
Can you elaborate a little bit more on how to use this code?

46498


I put the number of the pixel in the place of li to be found and I am getting this error when i try to run the project

Compile code of Error in action "CS1501" "No overload for method 'FindChildByTag' takes 1 arguments". [Row: 3; Column: 8]
 

surfmore

Client
Регистрация
08.09.2011
Сообщения
138
Благодарностей
7
Баллы
18
I figured out there was a parameter missing on FindChildByTag I put FindChildByTag("PIXELNUMBER",0);

But still dont work


//find main div
var btn = instance.ActiveTab.FindElementByAttribute("div","innertext","text","regexp",0);
//find item inside as example li tag
btn = btn .FindChildByTag("PIXELNUMBER",0);
//then move to html element then click
instance.ActiveTab.FullEmulationMouseMoveToHtmlElement(btn);
instance.ActiveTab.FullEmulationMouseClick("left","click");
 

cportal

Client
Регистрация
16.04.2013
Сообщения
141
Благодарностей
30
Баллы
28
change "text" to your innertext of div

var btn = instance.ActiveTab.FindElementByAttribute("div","innertext","text","regexp",0);
to
var btn = instance.ActiveTab.FindElementByAttribute("div","innertext","30645644","regexp",0);
or to
var btn = instance.ActiveTab.FindElementByAttribute("div","class","heredivclass","regexp",0);
there can be any settings
then
btn = btn .FindChildByTag("b",0);

need watch html code of element


or other way you can click be image recognize

46675


in project maker inside instance just right mouse click and last option

46676
 

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