1. Problems with certain selection buttons not being selected due to limitations on some pages of the page
a lot of times due to some restrictions on the page can cause us to not be able to use webdriver to achieve our manual normal operation, we can execute js to properly change the page style, For example, some selection boxes in the page display boundaries, because the reason for the display of the scroll bar while at the border when the click on the selection box is not a point can only drag the scroll bar adjustment position, but weddriver automation is not as smart as manual, This is what we can consider by JS to remove the scroll bar, to show all the information so that the above problems can be avoided. The application of JS is as follows: first you need to write a character-type js, and then use the Javascriptexecutor interface such as:
((Javascriptexecutor) driver). Executescript (JS)
Selenium Java, execute JS change page