- Sujatha B2Active particpant
- Posts : 12
Join date : 2011-06-20
Element not found
Mon Jun 20, 2011 2:27 pm
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
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
- freeskyAmateur
- Posts : 72
Join date : 2011-04-13
Re: Element not found
Thu Jun 23, 2011 8:46 am
maybe it's a dynamic element
- Sujatha B2Active particpant
- Posts : 12
Join date : 2011-06-20
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
No its not a dynamic element. i am sure about that. please help me to solve this.
Thanks in advance
Regards,
Sujatha B
- freeskyAmateur
- Posts : 72
Join date : 2011-04-13
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.
- Sujatha B2Active particpant
- Posts : 12
Join date : 2011-06-20
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
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
- freeskyAmateur
- Posts : 72
Join date : 2011-04-13
Re: Element not found
Fri Jun 24, 2011 8:19 am
when I clicked the link,it said 'the resource cannot be found'.
- Sujatha B2Active particpant
- Posts : 12
Join date : 2011-06-20
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
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
- freeskyAmateur
- Posts : 72
Join date : 2011-04-13
Re: Element not found
Fri Jun 24, 2011 1:22 pm
which button do you need to double click
- Sujatha B2Active particpant
- Posts : 12
Join date : 2011-06-20
Re: Element not found
Fri Jun 24, 2011 1:43 pm
Hi,
You can click on any node which is available eg:book
Thanks in advance
Regards,
Sujatha B
You can click on any node which is available eg:book
Thanks in advance
Regards,
Sujatha B
- ArthurActive particpant
- Posts : 23
Join date : 2011-05-23
Location : Pune
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.
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.
- Sujatha B2Active particpant
- Posts : 12
Join date : 2011-06-20
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
[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
- ArthurActive particpant
- Posts : 23
Join date : 2011-05-23
Location : Pune
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>
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>
- Sujatha B2Active particpant
- Posts : 12
Join date : 2011-06-20
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
I tried with this code. It is working fine
Thanks a lot
Regards,
Sujatha B
Permissions in this forum:
You cannot reply to topics in this forum