Get text from after webpage ! Help me! - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Get text from after webpage ! Help me! (/Thread-Get-text-from-after-webpage-Help-me) |
Get text from after webpage ! Help me! - viclassic - 10-21-2011 Hi all! I have project from my customer. I have a web link (i can't show here). When i access this link, web will show 3 textbox (author, title, year). After i input text to 3 that textbox, then click button sumit below. Webpage will tranfer to after page. This page contain detail informations and I need copy 1 row in details. I have a key word before each copied row. I can use QTP to auto make first step (input text from datatable and click sumit), but when tranfer after page, I can't copy text row that i want. Any question to me if you don't understand because this project is secret. Thank all! RE: Get text from after webpage ! Help me! - Ankesh - 10-21-2011 Is it a webtable?Do u need to fetch the first row always? do let me know, it would be easy tp answer ur query then. Regards, Ankesh RE: Get text from after webpage ! Help me! - viclassic - 10-21-2011 @Ankesh: Thank for reply. I don't know it's a webtable. I give you a link: http://aleph20-prod-acc.obvsg.at/F/UJHNJMN4JTJNMCEP94HQCKGALNHJQNEP54N7HRBBCVIT1T7C85-05294?func=find-a&request_op=AND&find_code=WPE&request=Becker&request_op=AND&find_code=WTI&request=Wahrheit+Dichtung&request_op=AND&find_code=WYR&request=1888&x=48&y=10 Detail information is below "Treffer 1 von 1". Can you see "Link zum Datensatz Info http://permalink.obvsg.at/AC03051248". I need copy text "http://permalink.obvsg.at/AC03051248", this is dynamic text, it can change according to data input before page. This mean is with different datainput, result is different. In the detail informations: same header. RE: Get text from after webpage ! Help me! - Ankesh - 10-21-2011 ok. Got it. I checked the link. Looks like a normal link. For proper resolution/answer Can u please spy the object/Link and send me the screenshot of the spy window? I am asking this because i dont have QTP installed on my System right now. Regards, Ankesh RE: Get text from after webpage ! Help me! - viclassic - 10-21-2011 Now, to simple, the problem is: 1. Input text into 3 textbox and click sumit in before page, and then web will tranfer to after page. 2. I wanna to copy all text in after page. All step made by QTP to found on DATATABLE with available data. This is header of datatable on QTP, 3 field Author, Titel, Year is available and TextCompied: after play QTP, data on web will copy to this field. Author - Titel - Year - TextCompied[/code] RE: Get text from after webpage ! Help me! - Ankesh - 10-21-2011 Hi viclassic, I was just asking u the screenshot of the object spy window to know how QTP is recognising the link. This way it would be better for me to give exact resolution. However, since u haven't posted the screenshot, i will give the resolution as per my understanding. Add the object(Link) in the OR and use regular expression for the text value of the link(as the text/name of the link is changing dynamically). U will see an icon(something like <#>), click on the icon. Once u click on the icon, a pop up will appear. There will be a check box named regular expression. Check the chekbox and enter .* in the text field. Once u r done with the above setting, U can use the below code to get the displayed text of the link. Code: strLinkName=Browser(<Browser>).Page(<page>).Link(<Link Name as per OR>).GetROProperty("text") here strLinkName will have the name of the link dispalyed. This name u can use for ur rest of the requirement. I hope this would serve ur purpose. Do let me know if it does not work. Regards, Ankesh RE: Get text from after webpage ! Help me! - viclassic - 10-21-2011 I will applied your method to my project now. I hope we are frendly on this forum. Thank you for you support. Thank you and best regard! |