Quantcast
Channel: All LoadRunner Practitioners Forum posts
Viewing all articles
Browse latest Browse all 12134

how to pass parameter in web_text_link to go on next page with that parameter

$
0
0

I have got parameter in RequestDisplay, I want to click very first link on page and pass that Id and go to next page

 

	web_reg_save_param("RequestDisplay", "LB=RequestDisplay?id=", "RB=>",
					   LAST );

	web_text_link("Request List", "Snapshot=t20.inf", 
		DESCRIPTION, "Text=Request List",        
		ACTION, "UserAction=Click", 
		LAST);

	web_browser("Sync_4", "Snapshot=t23.inf", 
		DESCRIPTION, 
		ACTION, "Sync", 
		LAST);

	TotalNumberOfMatches=atoi(lr_eval_string("{RequestDisplay}"));
	lr_output_message("id got = %d",TotalNumberOfMatches);

//here below I got RequestDisplay and I want to pass this value in below <URL>/RequestDisplay?id={here} and go to next //page getting error  
  web_text_link("<URL>/RequestDisplay?id={RequestDisplay}","Snapshot=t2.inf",
  DESCRIPTION,"Text=<URL>/RequestDisplay?id={RequestDisplay}","Id/RE={RequestDisplay}"
  ACTION,"UserAction=Click",
  LAST);

 gettint err: Error -26228: Text-link ("<URL>/RequestDisplay?id="number here"") not found 

then getting array have all values like

-

-

-

-

[20] Text="number here", Name="", Id="", Href="<URL>/RequestDisplay?id=number here"

 

web_text_link("<URL>/RequestDisplay?id") highest severity level was "ERROR"      [MsgId: MMSG-26391]


Viewing all articles
Browse latest Browse all 12134

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>