Fix agent selenium tests