<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>KYRIAKOS ANASTASAKIS - ΚΥΡΙΑΚΟΣ ΑΝΑΣΤΑΣΑΚΗΣ &#187; My Programs</title>
	<atom:link href="http://kyriakos.anastasakis.net/category/my-programs/feed/" rel="self" type="application/rss+xml" />
	<link>http://kyriakos.anastasakis.net</link>
	<description></description>
	<lastBuildDate>Wed, 28 Dec 2011 08:42:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Selecting the value of an HTML combobox programmatically using a WebBrowser Control</title>
		<link>http://kyriakos.anastasakis.net/2011/10/30/selecting-the-value-of-an-html-combobox-programmatically-using-a-webbrowser-control/</link>
		<comments>http://kyriakos.anastasakis.net/2011/10/30/selecting-the-value-of-an-html-combobox-programmatically-using-a-webbrowser-control/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 11:43:25 +0000</pubDate>
		<dc:creator>Kyriakos Anastasakis</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[My Programs]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[import_linkedin]]></category>
		<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://kyriakos.anastasakis.net/?p=296</guid>
		<description><![CDATA[Recently I&#8217;ve been playing around with a webbrowser control to automate my interaction with a website for testing purposes. I am using C# and DOT NET. I found it a bit difficult to change the value of an HTML combobox (i.e. dropdown), but as it turns out it&#8217;s rather easy.I used the following code to [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve been playing around with a webbrowser control to automate my interaction with a website for testing purposes. I am using C# and DOT NET.</p>
<p>I found it a bit difficult to change the value of an HTML combobox (i.e. dropdown), but as it turns out it&#8217;s rather easy.I used the following code to change the value of a combobox named: &#8220;test&#8221; to the value 12.</p>
<pre class="qoate-code">
foreach (HtmlElement el in webBrowser1.Document.GetElementsByTagName("select"))
{
if (el.Name == "test")
{
foreach (HtmlElement comboItem in el.Children)
{
Console.WriteLine(comboItem.InnerText + " " + comboItem.GetAttribute("Selected"));

if (comboItem.InnerText == "12")
{
comboItem.SetAttribute("Selected", "True");
}
}
}

}
</pre>
<p>This code was used for the following HTML:<br />
&lt;select name=&#8221;test&#8221;&gt;&lt;option value=&#8221;10&#8243; SELECTED&gt;10&lt;/option&gt;&lt;option value=&#8221;11&#8243;&gt;11&lt;/option&gt;&lt;option value=&#8221;12&#8243;&gt;12&lt;/option&gt;&lt;option value=&#8221;13&#8243;&gt;13&lt;/option&gt;&lt;option value=&#8221;14&#8243;&gt;14&lt;/option&gt;&lt;/select&gt;</p>
<p><code>
<pre class="qoate-code">
foreach (HtmlElement el in webBrowser1.Document.GetElementsByTagName("input"))
{
if (el.Name.ToLower() == "submit")
{
el.InvokeMember("click");
}
}
</pre>
<p> </code></p>
]]></content:encoded>
			<wfw:commentRss>http://kyriakos.anastasakis.net/2011/10/30/selecting-the-value-of-an-html-combobox-programmatically-using-a-webbrowser-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A simple program for subversion statistics (subvstats)</title>
		<link>http://kyriakos.anastasakis.net/2006/07/02/subvstats/</link>
		<comments>http://kyriakos.anastasakis.net/2006/07/02/subvstats/#comments</comments>
		<pubDate>Mon, 03 Jul 2006 01:30:00 +0000</pubDate>
		<dc:creator>Kyriakos Anastasakis</dc:creator>
				<category><![CDATA[My Programs]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[subvstats]]></category>

		<guid isPermaLink="false">http://kyriakos.anastasakis.net/blog/2006/07/02/a-simple-program-for-subversion-statistics-subvstats/</guid>
		<description><![CDATA[Today I finished a beta version of a simple java program that collects the statistics from a subversion repository. I have created a website for the program: http://www.freewebs.com/subvstats/ It currently works by checking the whole history of the repository, finding how many lines have been added/removed in each file by using the &#8220;svn diff&#8221; command [...]]]></description>
			<content:encoded><![CDATA[<p>Today I finished a beta version of a simple java program that collects the statistics from a subversion repository. I have created a website for the program: <a href="http://www.freewebs.com/subvstats/">http://www.freewebs.com/subvstats/</a></p>
<p>It currently works by checking the whole history of the repository, finding how many lines have been added/removed in each file by using the &#8220;svn diff&#8221; command and creating an HTML report.<br />
A sample of the report can be found here: <a href="http://www.freewebs.com/subvstats/samplereport.html">http://www.freewebs.com/subvstats/samplereport.html</a></p>
<p>The program should work for relatively small repositories. As soon as I have time I will document it more and generate more statistics. And yes, I am thinking of making it opensource, but not in its current state. I first need to find some time to document the code properly and have a stable version.</p>
<p>Keywords: Subversion, statistics, package, tool, program, software, java, subvstats.</p>
]]></content:encoded>
			<wfw:commentRss>http://kyriakos.anastasakis.net/2006/07/02/subvstats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

