Cannot get property of input inside table and iframe

Hello all.

I am tying to get a property of an input value (inside iframe and table etc.). The html looks more or less like this

 <iframe name="_paa" src="/something/SearchFramePage.htm" style="height: 100%; width: 100%; border: 0px;">
<frameset border="0" framespacing="0" cols="*,150" frameborder="0">
<frame name="leftframe" src="tyhja.htm">
<form name="_ctl0" method="post" action="./Tulos.aspx?workgroup=FM4..." id="_ctl0" class="system_form">
<table class="system_datagrid system_datagrid_tulokset" cellspacing="0" rules="all" rendermode="Inline" border="1" id="GridTulokset" style="border-collapse:collapse;top:82px;">
<tbody>
<tr class="labon_datagrid_mainHeaderRow">
<td class="device-headerColumn">Laite</td>
</tr>
<tr class="system_datagrid_row static-table">
<td class="device-itemColumn">
**<input name="GridTuloksetLaite" type="text" value="LAITE_KOODI " readonly="readonly" id="GridTulokset_Laite" disabled="true" style="">**
	</td>
	<td class="spn-itemColumn">
	<a id="GridTulokset_0987_nayteno" href="javascript:__doPostBack('GridTulokset$_0987$nayteno','')">012345</a>

With that I get the ID property of the table by

Browser.Get Property //iframe >>> //frame[@name="leftframe"] >>> //table[@class="labon_datagrid labon_datagrid_tulokset"] id

But when I try to go deeper for the input tag

Browser.Get Property //iframe >>> //frame[@name="leftframe"] >>> //table[@class="system_datagrid system_datagrid_tulokset"] >>> //input[id="GridTulokset__ctl2_Laite"] value

I get error

ValueError: Argument ‘assertion_operator’ got value ‘value’ that cannot be converted to AssertionOperator or None.

I am not completely sure what am I doing wrong here so help would be very much appreciated.

Error sounds like you are passing 3 arguments to Get Property because error says “value is not proper assert operator” ..

And if i copy paste your code into proper editor, there’s 2 spaces

//table[@class="system_datagrid system_datagrid_tulokset"] _HERE_ >>> //input[id="GridTulokset__ctl2_Laite"

So, maybe just one extra space ?

2 Likes