Step 1: Idea behind the method:
Take a uniform wire of length $L$ and resistance $R$ carrying a constant current $I$ from a driver battery of emf $E$. The voltage across the whole wire is $V=IR$, so the voltage for each unit length is $k = IR/L$.
A piece of the wire of length $l$ therefore has a potential difference $kl$ across it. This is the only property we use.
Step 2: Set up the circuit:
Join a two-way key so that either cell $E_1$ or cell $E_2$ can be joined to the wire. Both cells have their positive poles towards the end A, the same end that is attached to the positive pole of the driver battery. A galvanometer and a jockey complete the path to the wire.
The driver battery must have emf larger than both $E_1$ and $E_2$, otherwise no balance point will be found on the wire.
Step 3: Find the null point with cell 1:
Touch the jockey at different points until the galvanometer reads zero. Suppose this occurs at a distance $l_1$ from A.
With zero current in the galvanometer branch, the cell emf equals the voltage across that part of the wire:
\[ E_1 = kl_1 \]
Step 4: Find the null point with cell 2:
Throw the key to cell 2 and repeat. Let the null point be at distance $l_2$ from A. Then
\[ E_2 = kl_2 \]
Step 5: Take the ratio:
The driver current was not changed in between, so $k$ has the same value in both cases. Taking the ratio of the two equations gives
\[ \frac{E_1}{E_2}=\frac{l_1}{l_2} \]
Measuring the two lengths with a metre scale is enough to compare the emfs. If one emf is known, the other follows at once.
Final Answer:
Comparing the null-point lengths of the two cells gives the ratio of their emfs.
\[ \boxed{\frac{E_1}{E_2}=\frac{l_1}{l_2}} \]