<?php $xhe_host = "127.0.0.1:7014"; // The following code is required to properly run XWeb Human Emulator require("../Templates/xweb_human_emulator.php"); $bUTF8Ver=true; $bid=30.5; echo round($bid); $browser->navigate("https://ya.ru/"); $keyboard->send_input($bid); // Quit $app->quit(); ?>
Как ввести в форму округленное число
Как ввести в форму округленное число
Здравствуйте, есть переменная со своим значением 30,5, при ее округлении в панель отладки выводится округлённое число, а в форму яндекса не округленное. Как ввести туда округленное число.
Re: Как ввести в форму округленное число
Либо так
<?php $xhe_host = "127.0.0.1:7014"; // The following code is required to properly run XWeb Human Emulator require("../Templates/xweb_human_emulator.php"); $bUTF8Ver=true; $bid=30.5; echo $bid=round($bid); $browser->navigate("https://ya.ru/"); $keyboard->send_input($bid); // Quit $app->quit(); ?>Либо так
<?php $xhe_host = "127.0.0.1:7014"; // The following code is required to properly run XWeb Human Emulator require("../Templates/xweb_human_emulator.php"); $bUTF8Ver=true; $bid=30.5; echo round($bid); $browser->navigate("https://ya.ru/"); $keyboard->send_input(round($bid)); // Quit $app->quit(); ?>