How can I retrieves divs into a dynamic page in Java?

35 views Asked by At

I've been trying to specifically retrieve a div that changes to pass the turn to the other player on a dynamic page. I'm working with Selenium because I think that's the best option I have, but I'm not sure if there's another way to access divs.

When I use .findElement(By.className("player")) (I've also tried with cssSelector but nothing happens), I encounter the following error:

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0:exec (default-cli) on project BombPartyBot: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:

I've also tried changing Properties -> Actions and Run, but nothing happens, and I'm not sure what the problem is. I'm somewhat new to coding, so I hope you can help me.

PD: I'm working in NetBeans on the last version.

0

There are 0 answers