If car started then battery role play is very limited to nothing at all.
If loosing power while driving, then check the spark plug, air filter is clean?, Fuel filter is fine etc.
If car is not starting at all (thats what no power you mean), Check the starter relay if you are so sure that battery is fine. Try jump start the car to see if battery is fine or not too.