Selenium Help

Pho3nix

The Legend
Joined
Jul 31, 2009
Messages
32,827
Reaction score
3,033
Location
On the toilet
Hi guys,

Working with this at the moment and struggling with something that should really be very basic.
I'm trying to send login details to a page but struggling with the password field.

It seems to be similar to myBB's version as I can get teh cursor to focus in the element but I can't actually send the details through.

I've tried with xpath, ID and even cssSelector.

If you need to see what I'm on about, inspect the password field on the default :www.mybroadband.co.za/vb page and share your thoughts.

A little confused at teh moment.
 
Managed to figure this out, thanks to this link : http://stackoverflow.com/questions/41024551/selenium-sending-text-to-password-field

Using dev tools, I couldn't find/see the actual password field. :o

Code:
WebElement passwordHint = driver.findElement(By.name("vb_login_password_hint"));
passwordHint.click();

WebElement passwordInput = driver.findElement(By.name("vb_login_password"));
passwordInput.sendKeys("mypassword");
 
Top
Sign up to the MyBroadband newsletter
X