The dollar was capped against a basket of currencies on Thursday after Fed Chair Janet Yellen’s testimony before congress.