hey i am using for each loop to open url and get text from it but in one url the text is on 1 page and in 2 the text in on 2 page so what can i do to get text from 2 page also
Hi @Kuldeep_Pandey
use “Element Exist Activity”.
Check it in first page if found then get it otherwise check it in 2nd url and get from it
Hello @Kuldeep_Pandey Use Navigate activities to navigate to page 2 in loop conditions
Current(“page 1 Link”) in navigate activity, extract data
Current(“page 2 Link”) in navigate activity, extract data
Loop the process
Hey @Kuldeep_Pandey,
Use the open browser activity with the base url like "www.google.com"and in the same open browser put the for each loop and under that use the navigate browser and get the text whatever is required and use Send Hotkey Method at last to close that tab.
Thanks,
Sanjit
@Kuldeep_Pandey , Same element Exist set for page 2 in Else sequqnce after the Click activity. agaian place If activity and apss thge condition, If data exist, it will take data, otherwise leave empty in else, next loop wil start
@Kuldeep_Pandey Element Exist returing bool variable. so just put variable in if condition
so now what i have to write in if condition
its not going to next page i think its not identifing the elements exciting or if condition is not working pls tell me the condition
@Kuldeep_Pandey
No need to write any conditions, Just pass the variable of Element exist.
If there is data available, element exist returens true, and in if condition, then sequence will process
but it takes only 1 url text in both the loop i dont know whats the problem
@Kuldeep_Pandey Does it took the data from url 2?
noo its take the data from 1url both the times
@Kuldeep_Pandey Then place the click to page 2 below of IF conditions instead of placed in Else.