Danp2 Posted September 30, 2022 Share Posted September 30, 2022 Maybe this? Try adding the following to the existing code -- $("#selected-items").sortable("refreshPositions"); Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
ThomasBennett Posted September 30, 2022 Author Share Posted September 30, 2022 (edited) 15 minutes ago, Danp2 said: Maybe this? Try adding the following to the existing code -- $("#selected-items").sortable("refreshPositions"); That didn't work.. but I am playing with the _WD_ElementAction or _WD_ElementActionEx to see if maybe a click, double-click, or brief clickandhold will trick it into updating. Edited September 30, 2022 by ThomasBennett Spelling Link to comment Share on other sites More sharing options...
Danp2 Posted September 30, 2022 Share Posted September 30, 2022 I think that is the wrong approach. Have you tried "refresh" instead of ."refreshPositions"? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
ThomasBennett Posted September 30, 2022 Author Share Posted September 30, 2022 17 minutes ago, ThomasBennett said: ...but I am playing with the _WD_ElementAction or _WD_ElementActionEx to see if maybe a click, double-click, or brief clickandhold will trick it into updating. That didn't work either.. Link to comment Share on other sites More sharing options...
ThomasBennett Posted September 30, 2022 Author Share Posted September 30, 2022 1 minute ago, Danp2 said: I think that is the wrong approach. Have you tried "refresh" instead of ."refreshPositions"? Trying that now! Link to comment Share on other sites More sharing options...
ThomasBennett Posted September 30, 2022 Author Share Posted September 30, 2022 5 minutes ago, Danp2 said: Have you tried "refresh" instead of ."refreshPositions"? Sorry, that didn't work. I wonder if using ' ' vs " " would make a difference.. Link to comment Share on other sites More sharing options...
Danp2 Posted September 30, 2022 Share Posted September 30, 2022 Could be. Surprised that you haven't tried it yet. 😀 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
ThomasBennett Posted September 30, 2022 Author Share Posted September 30, 2022 2 minutes ago, Danp2 said: Could be. Surprised that you haven't tried it yet. 😀 😅well..that just made things worse; so. Okay.. how to trigger an update or a refresh that jQuery will record.. gosh.. this is gonna be something simple... Link to comment Share on other sites More sharing options...
Danp2 Posted October 1, 2022 Share Posted October 1, 2022 1 hour ago, ThomasBennett said: I don't think jQuery is updating when I save the update to the system You should try examining the code that runs when you initiate the save process. You need to figure out how to make this work manually. Once you've done that, then you can automate it. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
ThomasBennett Posted October 1, 2022 Author Share Posted October 1, 2022 6 hours ago, Danp2 said: You should try examining the code that runs when you initiate the save process. You need to figure out how to make this work manually. Once you've done that, then you can automate it. @Danp2, so I did exactly that for a few hours and it hit me.. what happens if I add another lesson and then remove it from the list? Well guess what adding another lesson and removing it triggers the jQuery save. I then save the page and review the changes and the new lesson is exactly where it needs to be. No, I didn't figure out how to trigger the jQuery save through AutoIt; but did figure out how to work within the rules to trigger the same event using existing code. Hopefully ya'll don't think less of me for this shortcut. Thank you for all of your knowledge, experience, and words of encouragement during this process. Now on to finishing the script; very excited and happy I decided to start on the hardest part first. Thomas Link to comment Share on other sites More sharing options...
Danp2 Posted October 1, 2022 Share Posted October 1, 2022 Glad you found a solution that works for you. ThomasBennett 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now