2
我只是想獲取當前網頁的絕對網址。這裏是代碼片段如何使用Selenium Perl API獲取當前網址
my $url_str = "BEFORE";
$sel->storeLocation("url_str");
$sel->comment(URL is $url);
Send command: storeLocation|url_str|
Got result : OK
Comment : URL is BEFORE
它似乎沒有工作。我嘗試使用$ url_str,\ $ url_str作爲storeLocation的參數,但徒勞無益。請幫助我究竟在這裏丟失了什麼
抱歉打擾你們.. $ SEL-> get_location
要麼作爲回答發佈並接受它,要麼刪除questi上 ;) – Konerak 2011-06-09 06:47:57