I'm quite new to PhantomJS. I want to do page automation with PhantomJS to a web site by manipulating the HTML elements (for example: taking buttons/links by their IDs and triggering clicks) and going from one page to another and doing the same things. 

What I was wondering is: This is actually a web system that is created and belongs to some company, so **in the future if they decided to make a complete redesign to their system my whole work will be lost**, since they will have completely new design with new HTML structure and new IDs of elements. **Is that correct? Is there a way to handle this problem?**