my jenn air dishwasher won't drain

my jenn-air dishwasher will go through the wash cycle but won’t drain the dirty water when done. the selenoid will open the diverter but very briefly. however even if i hold the selenoid open to allow the water to drain it still won’t drain. is this a timer issue or a selenoid issue. oh yah the drain hose is clear and water can flow through it freely. i also replaced the pump so its functioning properly now.