This is a relative of your Common Housefly. I don't know what the frothy bubbles are in front of the fly, but I don't think its anything to do with the fly. It looks a bit like Cuckoo Spit, which would have a young Leafhopper inside, but it's on the wrong place on the plant.