sut_hardware_info
set_hardware_info($hardware Concurrency=-1,$device Memory=-1,$device Pixel Ratio=-1); - set hardware data in the JS engine. Sets navigator (hardwareConcurrency,deviceMemory) (Available from version 7.0.8)
The function accepts parameters as input:
$hardwareConcurrency – number of processors (threads) available to the browser$deviceMemory – number of gigabytes of memory available to the browser$devicePixelRatio – screen density (window.devicePixelRatio), available from version 7.0.42
After testing, the function returns the result of its work to the script :
true – successfully setfalse – failed to set