I have a requirement of logging into JIRA and pulling some data from it. I want to write a selenium script for it. But I am not able to login to JIRA using selenium webdriver script. Is there any way I can login through my script?
my script is simple like this:
driver.findElement(By.id("login-form-username")).sendKeys(userName);
driver.findElement(By.id("login-form-password")).sendKeys(passWord);
driver.findElement(By.xpath("//button[contains(@type,'submit')]")).submit();
It clicks the login button but does not get logged in.
Any help?
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/dba616bb-532f-42bb-b53a-87acb5b854f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You shouldn't be using Selenium for this. Jira provides APIs to interact with it. So you basically leverage those APIs to interact with the Jira system and get whatever information you require.In the recent past, I have found this library to be pretty easy to use to interact with a Jira system.
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/My Technical Scribbings @ http://rationaleemotions.wordpress.com/
On Tue, Sep 27, 2016 at 2:43 AM, soumyaranjan pradhan <soumyar...@gmail.com> wrote:
I have a requirement of logging into JIRA and pulling some data from it. I want to write a selenium script for it. But I am not able to login to JIRA using selenium webdriver script. Is there any way I can login through my script?
my script is simple like this:
driver.findElement(By.id("login-form-username")).sendKeys(userName);
driver.findElement(By.id("login-form-password")).sendKeys(passWord);driver.findElement(By.xpath("//button[contains(@type,'submit')]")).submit();
It clicks the login button but does not get logged in.
Any help?
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.