Hello, Today I will present how to create iMacro to select the list on the page or in HTML we call select option.
And this example we will use DATA from last example is show how to load info from csv to fill form on the page.
If someone don't know basic command.
Can see the meaning of command in video name How to Get data from CSV To fill form.
OK. Cut to scene start, I will start to press button record on iMacro.
After that I will click at label form for set target point and time to edit we will know this point what to do.
After that I will select some list for iMacro save the work.
After that press Stop Button and go to current.iim file in panel iMacro.
Right click and go to edit Macro.
I will copy only line 4 and 5.
Line 4 is point click label.
Line 5 code select option in the page.
After copy that. I will paste this text code in dot iim file.
HOW TO SELECT OPTION ON FILL FORM |
HOW TO SELECT OPTION ON FILL FORM
This is text code for select, in line 17 focus at text ATTR=TXT and text CONTENT=%5:.So after this that text is we want to change.
And I will load text from csv file for Modify replace in line 17 in dot iim.
Ok. go to csv file i will focus column number 9, and i will load text in this column to file dot iim.
Back to dot iim file, focus at line 17 after text group ATTR=TXT and text CONTENT=%5.
ATTR=TXT is point for imacro to be able to position the target on the page.
AND.
CONTENT=%5 is point insert info from csv file.
We must load text from csv for replace this text group at line 17.
Command to call Information in Column 9 is $COL9.
OK, We will test this iim file.
We will see iMacro don't select option is we want.
Because, Text is loaded and Text in the page is different.
Text in select option will be had space before or after text or will be had some mark is cause different from text in csv.
For resolve, We will use Asterisk before and after command COL9.
Asterisk Act on any message is different.
To do this the iMacro can select messages with similar characteristics.
Test code again. We can see iMacro select option is we wanted.
This is basic step for select option on fill form.
Add precision for iMacro select target in the page.
We must change ATTR to another attribute.
In video, I select attribute varname and value is category_id.
Just this way iMacro will be work more precisely.
Before, That is basic step How to select option fill form.
And Next is how to use JavaScript for select option fill form.
This way I like to use because resilient.
And can be applied to other positions on the page.
So, I will deploy the previous file dot iim.
And I will start dot iim by JavaScript command iimPlay see example in video.
And I will be comment disable line 16 and 17 in previous code dot iim.
After that I will use command extract COL9.
This extract will send variable from COL9 to JavaScript.
After that in JavaScript file I will use command iimGetLastExtract for get variable and leave them at variable name dataCol9.
Now info from COL9 is in variable name dataCol9.
Next step, We have to Analyze page.
Target to tag select in the page.
We have to find some attribute Have lost, Read out and Understand what is it.
OK, Now we want to go tag select and I will test find value of class in parent node.
if this value Just one all of the page we can use this variable to be a ladder to target point.
And results from search. Value of class has 14 point in the page.
So this results is not work for to be a ladder to tag select is we want.
OK. Now I will find parent node from last parent node again and results this value has only one in the page.
So, We can use the attribute for to be a ladder to target point.
Back to JavaScript file.
I create variable name findselect for command code find to class value name shopcat.
And from target value I write command to main target is we want, that is tag option is in tag select on the page.
After that I will write command FOR.
This command create for access to tag option one by one.
In command FOR. I write command get text in tag option and bring Comparison Text from csv file or COL9.
If one of all text from tag option has messages we want to be in there.
We will assume that the goal is correct and I will write command for get value that tag option.
Value from tag option Keep at new variable name valu. See example in video.
After that I will create iMacro code in JavaScript file.
So. that code will be select option tag is we want.
Similar to us copying commands from dot iim file to JavaScript file.
And I use variable of JavaScript in iMacro code. See example in video.
After that test code, We will see dropdown list select target is we want.
And this is video show How to select option fill form.
See you in next video and forgot to subscribe my Chanel. Thank you. Bye.
joya shoes 543v9epmzo935 joya sko danmark,joya sko norge,joya skor stockholm,joya cipő,joya zapatos,joya schoenen,joya scarpe,joya chaussures,joya schuhe,joya schuhe deutschland joya shoes 052f8powsa796
ReplyDelete