Selenium: use composition instead of inheritance

Bug: 48142
Change-Id: I511187727d001a4995ad130f0baf50e4f5571534