cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to spy the contents of 2 tables on the AWS site

a026833
Level 4

Hello,

I can sure use someone's help with this. I cannot use the conventional method of spying of the AWS Lambda Supported Runtimes table (below) also the Deprecated Runtimes table (not shown but on same website). Went through the lessons in BP University regarding Xpath/CSS. I am using this for the CSS attribute: #w835aac31c33b5 > tbody, which gives me the contents of the body of the table. The problem is that the first 3 characters of that table id change (once a week it seems). I then tried  WebPath/Xpath using the following expression: //table id[contains(text(), 'aac31c21b7'')] which didn't seem to work and would possibly be an issue with the deprecated table as it looks like it also ends with 'aac31c21b7'. I am not a web developer, so I don't know how to make these expressions work. When the table IDs are constant, I can pull its contents with the following stage:

a026833_1-1728915720055.png

 

 

 

a026833_0-1728915491904.png

 

 

 

2 REPLIES 2

tim.dauti
Level 3

Hello,

 

Can you try replace the path with following:

//table[contains(@id, 'aac31c21b7')]

Kindly

Tim

a026833
Level 4

Hello Tim. I was trying to stay away from the ID as it keeps changing. What I did was to use the //div[@class="table-container"][3]. The index of 3 gave me the correct table. There are 3 tables on that site. If they ever had additional tables, I may need to change it but it is better than having to worry about the ID which was changing often. Thank you again for taking the time to reach out!  ton the