03-24-2011, 12:01 PM
Hi Ankur,
My task is to enable a checkbox of a required link. I've written the below code for accomplishing it.
It worked well initially. Suddenly when i tried executing today it throws error at "workspace_chkbox.Click" and says "Object Required".
Im confused on this coz it worked well before. Kindly help me on this.
The code below is for you reference
Thanks in Advance!
Sharmila
My task is to enable a checkbox of a required link. I've written the below code for accomplishing it.
It worked well initially. Suddenly when i tried executing today it throws error at "workspace_chkbox.Click" and says "Object Required".
Im confused on this coz it worked well before. Kindly help me on this.
The code below is for you reference
Code:
Dim workspace_chkbox
col_cnt = Browser("NPDM").Page("ENOVIA").Frame("MainFrame").WebTable("WorkspaceTable").GetROProperty("cols")
row_cnt = Browser("NPDM").Page("ENOVIA").Frame("MainFrame").WebTable("WorkspaceTable").RowCount
For i = 1 to row_cnt
Workspace_Check= Browser("NPDM").Page("ENOVIA").Frame("MainFrame").WebTable("WorkspaceTable").GetCellData(i,col_cnt)
If trim(Workspace_Name) = trim(Workspace_Check) Then
Set workspace_chkbox = Browser("NPDM").Page("ENOVIA").Frame("MainFrame").WebTable("WorkspaceTable").childitem(i,1,"WebCheckBox",0)
[b]workspace_chkbox.Click[/b] Exit For
End If
Next
Thanks in Advance!
Sharmila