Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get the web page name dynamically
#5
Not Solved
Assuming that there are few inputs and for the logic mentioned ...you may refer the below code
Code:
Option Explicit
strInput=inputbox( "Ener a value")
Select Case strInput
Case 1:
   Set oPage=Description.Create
    oPage("title").value="Pavani-1"
Case 2:
     Set oPage=Description.Create
    oPage("title").value="Anu-2"
Case Else
    Set oPage=Description.Create
    oPage("title").value="something"
End Select
'perform required operations on the page
'at the end
Set oPage=Nothing

you can go for what Akankhya said...but it would cause an issue if the page displayed is not as expected for a particular input.
Say for input 1, we expect "Pavani-1" page....but the page actually displayed could be an error page in which case we get error page title when we use Browser("name:=").Webpage("title:=.*").getROProperty("title").

Reply


Messages In This Thread
RE: How to get the web page name dynamically - by ravi.gajul - 01-07-2012, 10:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT issues with Outsystems dynamically generated Id/names jherron 2 1,323 03-02-2020, 09:33 PM
Last Post: Swishy70
  Unable to capture value of Webelement which is changing dynamically sheetal 9 16,177 02-16-2018, 11:01 AM
Last Post: janki_kakadia
  Unable to click on dynamically changing webelement preeti 0 1,793 04-29-2017, 08:50 PM
Last Post: preeti
  click each web link in a page using Index or other method in QTP smeijer 13 24,603 04-29-2017, 04:53 PM
Last Post: kowshik
  VB Script to count number of links in a web page. Suma Parimal 4 25,232 07-01-2015, 12:59 PM
Last Post: govind

Forum Jump:


Users browsing this thread: 2 Guest(s)