Im having trouble taking a number value from a string on a webpage im testing. Im currently using:
int expected_potential_points = points_one + points_two + points_three + points_four; Assert.assertEquals(pot_points,expected_potential_points); System.out.println("Potential Points and picks are matching");
The problem is the selector is actually returning two strings aswell: "Potential Points" ":" "1476"
How can i extract the 1476 and use it as an int. Ive attached the html.
Aucun commentaire:
Enregistrer un commentaire