vick Posted July 18, 2017 Posted July 18, 2017 Hi I can get table details from below code but i can not get array . Msgbox shows table id and number of rows correct. it says invalid object. can you help me why? Local $open_site=_IEGetObjById($oIE,"_ctl0__ctl39__ctl0__ctl1_wgWorkItems__baseGrid") MsgBox($MB_SYSTEMMODAL, "",$open_site.id &"||"& $open_site.rows) If @error Then MsgBox($MB_SYSTEMMODAL, "test", @error) EndIf Sleep(2000) Global $aArray=_IETableWriteToArray($open_site) If @error Then MsgBox($MB_SYSTEMMODAL, "testyyy", @error) EndIf Sleep(2000) _ArrayDisplay($aArray) thanks,
Danp2 Posted July 18, 2017 Posted July 18, 2017 Because the object isn't a table. Latest Webdriver UDF Release Webdriver Wiki FAQs
vick Posted July 18, 2017 Author Posted July 18, 2017 how to get row and column value as html tag is table
Danp2 Posted July 18, 2017 Posted July 18, 2017 Show us the HTML. Latest Webdriver UDF Release Webdriver Wiki FAQs
vick Posted July 18, 2017 Author Posted July 18, 2017 <table id="_ctl0__ctl39__ctl0__ctl1_wgWorkItems__baseGrid" rules="cols" copytable="true" copy="true" width="100%" height="100%" cellspacing="0" bordercolor="#AAAAAA" border="1" bgcolor="WhiteSmoke"> <tbody> <tr bgcolor="Black" align="Left"> <tr valign="Top" bgcolor="DarkBlue"> <tr valign="Top" bgcolor="#DFE4E4"> <tr valign="Top" bgcolor="#F7F7F3"> <tr valign="Top" bgcolor="#DFE4E4"> <tr valign="Top" bgcolor="#F7F7F3"> <tr valign="Top" bgcolor="#DFE4E4"> <tr valign="Top" bgcolor="#F7F7F3"> <tr valign="Top" bgcolor="#DFE4E4"> <tr valign="Top" bgcolor="#F7F7F3"> </tbody> </table> this html source
Danp2 Posted July 18, 2017 Posted July 18, 2017 Should work based upon limited information you've provided. <shrug> Latest Webdriver UDF Release Webdriver Wiki FAQs
vick Posted July 18, 2017 Author Posted July 18, 2017 i do not get you. what else information you want i can paste right away.
vick Posted July 18, 2017 Author Posted July 18, 2017 <table id="_ctl0__ctl39__ctl0__ctl1_wgWorkItems__baseGrid" rules="cols" copytable="true" copy="true" width="100%" height="100%" cellspacing="0" bordercolor="#AAAAAA" border="1" bgcolor="WhiteSmoke"> <tbody> <tr bgcolor="Black" align="Left"> <tr valign="Top" bgcolor="DarkBlue"> <td valign="Top"> <font color="White"> <a href="javascript:__doPostBack('_ctl0$_ctl39$_ctl0$_ctl1$wgWorkItems$_baseGrid$_ctl3$_ctl0','')"> <font color="White">></font> </a> </font> </td> <td valign="Top"> <font color="White">467071</font> </td> <td valign="Top"> <font color="White">ON - Site ID 5557 Not Connecting>24hrs</font> </td> <td valign="Top"> <td valign="Top"> <td valign="Top"> <td valign="Top"> <td valign="Top"> </tr> i am looking for to get bold text from this table
Danp2 Posted July 18, 2017 Posted July 18, 2017 It's not working as you desire. For us to help further, we need to be able to reproduce the situation. Either provide a URL or post the page's complete HTML. If you can't post this due to restricted access, etc. then find another publicly accessible site that demonstrates the same symptoms / situation. Latest Webdriver UDF Release Webdriver Wiki FAQs
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now