It’s working, green
Next, add aaname atteibute with dynamic selector using str_uad which has default value as 11.
Then can you press “Validate”?
If it’s green, please press “Highlight” and please check if it indicates target element.
Regards,
Hi, sorry for late reply.
Here is the result of it :
It’s not validated. Is aaname or innertext affecting the selector? I think that innertext are more ok to use than aaname value? Tried using that 2 before and it’s not working
Hi,
There might be extra white space in aaname. So can you try to add *
before and after str_uad like the following?
Regards,
Alright. In the previous green settings (the following image), when turn on Highlight button, which element is indicated? Is it what you expect?
Regards,
Yes it is what I expect. I writeline the result of column and index using your solution and I inspect using the UI explorer, the result is what I expected.
Is this can be alternative solution?
manipulating the cell of the id?
Hi,
The above settings is mostly good and it will work as it is. However, to be more accurate, it’s better to include day number information in aaname attribute etc.
In general approach, next add hardcoding aaname=‘11’ to the selector, then check.
If it’s good, replace 11 to dynamic variable and set 11 as default value of the variable. Please try to check override and set 11.
manipulating the cell of the id?
If id value has fix value or rule which we can estimate, it might be good idea. Can you find any rule?
Regards,
I did add the hardcode and validate, it’s not working also
the ID is different every months. For example :
1 may is on DayCell0
1 june is on DayCell3
I don’t understand how to play with the daycell, but here’s the concept of it given by my coworker.
The DayCell of 22 May is Cell21
The DayCell of 22 June is Cell24
Here’s the concept in excel :
Solution 1 : Dynamic solution
Every date “1” is starting from cell0 + sum of inactive date on week 1.
How to find the sum of inactive date in first week.
Solution 2 : Static solution
Making a dictionary for every each month and year as seen on the excel.
And I didn’t understand the concept so I don’t know what to do with it. Maybe you can solve this?
Regards,
This is may calendar
This is june calendar
Hi,
It seems strange…
Can you share screenshot of UiExplorer when choose tag, tableRow,tableCol and aaname, as the following. I’d like check selector string which is generated.
or we can also achieve it using ID with dynamic selector.
c = CInt(dateVar.DayOfWeek)
r = (dateVar.Day+New DateTime(dateVar.Year,dateVar.Month,1).DayOfWeek-1) \ 7
Then cell number will be c+r*7
However it’s mostly same as indicating by colIndex and rowIndex.
If we cannot use aaname or innertext, we can compromise to use colindex and rowindex only.
(Probably it will work.)
Regards,
Regards,
Here it is :
The solution you are giving below,
is it the solution to manipulate the DayCell? Because what I understand it is still manipulating with row and column index?
Hi,
For now I think the following setting is good as compromise.
If we need to be more accurate, first get text using the following selector setting and check its content equals day. If it’s good then click it.
Regards,
Do you mean get text of aaname?
If yes, I also tried that before.
Before using your solution, I was using mine where I do everything manually playing with Matrix (Column and Row). As seen in this screenshot below
My method is setting everything manually, and yours method are using function. I tried using both of the possibility and it’s not do able. If using this is not doable, what about the DayCell I given you before? Will it work?
Thanks
Hi,
We can achieve it simpler.
First, set Find Element using the above dynamic selector settings (use rowIndex and colIndex).
Next, set Get Text using output of FindElement in InputElement proerty.
Check if the value is what we expect.
Finally click the element using output of FindElement
Hi, I make the workflow of it and I got an error :
This is my workflow that I created :
This is each properties :
Variable type UIE_UAD is UIElement (See screenshot below)
Variable strValue_UAD is String
Input element is UIE_UAD
The error is time exceeded. How much the timer should I set for it?
Hi,
It’s mostly same as SelctorNotFound. So please check selector in FindElement. (Is it green if default value of each variable(rowIndex and colInddex) is set target value?)
Regards,
You are right. The selector is not working when I press validate on it
Hi,
First, it shows the variables are not defined. Can you define and assign proper value to the variable?
Second, tableRow of the second row shoudn’t be dynamic. Please modify static value or use css-selector instead of tableRow.
Regards,