Hello,
Just like my other topic, the reverse is happening time to time.
Other topic to see as a summary : Missed clicks on login button?
I have some textboxes inside the admin panel. Imagine it like wordpress. Title and post content to publish texts.
Somehow, Ui.Vision can’t detect my post content textbox, and the solution i found was that :
In the text editor, there is a button to change from view/write mode to the “source” mode.
So the text you’ve written in view/write mode is shown as html codes in a textbox here.
If i make Ui.Vision macro to click on “source mode” button first,
it can find the textbox and paste the text inside.
Otherwise, it fails, doesn’t find the text box and cannot write.
So the problem is,
Just the opposite of the first topic of mine,
It doesn’t click on the “source button” but it believes it has clicked,
So it tries to keep continuing from the next line.
But it fails. Because it didn’t click on source button,
it just stops as long as the timeout time, and stops or continues with next loop.
Each time i need this, i make it loop for around 100 times.
And because I use .csv , i can not stop, fix and make it continue, because then the loop must be started from the beginning, not where it failed. (needs to read csv again and it is the beginning)
The “source button” is two-way button. If you click once, youre in source mode. If you click twice, youre not in source mode.
So, i cannot do a two times guarantee click.
How should I fix it?
Maybe a if/else command?
But again, I’m not so well on proggramming.
Need a though example or tutorial…
My codes :
{
“Command”: “click”,
“Target”: “id=cke_33_label”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//*[@id="cke_1_contents"]/textarea”,
“Value”: “”
},
cke_33 is the source button.
ScreenShots