Used built in java browsing apis and took selenium out of the loop

but the selenium dependencies are still there.