get the parent element and find the button element and replace the text of it

I have this codes.

html

<div class="has_dropdown">   <button>Select branch</button>