I used an existing script in my project to scroll a page. The scroll does work without any issue. After the review of my scripts, it was commented that the scroll script I used is of fragile movement. I want to understand how the script was analyzed to be fragile. I'm using java and Cucumber framework. Can someone help to understand the issue
JavascriptExecutor js = (JavascriptExecutor)driver;
js.executeScript("document.getElementById('ContentScrollView').scrollTop= 450");