https login request - selenium webdriver -


i trying access https login url login page , actions, unable same.

these observations.

when hit actual url, internally leading url having jsession id appended , loading requested page [now actual url formed].

steps :

  • the actual url : https:/abcd.xyz.com:7443/abcd/web/admin

  • when hit above url driver.get("https:/abcd.xyz.com:7443/abcd/web/admin"); , when test running appended jsession id url, looks below, https:/abcd.xyz.com:7443/abcd/loginasguest.jsp;jsessionid=z712ty0rn0bhlth6q2q02cbj233l0jhwnhy7vxw9ntnzdbljlxqt!-840704556

  • then actual url formed [https://abcd.xyz.com:7443/abcd/web/admin] page loaded.

here problem is, script not proceeding there , getting nosuchelementfound exception due not able login page.

any in resolving above issue useful.

my webdriver code looks :

firefoxprofile profile = new firefoxprofile(); profile.setassumeuntrustedcertificateissuer(false); webdriver driver = new firefoxdriver(); driver.get("https://abcd.xyz.com:7443/abcd/web/admin"); webelement uname = driver.findelement(by.name("username")); webelement pwd = driver.findelement(by.name("password")); 

log shows :

exception in thread "main" org.openqa.selenium.nosuchelementexception: unable locate element: {"method":"name","selector":"username"}

any in resolving above issue useful.

thanks,
-anil 09566212889

i think useful you...

firefoxdriver driver=new firefoxdriver(); driver.get("http://www.gmail.com"); thread.sleep(1000); driver.findelement(by.id("email")).sendkeys("xx"); driver.findelement(by.id("passwd")).sendkeys("xx"); driver.findelement(by.id("signin")).click(); thread.sleep(10000); 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -