Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
guzr1
Posts : 5
Join date : 2013-03-20

New to Selenium Empty New to Selenium

Wed Mar 20, 2013 1:10 am
Hello,

I'm using IDE to record test cases and I'm getting error on some of them when I play them back.

My test scenario is to delete an item. When it gets to the delete button, it performs a click | link=delete |. I get [error] Element link=delete not found.

Does anyone have any ideas on what I can do to get this to pass?

Thanks,
avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 38
Location : Denver, CO

New to Selenium Empty Re: New to Selenium

Wed Mar 20, 2013 1:40 am
Just from your error, the delete link is not being found, so I have to ask is the delete link actually present when attempting to click on it?

Does it work if you slow the script down? How about if you execute only that command?

This is a very vague description, so please give more info
avatar
guzr1
Posts : 5
Join date : 2013-03-20

New to Selenium Empty Re: New to Selenium

Wed Mar 20, 2013 2:07 am
It does not work when I slow down the script and, it also fails when I execute only the command. I'm not sure if this helps, but here is the log when I run the script on the app I'm testing, up to the point to were it fails.


  • [info] Executing: |open | /login | |
  • [info] Executing: |assertTitle | NetoCloud :: Login | |
  • [info] Executing: |type | id=username | |
  • [info] Executing: |type | id=password | |
  • [info] Executing: |clickAndWait | name=commit | |
  • [info] Executing: |assertTitle | NetoCloud :: Products - Index | |
  • [info] Executing: |click | xpath=(//a[contains(text(),'Details')])[11] | |
  • [info] Executing: |click | link=delete | |
  • [error] Element link=delete not found
avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 38
Location : Denver, CO

New to Selenium Empty Re: New to Selenium

Wed Mar 20, 2013 2:13 am
Looking at the log, the delete link is not there.

Can you try this:

storeElementPresent | link=delete | deleteLink
echo | ${deleteLink}

avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 38
Location : Denver, CO

New to Selenium Empty Re: New to Selenium

Wed Mar 20, 2013 2:23 am
If the result of the echo commands returns 'true', it is recognizing the link on the page. If it returns 'false' the element is not there. I suspect it will return false.


FYI I can use the chat on the home page to walk you through it
avatar
guzr1
Posts : 5
Join date : 2013-03-20

New to Selenium Empty Re: New to Selenium

Wed Mar 20, 2013 4:42 am
I was able to get it working. Thanks for your help.
avatar
Rifaz Ahamed
Posts : 1
Join date : 2013-03-20

New to Selenium Empty SELENIUM IDE

Wed Mar 20, 2013 1:08 pm
How to split the testcases from testsuite on selenium IDE, if we record the whole application and saved as Test suite?
avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 38
Location : Denver, CO

New to Selenium Empty Re: New to Selenium

Wed Mar 20, 2013 9:45 pm
Rifaz Ahamed wrote:How to split the testcases from testsuite on selenium IDE, if we record the whole application and saved as Test suite?

This has nothing to do with the original post...Start a new topic
avatar
IftikharNazir
Posts : 1
Join date : 2013-09-18

New to Selenium Empty Re: New to Selenium

Thu Sep 19, 2013 11:27 am
I think you are trying to delete the button that is actually not existing.
e.g Suppose you are recording a script and delete the required things. if will be deleted during recording. But next time when you will try to run that script it will not found the delete button. because that button is already deleted.
If the scenario is like this then please let me know
avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 38
Location : Denver, CO

New to Selenium Empty Re: New to Selenium

Mon Sep 23, 2013 11:33 pm
IftikharNazir wrote:I think you are trying to delete the button that is actually not existing.
e.g Suppose you are recording a script and delete the required things. if will be deleted during recording. But next time when you will try to run that script it will not found the delete button. because that button is already deleted.
If the scenario is like this then please let me know
Refer to the OP's last post
Sponsored content

New to Selenium Empty Re: New to Selenium

Back to top
Permissions in this forum:
You cannot reply to topics in this forum