I do not see any submenu when adding a Get Value action. The User Guide shows submenus for Invoke Action, Get Value and Set Value. Why can I not see it?
Attached is a snapshot of what my drop-down menu looks like.
Get Value not working as stated in User Guide
Get Value not working as stated in User Guide
You do not have the required permissions to view the files attached to this post.
Thanks,
Zoë (aka zoework)
Zoë (aka zoework)
Re: Get Value not working as stated in User Guide
There are no sub-menus for Get/Set Value or Invoke Actions when selected from the "Add New Action" drop-down, as you demonstrate in your screen-capture.
There are sub-menus for each of them when dragging a repository object into the action table, however, so maybe that is where the confusion is?
There are sub-menus for each of them when dragging a repository object into the action table, however, so maybe that is where the confusion is?
Shortcuts usually aren't...
Re: Get Value not working as stated in User Guide
Thank you, but I think the User Guide is not very clear on this point.
I've dragged the repo item into my script, but the only available attribute is Custom. When I add the Custom Get Value with a regular expression to get the innertext, it is still not working. Here is a snippet from the log:
00:04.085 Info Get Value
Getting attribute 'Custom' from item 'QA_investor.HoldingsTable.SymText' and assigning the part of its value captured by '^@innertext=([A-Z]*)$' to variable 'SymbolText'.
00:04.335 Info User
(null)
(null) is from a Report Log statement.
My item definition looks like this:
/dom[@domain='mydomain']/body/?/?/div[@id='pageContainer']//div[@id='main-holdings']/div[@class='tableModuleContent portlet-content']/table[@id='holdingsTable']/tbody/tr[1]/td[1]/*[@enabled='True']
I've dragged the repo item into my script, but the only available attribute is Custom. When I add the Custom Get Value with a regular expression to get the innertext, it is still not working. Here is a snippet from the log:
00:04.085 Info Get Value
Getting attribute 'Custom' from item 'QA_investor.HoldingsTable.SymText' and assigning the part of its value captured by '^@innertext=([A-Z]*)$' to variable 'SymbolText'.
00:04.335 Info User
(null)
(null) is from a Report Log statement.
My item definition looks like this:
/dom[@domain='mydomain']/body/?/?/div[@id='pageContainer']//div[@id='main-holdings']/div[@class='tableModuleContent portlet-content']/table[@id='holdingsTable']/tbody/tr[1]/td[1]/*[@enabled='True']
Thanks,
Zoë (aka zoework)
Zoë (aka zoework)
Re: Get Value not working as stated in User Guide
Hi,
Could you please post a screenshot of recording line with your definition of GetValue (or code behind this line)?
If there is no InnerText attribute offered in GetValue submenu, then the GetValue action cannot obtain InnerText value! Have you tried to inspect the element with Spy? Is there InnerText displayed in Spy?
Could you please post a screenshot of recording line with your definition of GetValue (or code behind this line)?
If there is no InnerText attribute offered in GetValue submenu, then the GetValue action cannot obtain InnerText value! Have you tried to inspect the element with Spy? Is there InnerText displayed in Spy?
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Get Value not working as stated in User Guide
Not sure what you mean by 'recording line' as I inserted this action manually. The code behind GetValue looks like this:
Report.Log(ReportLevel.Info, "Get Value", "Getting attribute 'Name' from item 'QA_investor.HoldingsTable.SymbolInnertext' and assigning the part of its value captured by '^@innertext=([A-Z]*)$' to variable 'SymbolText'.", repo.QA_investor.HoldingsTable.SymbolInnertextInfo, new RecordItemIndex(7));
SymbolText = repo.QA_investor.HoldingsTable.SymbolInnertext.Element.GetAttributeValueText("Name", new Regex("^@innertext=([A-Z]*)$"));
Delay.Milliseconds(0);
The item does have an InnerText attribute that I can see in Spy. I cannot select this attribute as part of the item definition because it is dynamic. Hence the GetValue statement.
Report.Log(ReportLevel.Info, "Get Value", "Getting attribute 'Name' from item 'QA_investor.HoldingsTable.SymbolInnertext' and assigning the part of its value captured by '^@innertext=([A-Z]*)$' to variable 'SymbolText'.", repo.QA_investor.HoldingsTable.SymbolInnertextInfo, new RecordItemIndex(7));
SymbolText = repo.QA_investor.HoldingsTable.SymbolInnertext.Element.GetAttributeValueText("Name", new Regex("^@innertext=([A-Z]*)$"));
Delay.Milliseconds(0);
The item does have an InnerText attribute that I can see in Spy. I cannot select this attribute as part of the item definition because it is dynamic. Hence the GetValue statement.
Thanks,
Zoë (aka zoework)
Zoë (aka zoework)
Re: Get Value not working as stated in User Guide
Hi,
What I mean is to show us a screenshot of your actual recording, where we can see the GetValue definition. It should look like this... Looking at code behind your GetValue action, it seems to me that you tried to use the @InnerText attribute as a part of RegEx? This is, in my opinion, incorrect. InnerText should be used in the Name parameter of Get Value action, as shown in my screenshot. Hope this helps?
What I mean is to show us a screenshot of your actual recording, where we can see the GetValue definition. It should look like this... Looking at code behind your GetValue action, it seems to me that you tried to use the @InnerText attribute as a part of RegEx? This is, in my opinion, incorrect. InnerText should be used in the Name parameter of Get Value action, as shown in my screenshot. Hope this helps?
You do not have the required permissions to view the files attached to this post.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Get Value not working as stated in User Guide
Here is a snapshot of the recording and also one of the item in Spy. It is still not working. 

You do not have the required permissions to view the files attached to this post.
Thanks,
Zoë (aka zoework)
Zoë (aka zoework)
Re: Get Value not working as stated in User Guide
Try to use the expression without $ sign.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration