Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
$anchor->get_inner_text_by_number('34');
$anchor->get_inner_text_by_number('36');
$anchor->get_inner_text_by_number('38');
$anchor->get_inner_text_by_number('40');
$anchor->get_inner_text_by_number('42');
$anchor->get_inner_text_by_number('44');
$anchor->get_inner_text_by_number('46');
$anchor->get_inner_text_by_number('48');
$anchor->get_inner_text_by_number('50');
$anchor->get_inner_text_by_number('52');
$anchor->get_inner_text_by_number('54');
$anchor->get_inner_text_by_number('56');
$anchor->get_inner_text_by_number('58');
$anchor->get_inner_text_by_number('60');
$anchor->get_inner_text_by_number('62');
$anchor->get_inner_text_by_number('64');
$anchor->get_inner_text_by_number('66');
$anchor->get_inner_text_by_number('68');
$anchor->get_inner_text_by_number('70');
$anchor->get_inner_text_by_number('72');
$anchor->get_inner_text_by_number('74');
$anchor->get_inner_text_by_number('76');
$anchor->get_inner_text_by_number('78');
$anchor->get_inner_text_by_number('80');
$anchor->get_inner_text_by_number('82');
$anchor->get_inner_text_by_number('84');
$anchor->get_inner_text_by_number('86');
$anchor->get_inner_text_by_number('88');
$anchor->get_inner_text_by_number('90');
$anchor->get_inner_text_by_number('92');
$anchor->get_inner_text_by_number('94');
$anchor->get_inner_text_by_number('96');
$anchor->get_inner_text_by_number('98');
$anchor->get_inner_text_by_number('100');
$anchor->get_inner_text_by_number('102');
$anchor->get_inner_text_by_number('104');
$anchor->get_inner_text_by_number('106');
$anchor->get_inner_text_by_number('108');
$anchor->get_inner_text_by_number('110');
$anchor->get_inner_text_by_number('112');
$anchor->get_inner_text_by_number('114');
$anchor->get_inner_text_by_number('116');
$anchor->get_inner_text_by_number('118');
$anchor->get_inner_text_by_number('120');
$anchor->get_inner_text_by_number('122');
$anchor->get_inner_text_by_number('124');
$anchor->get_inner_text_by_number('126');
$anchor->get_inner_text_by_number('128');
$startkey=file('startkey.txt');
for ($i=0;$i<5;$i++)
{
$textarea->set_value_by_number(0,$startkey[$i]);
$element->click_on_element_by_name('gwt-debug-searchPanel-searchButton-content');
$browser->wait_for(240,1);
sleep(5);
for($i=34;$i<129;$i+=2)
{
$key=$anchor->get_inner_text_by_number($i);
add_file('C:\123.txt',"$key\r\n");
}
}
$startkey=file('startkey.txt');
for ($i=0;$i<5;$i++)
{
$textarea->set_value_by_number(0,$startkey[$i]);
$element->click_on_element_by_name('gwt-debug-searchPanel-searchButton-content');
$browser->wait_for(240,1);
sleep(5);
for($j=34;$j<129;$j+=2)
{
$key=$anchor->get_inner_text_by_number($j);
add_file('C:\123.txt',"$key\r\n");
}
}
Используй циклы
PHP:for($i=34;$i<129;$i+=2) $anchor->get_inner_text_by_number('$i');
for($i=34;$i<129;$i+=2)
$anchor->get_inner_text_by_number($i);
for($i=34;$i<129;$i+=2)
$anchor->get_inner_text_by_number("$i");
$startkey=file('startkey.txt');
for ($i=0;$i<5;$i++)
{
$textarea->set_value_by_number(0,$startkey[$i]);
$element->click_on_element_by_name('gwt-debug-searchPanel-searchButton-content');
$browser->wait_for(240,1);
sleep(5);
for($y=34;$y<129;$y+=2)
{
$key=$anchor->get_inner_text_by_number($y);
add_file('C:\123.txt',"$key\r\n");
}
}
$startkey=file('startkey.txt');
for ($i=0;$i<5;$i++)
{
$textarea->set_value_by_number(0,$startkey[$i]);
$element->click_on_element_by_name('gwt-debug-searchPanel-searchButton-content');
$browser->wait_for(240,1);
sleep(5);
for($y=34;$y<129;$y+=2)
{
$key=$anchor->get_inner_text_by_number($y);
add_file('C:\$startkey[$i].".txt","$key\r\n");
}
}
Попробуй такя вижу это как то так, но неработаетPHP:$startkey=file('startkey.txt'); for ($i=0;$i<5;$i++) { $textarea->set_value_by_number(0,$startkey[$i]); $element->click_on_element_by_name('gwt-debug-searchPanel-searchButton-content'); $browser->wait_for(240,1); sleep(5); for($y=34;$y<129;$y+=2) { $key=$anchor->get_inner_text_by_number($y); add_file('C:\$startkey[$i].".txt","$key\r\n"); } }
$startkey=file('startkey.txt');
for ($i=0;$i<5;$i++)
{
$textarea->set_value_by_number(0,$startkey[$i]);
$element->click_on_element_by_name('gwt-debug-searchPanel-searchButton-content');
$browser->wait_for(240,1);
sleep(5);
for($y=34;$y<129;$y+=2)
{
$key=$anchor->get_inner_text_by_number($y);
add_file("C:\\".$startkey[$i].".txt","$key\r\n");
}
}
function add_file($path,$page_body)
{
$file=fopen($path,"a+");
fputs($file,$page_body);
// close out file
fclose($file);
}