java - How to write loop for webpage counter -


there's element on webpage thats counter looks this:

<span id="counter_index_page_325846">00:00:51</span> 

how write loop element every time counter gets down 00:00:01 , keeps doing assuming goes minute every action performed.

this have far:

while (counter_index_page_325846.value < 00:00:01 ) {     //perform action } 

you must way

 while (counter_index_page_325846.value > 00:00:01)      counter_index_page_325846 = // assign new value 

use greate (>), otherwise while loop won't work


Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -