Hello there!
There was not a scientific way to predict the outcome of a cross between two parents until Gregor Mendel experimented on this. Mendel found that individual traits are determined by "discrete factors" later known as genes, which are inherited from the parents.
Hope this helps.