7 posts in this topic
My esteemed Autoits I need your help once again.
I'm trying to figure out how to create a loop that gets 1 value from an array and repeats until each value from the array has been used. I have never used arrays before and I know once I learn more things should get easier for me.
Here is what Im trying to do:
-Have an array of values that determine what application i log into. ex: app1, app2, app3, app4 etc.
-Have a loop that repeats a process sequentially using each value in the array to finish the process for each app1, app2, app 3 and so forth. I have 30 apps that I need to update on a regular basis and getting this sorted out is what I perceive to be the best way to do it.
Here is my feeble attempt that obviously fails:
local $array = ["10", "11", "12",etc etc]
;;Local $site = InputBox("ERx Site","What site do you want to login as?","","")
Local $userid = InputBox("ERx Login", "What is your username?", "", "")
Local $Passwd = InputBox("Security Check", "Enter your UAT password.", "", "*")
for $1 = 1 to 30(I need to do the same steps in 30 different apps)
Send (Sequential ARRAY VALUE HERE)
your help is greatly appreciated.
Thanks for your time
Hi, I'm trying to find a text value inside of a html.
This is what the line looks like normally:
<p id="line1" class> <span class="bot">TEXT HERE</span> </p> The text then changes to a non breaking space:
<p id="line1" class> <span class="bot"> </span> </p> And then it changes back to normal text but it's different every time.
Can I code this so that it grabs the text every time it changes and has a variable that represents it?
I currently have this inside of my loop:
$span = .document.getElementsByTagName("span") For $text In $span If $text.value = " " Then Sleep(50) MsgBox(0,0,0) ;messagebox to test if it can be found, but I don't know how to grab the text EndIf Next The problem is that there are many other lines in the html that have the same span but are called "line3", "line5", etc and the one I need is from "line1".
I will appreciate if anyone can help with this!
hi , hope you all doing well
cant find any elements on the page ? and the right click mouse dont work too?
iam trying with more than method , i need help please!!
I have kept below line to wait for IE to load the site completely and continue.
But, the code is continuing without waiting for it and I my execution is failing as the elements are not loaded completely.
Any suggestions for alternate code to wait for the browser to load completely?