oTree Forum >

is there a way to check on which page a bot is?

#1 by Valery

Hi,

I have an issue using bots for testing. The command line testing works fine, but in the browser bots throw errors complaining about a discrepancy between the actual and expected pages.

I have been trying 
url = self.__dict__["participant_bot"].__dict__["url"]
but this appears to produce None in round 1. Is there a better, regular, way to check?

Regards,
Valery

#2 by Chris_oTree

Can’t you just use the regular system of:

yield PageName

If the player is on PageName, then it will continue as usual.
If the player is not on PageName, then there will be an error and the trace back should show what page the bot is actually on.

Can you show the trace back? Also what otree version.

Write a reply

Set forum username