String tag = tempNode.getNodeName();
try
{
if (inForm)
{
HTTPSampler url = (HTTPSampler) urlConfigs.getLast();
if (tag.equalsIgnoreCase("form"))
{
try
{
urlConfigs.add(createFormUrlConfig(tempNode, context));
}
catch (MalformedURLException e)
{
inForm = false;
}
}
else if (tag.equalsIgnoreCase("input"))
{
url.addArgument(
getAttributeValue(nodeAtts, "name"),
getAttributeValue(nodeAtts, "value"));
}
else if (tag.equalsIgnoreCase("textarea"))
{
try
{
url.addArgument(
getAttributeValue(nodeAtts, "name"),
tempNode.getFirstChild().getNodeValue());
}
catch (NullPointerException e)
{
url.addArgument(
getAttributeValue(nodeAtts, "name"),
"");
}
}
else if (tag.equalsIgnoreCase("select"))
{
selectName = getAttributeValue(nodeAtts, "name");
}
else if (tag.equalsIgnoreCase("option"))
{
String value = getAttributeValue(nodeAtts, "value");
if (value == null)
{
try
{
value = tempNode.getFirstChild().getNodeValue();
}
catch (NullPointerException e)
{
value = "";
}
}
url.addArgument(selectName, value);
}
}
else if (tag.equalsIgnoreCase("form"))
{
try