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
Sujatha B2
Active particpant
Active particpant
Posts : 12
Join date : 2011-06-20

Element not found Empty Element not found

Mon Jun 20, 2011 2:27 pm
Message reputation : 0% (1 vote)
Hi
I am new to Selenium tool. I need to double click on the button i am able to record this but when i playback i am getting an error as timeout or element is not found. Please help.


Thanks in advance


Regards,
Sujatha B
avatar
freesky
Amateur
Amateur
Posts : 72
Join date : 2011-04-13

Element not found Empty Re: Element not found

Thu Jun 23, 2011 8:46 am
maybe it's a dynamic element
avatar
Sujatha B2
Active particpant
Active particpant
Posts : 12
Join date : 2011-06-20

Element not found Empty Re: Element not found

Thu Jun 23, 2011 10:52 am
Hi,

No its not a dynamic element. i am sure about that. please help me to solve this.

Thanks in advance

Regards,
Sujatha B
avatar
freesky
Amateur
Amateur
Posts : 72
Join date : 2011-04-13

Element not found Empty Re: Element not found

Thu Jun 23, 2011 1:14 pm
If you post the corresponding script and the html source code,only others know the detail then they can help you.
avatar
Sujatha B2
Active particpant
Active particpant
Posts : 12
Join date : 2011-06-20

Element not found Empty Re: Element not found

Thu Jun 23, 2011 6:30 pm
Hi,
From this link you can check the sample, http://mvc.syncfusion.com/sfmvcsamplebrowser/9.2.0.138/Diagram_MVC/Samples/4.0/GettingStarted/FlatDiagram. Please help me to solve my query.

Thanks in advance

Regards,
Sujatha B
avatar
freesky
Amateur
Amateur
Posts : 72
Join date : 2011-04-13

Element not found Empty Re: Element not found

Fri Jun 24, 2011 8:19 am
when I clicked the link,it said 'the resource cannot be found'.
avatar
Sujatha B2
Active particpant
Active particpant
Posts : 12
Join date : 2011-06-20

Element not found Empty Re: Element not found

Fri Jun 24, 2011 11:29 am
Hi,
Can you please try with IE9.0 or Firefox 3.5 or above. link which was provided before is considering the (.) also. please try the link given below http://mvc.syncfusion.com/sfmvcsamplebrowser/9.2.0.138/Diagram_MVC/Samples/4.0/GettingStarted/FlatDiagram

If your not able to access this link also. please copy paste the link in the new tab or new window.

Thanks in advance

Regards,
Sujatha B
avatar
freesky
Amateur
Amateur
Posts : 72
Join date : 2011-04-13

Element not found Empty Re: Element not found

Fri Jun 24, 2011 1:22 pm
which button do you need to double click
avatar
Sujatha B2
Active particpant
Active particpant
Posts : 12
Join date : 2011-06-20

Element not found Empty Re: Element not found

Fri Jun 24, 2011 1:43 pm
Message reputation : 100% (1 vote)
Hi,
You can click on any node which is available eg:book

Thanks in advance

Regards,
Sujatha B
avatar
Arthur
Active particpant
Active particpant
Posts : 23
Join date : 2011-05-23
Location : Pune

Element not found Empty Re: Element not found

Fri Jun 24, 2011 4:43 pm
Hi Sujatha B,

I have tried with this and it worked Please try it your self, when it double clicks it opens a text box and we can type in it.

$this->doubleClickAt("//img[@alt='Image_Content']", "10,10");
$this->type("Image_Textbox", "Suj");
This is PHP Code just change the locator for other nodes and its done.
HTML Code:-

<tr>
<td>open</td>
<td>http://mvc.syncfusion.com/sfmvcsamplebrowser/9.2.0.138/Diagram_MVC/Samples/4.0/GettingStarted/FlatDiagram</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//div[@id='SamplesTab']/ul/li[3]/a</td>
<td></td>
</tr>
<tr>
<td>doubleClickAt</td>
<td>//img[@alt='Image_Content']</td>
<td>10,10</td>
</tr>
<tr>
<td>type</td>
<td>Image_Textbox</td>
<td>Suj</td>
</tr>

Copy it in ur Selenium and try.
Thanks. Very Happy
avatar
Sujatha B2
Active particpant
Active particpant
Posts : 12
Join date : 2011-06-20

Element not found Empty Re: Element not found

Fri Jun 24, 2011 5:42 pm
Hi, I am not use the code which given above.[tr]
[td]open[/td]
[td]http://mvc.syncfusion.com/sfmvcsamplebrowser/9.2.0.138/Diagram_MVC/Samples/4.0/GettingStarted/FlatDiagram[/td]
[td][/td]
[/tr]
[tr]
// above highlighted part of the coding getting disappear when the test case is executed//
[td]clickAndWait[/td]
[td]//div[@id='SamplesTab']/ul/li[3]/a[/td]
[td][/td]
[/tr]
[tr]
[td]doubleClickAt[/td]
[td]//img[@alt='Image_Content'][/td]
[td]10,10[/td]
[/tr]
[tr]
[td]type[/td]
[td]Image_Textbox[/td]
[td]Suj[/td]
[/tr]
Please provide solution for this problem.
Thanks in advance



Regards,
Sujatha B
avatar
Arthur
Active particpant
Active particpant
Posts : 23
Join date : 2011-05-23
Location : Pune

Element not found Empty Re: Element not found

Fri Jun 24, 2011 5:49 pm
Hi,
I have attached the test case please open and execute 2-3 times.
Thanks.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://change-this-to-the-site-you-are-testing/" />
<title>New Test</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">New Test</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>http://mvc.syncfusion.com/sfmvcsamplebrowser/9.2.0.138/Diagram_MVC/Samples/4.0/GettingStarted/FlatDiagram</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//div[@id='SamplesTab']/ul/li[3]/a</td>
<td></td>
</tr>
<tr>
<td>doubleClickAt</td>
<td>//img[@alt='Image_Content']</td>
<td>10,10</td>
</tr>
<tr>
<td>type</td>
<td>Image_Textbox</td>
<td>Suj</td>
</tr>
</tbody></table>
</body>
</html>
avatar
Sujatha B2
Active particpant
Active particpant
Posts : 12
Join date : 2011-06-20

Element not found Empty Re: Element not found

Fri Jun 24, 2011 7:26 pm
Hi,
I tried with this code. It is working fine

Thanks a lot

Regards,
Sujatha B
Sponsored content

Element not found Empty Re: Element not found

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