<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Upload files with Selenium IDE</title>
	<atom:link href="http://gusiev.com/2009/04/upload-files-with-selenium-ide/feed/" rel="self" type="application/rss+xml" />
	<link>http://gusiev.com/2009/04/upload-files-with-selenium-ide/</link>
	<description>How to make your web application</description>
	<pubDate>Sun, 05 Sep 2010 23:12:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: sasikumar</title>
		<link>http://gusiev.com/2009/04/upload-files-with-selenium-ide/#comment-431</link>
		<dc:creator>sasikumar</dc:creator>
		<pubDate>Thu, 05 Aug 2010 11:41:18 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=3#comment-431</guid>
		<description>selenium.clickAt("file", positionLeft + "," + positionTop);

what is the "file" string?? u mean fileName</description>
		<content:encoded><![CDATA[selenium.clickAt(&#8221;file&#8221;, positionLeft + &#8220;,&#8221; + positionTop);

what is the &#8220;file&#8221; string?? u mean fileName
]]></content:encoded>
	</item>
	<item>
		<title>By: sasikumar</title>
		<link>http://gusiev.com/2009/04/upload-files-with-selenium-ide/#comment-430</link>
		<dc:creator>sasikumar</dc:creator>
		<pubDate>Thu, 05 Aug 2010 11:08:34 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=3#comment-430</guid>
		<description>it doesnt work for me.i clicked upload button and then tried ur code.in IE


please help me</description>
		<content:encoded><![CDATA[it doesnt work for me.i clicked upload button and then tried ur code.in IE

<br />please help me
]]></content:encoded>
	</item>
	<item>
		<title>By: Best Programmer</title>
		<link>http://gusiev.com/2009/04/upload-files-with-selenium-ide/#comment-412</link>
		<dc:creator>Best Programmer</dc:creator>
		<pubDate>Sat, 24 Jul 2010 20:19:23 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=3#comment-412</guid>
		<description>Perfect tutorial. I was looking for this...</description>
		<content:encoded><![CDATA[Perfect tutorial. I was looking for this&#8230;
]]></content:encoded>
	</item>
	<item>
		<title>By: Anairda</title>
		<link>http://gusiev.com/2009/04/upload-files-with-selenium-ide/#comment-168</link>
		<dc:creator>Anairda</dc:creator>
		<pubDate>Wed, 21 Apr 2010 13:05:58 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=3#comment-168</guid>
		<description>@Nikesh  I think it refers to the button or "quoteBox" which you have to press in order to get the link to the file.
If I'm wrong, please correct me.</description>
		<content:encoded><![CDATA[@Nikesh  I think it refers to the button or &#8220;quoteBox&#8221; which you have to press in order to get the link to the file.
<br />If I&#8217;m wrong, please correct me.
]]></content:encoded>
	</item>
	<item>
		<title>By: prakash</title>
		<link>http://gusiev.com/2009/04/upload-files-with-selenium-ide/#comment-145</link>
		<dc:creator>prakash</dc:creator>
		<pubDate>Wed, 17 Mar 2010 14:13:02 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=3#comment-145</guid>
		<description>Uploading Files using Selenium RC in C#
After googling all around to overcome the Selenium incapability of handling File Upload control finally I could write a simple function in C# which will do my job. In the function given below _selObj is the object of DefaultSelenium class.

public bool TypeIntoFileUpload(string controlId, string filePath)
{
    try
    {
        string newFilePath = filePath.Replace('\\', '/');
         _selObj.WindowFocus();
         _selObj.Focus(controlId);
        string jscript="";
        jscript += "if(selenium.browserbot.getCurrentWindow().clipboardData){window.clipboardData.setData('Text','" + newFilePath + "');}";
         _selObj.GetEval(jscript);
        byte VK_CONTROL = 0x11;
        byte VK_V = 0x56;
        _selObj.KeyDownNative(Convert.ToString(VK_CONTROL));
        _selObj.KeyPressNative(Convert.ToString(VK_V));
        _selObj.KeyUpNative(Convert.ToString(VK_CONTROL));

        return true;
    }
    catch (Exception exc)
    {
        return false;
    }
}</description>
		<content:encoded><![CDATA[Uploading Files using Selenium RC in C#
<br />After googling all around to overcome the Selenium incapability of handling File Upload control finally I could write a simple function in C# which will do my job. In the function given below _selObj is the object of DefaultSelenium class.

public bool TypeIntoFileUpload(string controlId, string filePath)
<br />{
<br />    try
<br />    {
<br />        string newFilePath = filePath.Replace(&#8217;\\&#8217;, &#8216;/&#8217;);
<br />         _selObj.WindowFocus();
<br />         _selObj.Focus(controlId);
<br />        string jscript=&#8221;";
<br />        jscript += &#8220;if(selenium.browserbot.getCurrentWindow().clipboardData){window.clipboardData.setData(&#8217;Text&#8217;,'&#8221; + newFilePath + &#8220;&#8216;);}&#8221;;
<br />         _selObj.GetEval(jscript);
<br />        byte VK_CONTROL = 0&#215;11;
<br />        byte VK_V = 0&#215;56;
<br />        _selObj.KeyDownNative(Convert.ToString(VK_CONTROL));
<br />        _selObj.KeyPressNative(Convert.ToString(VK_V));
<br />        _selObj.KeyUpNative(Convert.ToString(VK_CONTROL));

        return true;
<br />    }
<br />    catch (Exception exc)
<br />    {
<br />        return false;
<br />    }
<br />}
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikesh</title>
		<link>http://gusiev.com/2009/04/upload-files-with-selenium-ide/#comment-120</link>
		<dc:creator>Nikesh</dc:creator>
		<pubDate>Fri, 11 Dec 2009 12:37:43 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=3#comment-120</guid>
		<description>Thanks,

Can you please let me know what is this variable "element" and from where it's coming and what it contains?

thanks,
Nikesh</description>
		<content:encoded><![CDATA[Thanks,

Can you please let me know what is this variable &#8220;element&#8221; and from where it&#8217;s coming and what it contains?

thanks,
<br />Nikesh
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://gusiev.com/2009/04/upload-files-with-selenium-ide/#comment-101</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Sat, 17 Oct 2009 01:38:50 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=3#comment-101</guid>
		<description>Bogdan,
Thanks it works for me~

BTW, do you have any idea to let selenium manipulate flash object?
I found 2 main methods on google,
1. to inject swj object to insert interface for javascript to call. but in our case we cannot modify flash object-to-test.
2. use FlexMonkey, I'm still researching to see if selenium can call it by commandline and wait for it's job finish signal.

Any suggestions? Thanks again :D</description>
		<content:encoded><![CDATA[Bogdan,
<br />Thanks it works for me~

BTW, do you have any idea to let selenium manipulate flash object?
<br />I found 2 main methods on google,
<br />1. to inject swj object to insert interface for javascript to call. but in our case we cannot modify flash object-to-test.
<br />2. use FlexMonkey, I&#8217;m still researching to see if selenium can call it by commandline and wait for it&#8217;s job finish signal.

Any suggestions? Thanks again <img src='http://gusiev.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> 
]]></content:encoded>
	</item>
	<item>
		<title>By: Bogdan</title>
		<link>http://gusiev.com/2009/04/upload-files-with-selenium-ide/#comment-100</link>
		<dc:creator>Bogdan</dc:creator>
		<pubDate>Thu, 15 Oct 2009 09:00:45 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=3#comment-100</guid>
		<description>Hi Jim,

As you can see here the thread has a little sleep time. 
 Thread.sleep(1000);
It waits while the main thread will do the click.
The file name passes as the constructor argument to FileChooserThread and the Robot class is doing the input.

Thanks,
Bogdan</description>
		<content:encoded><![CDATA[Hi Jim,

As you can see here the thread has a little sleep time. 
<br /> Thread.sleep(1000);
<br />It waits while the main thread will do the click.
<br />The file name passes as the constructor argument to FileChooserThread and the Robot class is doing the input.

Thanks,
<br />Bogdan
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://gusiev.com/2009/04/upload-files-with-selenium-ide/#comment-99</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Thu, 15 Oct 2009 08:44:18 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=3#comment-99</guid>
		<description>Hi there, 
Using thread, my selenium stuck too when   "file open dialog" come out!
Do you have any clue?
BTW, did you input path on file open dialog?
I saw your thread started to run before doing  selenium.clickAt("file", positionLeft + "," + positionTop); ?
suppose the action flow is opposite? or you use this trying to avoid "stuck" issue?
but what if thread start before the clickat("file") ?</description>
		<content:encoded><![CDATA[Hi there, 
<br />Using thread, my selenium stuck too when   &#8220;file open dialog&#8221; come out!
<br />Do you have any clue?
<br />BTW, did you input path on file open dialog?
<br />I saw your thread started to run before doing  selenium.clickAt(&#8221;file&#8221;, positionLeft + &#8220;,&#8221; + positionTop); ?
<br />suppose the action flow is opposite? or you use this trying to avoid &#8220;stuck&#8221; issue?
<br />but what if thread start before the clickat(&#8221;file&#8221;) ?
]]></content:encoded>
	</item>
	<item>
		<title>By: Logan</title>
		<link>http://gusiev.com/2009/04/upload-files-with-selenium-ide/#comment-73</link>
		<dc:creator>Logan</dc:creator>
		<pubDate>Sat, 25 Jul 2009 02:05:19 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=3#comment-73</guid>
		<description>One issue, the method chooseFile is a void, but it returns the String fileName.</description>
		<content:encoded><![CDATA[One issue, the method chooseFile is a void, but it returns the String fileName.
]]></content:encoded>
	</item>
</channel>
</rss>
