Use the Magic Wand tool to select all objects in a document with the same or similar fill attributes (such as color and pattern).
You can customize the Magic Wand tool to select objects based on stroke weight, stroke color, opacity, or blending mode. You can also change the tolerances used by the Magic Wand tool to identify similar objects.
To create a new selection, click the object containing the attributes you want to select. All objects with the same attributes that were clicked are selected.
To add to the current selection, press Shift and click another object containing the attributes you want to add. All objects with the same attributes that were clicked are also selected.
To subtract from the current selection, press Alt (Windows) or Option (Mac OS) and click the object containing the attributes you want to subtract. All objects with the same attributes are removed from the selection.