Currently working on Java programming. Here is a snippet of web code I am dealing with:
<button class="btn-link" data-sugg-sources="full_name" data-sugg-technik="make_initial_and_name">NG1ulkan</button>
When I right-click and copy the CSS selector, I get this code from the website:
'.suggestions > ul:nth-child(2) > li:nth-child(1) > button:nth-child(1)'
The main question now is: How can I locate this element using this selector, and how can I focus on it and click using Selenium in Java? I am also utilizing JavascriptExecutor js = (JavascriptExecutor) driver; in my code for focusing.