Posted: 3 Mar 2017 8:10 EST Last activity: 23 Aug 2018 19:03 EDT
How to Interrogate a Web page controls that is changing dynamically the Web Page and its controls as well
I need to interrogate a web page whose url is changing dynamically. I am able to match this web page changing the Document URL Match rule. And now I need to interrogate the controls and get the text inside the HTML table controls where these Element IDs were also framing dynamically. So the first time I interrogated and the match rules used there I am not getting matched for the next time.
Could you Please help me out in resolving this issue.Please find the attached screen shot and let me know if any possibility is there.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
I see two possibilities, but you have not included enough information to tell for sure. Next time show the values you need to match and the complete match rules. In this screenshot you have a Text match rule. Text matches are often the culprit since 2 different lookups usually will result in different text values. The other possibility is the Element ID match rule. Check to make sure your Element IDs are the same.
This application hits a third party ticketing service application (CA Service Desk application) for which we are trying to fetch the details of each service or request.We are trying to automate this process. on this Process while interrogating the controls each time I hit the main url it is changing dynamically however we are able to solve this using Document URL match rule but not able to interrogate the internal HTML table controls to get the details individually.
Tried with different match rules
Element Inner Text
Table Schema match Rule
Web control children
The following are the snapshots that lists the View Source code of page each time for different request where the internal Element ID is also changing dynamically for each request, I need to get the contact details and this is framed in the form of table and each request the table id is also changing from for example dtltbl0 for contact details table once and another time dtltbl1 etc and the classes used for all the tables is same where the page contains almost 12 to 14 tables. Atleast to match based on class match rule etc
Could you please help us to figure out a way to interrogate these table cells so that this works for any Request.
Also please confirm whether we can interrogate a Third Party Legacy application or not.
I don't see any reason that the Html Table Designer would not work based on the snippet of page code you sent. Can you give us some screenshots showing the actual page and some shots of what you have tried?
It is obvious from what you have sent that each table row has a unique Element ID. If you match the row with a StartsWith rule to match the Element ID, set UseKeys to True on the control and turn off Element ID matching on the control (this is necessary when doing a partial match on an Element ID) you should be able to get a collection of table rows. If you can do that you should be able to get the individual cells as well.
(EX:http://blrkecsdp01/CAisd/sdweb.exe?OP=SEARCH+FACTORY=cr+SKIPLIST=1+QBE.EQ.id=40712597) where the url is turned as http://abcdd08/CAisd/pdmweb4.exe
which I am hitting some CA service Desk URL. First time I am able to interrogate the needed controls available in this web page and while running the automation I am not able to get it . Suppose I want to get the contact details of the Requestor as shown in the snapshot capture3. The View Sources for the same url is as in snapshots VS1 and VS2 images. And in this I am able to find one field value as in VS3 image.
The OpenSpan studio snapshots are attached in the snapshots OS1,OS2 and OS3 images. These are the snapshots for main URL and individual elements and through HTML table designer and the Autoamtion I am trying for single request is as in sanpshot Atnm image.
Each time the URL is changing for the same or differnt request along with the form as well.