Highlighted
Absent Member.
Absent Member.
124 views

Date selection error in web click and script

In a web C&S script, date field need to be selected from a calendar. This action is recorded as a clicking on co-ordinate in the specified calendar.

Problem: Because of the script been recorded with coordinates, is it possible to do the parameterization of the date input to provide varied date selection during runtime?
0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

Re: Date selection error in web click and script

Hi,

Along with the function that records the coordinates, there would also be a function "web_text_link" in your script. In this function, there is an argument by name "DESCRIPTION" which should have a date value, eg. "Text=20".

You can parameterize this date value to run the scripts for different dates.

Regards,
Muhammad Abrar
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Date selection error in web click and script

Hi Muhammed,

The actual problem was with the year selection. Input date should be some date in the previous year.

We resolved this problem, by entering the value for date instead of selecting it from the calendar.

Now we have another problem in including text checks. Is web reg find function supported in c&s protocol. We tried including Verification arguments in the scripts, but that was very high level. Which indicated if functions are executing without error or not. Is there any way to check for the display of success message without using "ContainsText" verification argument.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.