When using verifyElementPresent, I get True return value.
But when I try to extract the id as text using the following code, it shows the following in the Log =>
[error] Missing * or REGEX in sourceExtract. Extracting a plain text doesn’t make much sense
I need to know the correct code to extract the id by partial match from the page source code.
I need to get as text by eliminating this part "10.30-13.00” of the dynamic id; remainder will be something like 55 or 36, a number.
I am stuck at this for over 2 months. Please help and please explain, I am NOT an expert.
The problem is that the page gives access to the radio button for two minutes tops. at 01:00:00 and then it does not load the page with the radio button (our target with the dynamic / changing id). It shows an overlapping message.
The id starts with something like this : id=10.30-13.0050 and when users have clicked and booked, it reduces the last two digits of the id by 1 until it reaches 0 or 00 (I don’t know). So the part “10.30-13.00” remains constant.
When I recorded each step, the clicking of the radio button was captured in Kantu code as follows, in the form of two commands :
COMMAND : type
TARGET : id=10.30-13.0050
VALUE : 50
COMMAND : CLICK
TARGET : id=10.30-13.0050
Should I save the page as html single file and then post it?
Just using click or ckickAndWait or even XClick along with partial match using XPATH, it does not work.
As shown in the recorded steps, I think the appended number of slots free (the number starting at 80 or 50 and then decreasing by one for every customer) is to be entered as VALUE with type COMMAND.
I think I have to BOTH type and click the radio button in terms of Kantu code.
The website has made it a bit difficult to prevent automation.
I am not even sure my XPATH expression or partial match finder code is correct.
I can give you any code that I am using so that you can check whether it’s okay or not.
Thanks for the new approach brother. I really do.
How do I solve the first problem where I am supposed to TYPE the last two digits of the id as VALUE into the TARGET?
When I recorded each step, the clicking of the radio button was captured in Kantu code as follows, in the form of two commands :
COMMAND : type
TARGET : id=10.30-13.0050
VALUE : 50
I have uploaded some stuff which may help. And this is the snippet which I could extract from the page source in Developer mode of Google Chrome browser :
The website allows slot booking only at 01:00 A.M. After that, the page is accessible but with an overlaying message, covering and disabling the link on the calendar through which we would get the radio button in question.
I’ll try your quoted code today, will let you know, thanks bro.