473,398 Members | 2,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

how to resolve Cannot call method "getTable" on an undefined value on windows

12
I m getting error in calling getTable() method.
Line is:-
my $table_object=my $ff->getTable("id:", "ctl00_ContentPlaceHolder1_gridAMID");

suggest way to resolve it.
Mar 14 '12 #1
4 2385
RonB
589 Expert Mod 512MB
That error message is telling you that $ff isn't defined. You need to check the code where $ff is defined/assigned and find out why it failed.

Also, you have an extra 'my' in that statement which will also cause a problem (possibly relating to this error) and it should be removed.
Mar 14 '12 #2
numberwhun
3,509 Expert Mod 2GB
When you are asking us to troubleshoot your code, it is more helpful to include all of the code, that way we can follow the code and better determine where you error might be.

Regards,

Jeff
Mar 15 '12 #3
Anuja T
12
Here is my code:-
$sel->wait_for_page_to_load_ok("100000");
$sel->wait_for_page_to_load_ok("100000");
my $html_file=getTable("(Website name)");

my $te = new HTML::TableExtract();
$te->parse($html_file);
my @tables = $te->tables;
my $table_count = scalar @tables;
print "tables count:$table_count\n";


$te = HTML::TableExtract->new( depth => 1, count => 1 );
#$te = new HTML::TableExtract( attribs => { id => 'TABLE1' } );
print"Got depth n count...\n";
$te->parse(get $ARGV[0] || get $html_file);
print"Got HTML file...";
foreach $ts ($te->tables)
{
print "M inside 1st loop...\n";
print "Table found at ", join(',', $ts->coords), ":\n";
foreach $row ($ts->rows)
{
print"M inside 2nd loop...\n";
print " ", join(',', @$row), "\n";
}



And another issue is "its not entering into loop."
Mar 15 '12 #4
chorny
80 Expert
I don't see any getTable method call in your code.

As for loop, you can use tables_report method of HTML::TableExtract to see if htere are any tables.
Mar 21 '12 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Piet | last post by:
Hello, I have written a small program which dynamically displays data from a data structure in a wx.grid. The grid reacts as expected when the data structure is enlarged: a new row is added and...
0
by: scottmallory | last post by:
Greetings, I am new to Python...and I am having some difficulty updating a grid (wx.grid.PyGridTableBase). Everything works just fine (adding /deleting/ resizing rows, cols) except updating...
0
by: bryanp10 | last post by:
I have a DataList on my page which contains multiple DropDownLists. My page defaults to showing six rows in the DataList. I want the ability to dynamically add rows if needed. Right now I'm just...
5
by: mtv | last post by:
Hi all, I have the following code: ================================ Webservice side: public class MyWS: WebService { private myLib.DataObject curDataObject;
5
by: csgraham74 | last post by:
Hi guys, Basically i have been developing in dotnet for a couple of years but ive had a few issues in regards to error handling. For example - I have a class that i call passing in a stored...
5
by: H | last post by:
dim subName = "GetTable" & strCtr & "()" I want to now call the GetTable1() sub or GetTable2() sub, depending on the value of strCtr. How can I call the function whose name is in the variable...
2
by: Mucahit ikiz | last post by:
I cant make a full dynamic query in LINQ I have 2 situation methods (only_exp_query, only_tbl_query) those are working. .... using System.Linq.Dynamic; using System.Data.Linq; .... string...
4
by: jyo123 | last post by:
Hi, Is there any way to write perl script to save the popup window into specified location.Please anyone help on this. Thanks is advance.
0
by: tvnaidu | last post by:
database file gets created using below sql file, then lua script calls "db.import config_ascc", then I get errors says "insert table failed for eventLog", below are my sql file entry, config file,...
2
by: ketanm | last post by:
Hi all, I have to get all table and it's row and column entry. let say this is the url http://hg.sagemath.org and it has four table name,Description,Contact,Last change and each table has some...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.