I am trying to access the properties of(Properties are the ones which you can see in the Chrome browser developer tools when you highlight the table control on the browser) table object using the selenium web driver. My requirement here is to access the table properties like rows and childNodes . I am using the below code to get the properties of the table.
var propVlu = tblObj.GetAttribute("baseURI");
Console.WriteLine(propVlu.ToString());
The output of the code here is exactly what I want :
Test Name: TblIterateDemo
Test Outcome: Passed
Result StandardOutput:
http://testbpp.corum.com.au/main/(S(2zpcwh5e2xp4wfkbkhvxranb))/Customer.aspx
But if I try to access a property which has some tree structure like the below :
var propVlu = tblObj.GetAttribute(@"rows[""0""].baseURI");
if(propVlu != null)
{
Console.WriteLine(propVlu.ToString());
}
else
{
Console.WriteLine("Property not found");
}
I am getting an the following output
Property not found
Can some one please help me accessing these kind of properties belonging to a web control control on the browser. Please find the attachment containing the image.The property rows exists and also is not null when I check that on Chrome browser developer tools properties tab.
Image of my Question Description
cheers, Bharat.