Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Webedit embedded in a Webelement, cannot be identified
#1
Not Solved
Hi I have a webedit which is embedded in the dynamically changing webelement, i am able to identify the dynamic webelement, however not able to identify the embedded webedit and hence not able to set a new value to it.

Here is some code i have written

Code:
Dim oDesc1        'Description Object
Set oDesc1 = Description.Create
oDesc1( "micclass" ).value = "Webtable"
oDesc1( "innertext" ).value = "\(1\) Income from fiduciary activities.*"
oDesc1( "innertext" ).regularexpression = true

tableinfo  = Browser("").Page("ReportGenerator_2").WebTable(oDesc1).GetCellData(1,11)
'msgbox tableinfo

'Browser("").Page("ReportGenerator_2").WebTable(oDesc1).Highlight

Dim Webel
Set Webel=description.Create()
Webel("micclass").value="WebElement"
Webel("html tag").value  = "DIV"
Webel("innertext").value= tableinfo

webelinnertext = Browser("").Page("ReportGenerator_2").Webelement(Webel).GetROProperty("innertext")
'msgbox webelinnertext

'Browser("").Page("ReportGenerator_2").Webelement(Webel).Highlight
'wait 3000

Browser("").Page("ReportGenerator_2").Webelement(Webel).FireEvent("ondblclick")

Dim Webed
Set Webed=description.Create()
webed("Class Name").value="WebEdit"
webed("Name").value="WebEdit"
Webed("html tag").value= "INPUT"
Webed("visible").value= "True"
Webed("value").value = "6666"
'webedinnertext = Browser("").Page("ReportGenerator_2").WebEdit(Webed).GetROProperty("value")
'msgbox webedinnertext

Browser("").Page("ReportGenerator_2").Webedit(Webed).Set "7777"



Also here are the Webelement and Webedit details
Code:
"Class Name:=WebElement",
"abs_x:=2239",
"abs_y:=779",
"class:=x-grid3-cell-inner x-grid3-col-10",
"height:=21",
"html id:=",
"html tag:=DIV",
"innerhtml:=6666\.00000",
"innertext:=6666\.00000",
"outerhtml:=<DIV style=font-size:11px;font-family:'arial';color:#0000ff;text-align:Right; unselectable=on class=x-grid3-cell-inner x-grid3-col-10>6666\.00000</DIV>",
"outertext:=6666\.00000",
"title:=",
"type:=",
"visible:=True",
"width:=152",
"x:=959",
"y:=715"
------------------------

"Class Name:=WebEdit",
"abs_x:=2239",
"abs_y:=753",
"class:=x-form-text x-form-field x-form-num-field x-form-focus",
"default value:=",
"disabled:=0",
"height:=18",
"html id:=ext-comp-1190",
"html tag:=INPUT",
"innerhtml:=",
"innertext:=",
"kind:=singleline",
"max length:=-1",
"name:=WebEdit",
"outerhtml:=<INPUT type=text name= id=ext-comp-1190 autocomplete=off size=20 class=x-form-text x-form-field x-form-num-field x-form-focus style=text-align: left; width: 152px; height: 18px;>",
"outertext:=",
"pattern:=",
"placeholder:=",
"readonly:=0",
"required:=False",
"rows:=0",
"title:=",
"type:=text",
"value:=6666",
"visible:=True",
"width:=152",
"width in characters:=20",
"x:=959",
"y:=689"

Thanks in advance
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation WebElement("WebElement").Click is not working sia sharma 7 23,206 09-28-2016, 08:58 PM
Last Post: supputuri
  Object identified despite having no information mjt 1 1,899 09-14-2015, 08:25 PM
Last Post: mjt
  Toolbar object not identified excellentpawan123 0 1,969 10-29-2014, 04:37 PM
Last Post: excellentpawan123
  mfc grid object is not identified excellentpawan123 3 3,534 05-31-2014, 11:47 AM
Last Post: excellentpawan123
  webobjects are seen identified as winobjects Ram2009 2 2,500 06-28-2013, 03:37 PM
Last Post: Ram2009

Forum Jump:


Users browsing this thread: 1 Guest(s)