Jump to content

ssandro

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by ssandro

  1. Alhamdulillah, it works perfectly, thank you very much. May Allah reward both of you with goodness.
  2. sorry for late reply, morning here. it does not work, the script says error code : __WD_Post: URL=HTTP://127.0.0.1:9515/session/83bf3dce199f053f4898722796b1ba28/element; $sData={"using":"xpath","value":"//input[@type='button'][@value='OK']"} __WD_Post: StatusCode=404; ResponseText={"value":{"error":"no such element","message":"Unable to locate element: {\"method\":\"xpath\",\"selector\":\"//input[@type='button'][@value='OK']\"}\n (Session info: chrome=75.0.3770.100)","stacktrace":"Backtrace:\n\tOrdinal0 [0x003DDB63+1432419]\n\tOrdinal0 [0x00358D81+888193]\n\tOrdinal0 [0x002FB9D1+506321]\n\tOrdinal0 [0x0029CA05+117253]\n\tOrdinal0 [0x002B7F20+229152]\n\tOrdinal0 [0x002AEA40+191040]\n\tOrdinal0 [0x002B6D94+224660]\n\tOrdinal0 [0x002AE8AB+190635]\n\tOrdinal0 [0x00295F16+89878]\n\tOrdinal0 [0x0029757A+95610]\n\tOrdinal0 [0x00297474+95348]\n\tGetHandleVerifier [0x0053DE7C+1274156]\n\tGetHandleVerifier [0x0048B6D9+543113]\n\tGetHandleVerifier [0x0048B4E0+542608]\n\tOrdinal0 [0x003EB508+1488136]\n\tGetHandleVerifier [0x0048BC86+544566]\n\tOrdinal0 [0x0036EEC5+978629]\n\tOrdinal0 [0x0037B35B+1028955]\n\tOrdinal0 [0x0037B49F+1029279]\n\tOrdinal0 [0x0037A445+1025093]\n\tBaseThreadInitThunk [0x755B7C04+36]\n\tRtlInitializeExceptionChain [0x773FAB8F+143]\n\tRtlInitializeExceptionChain [0x773FAB5A+90]\n"}} _WD_FindElement: {"value":{"error":"no such element","message":"Unable to locate element: {\"method\":\"xpath\",\"selector\":\"//input[@type='button'][@value='OK']\"}\n (Session info: chrome=75.0.3770.100)","stacktrace":"Backtrace:\n\tOrdinal0 [0x003DDB63+1432419]\n\tOrdinal0 [0x00358D81+888193]\n\tOrdinal0 [0x002FB9D1+506321]\n\tOrdinal0 [0x0029CA05+117253]\n\tOrdinal0 [0x002B7F20+229152]\n\tOrdinal0 [0x002AEA40+191040]\n\tOrdinal0 [0x002B6D94+224660]\n\tOrdinal0 [0x002AE8AB+190635]\n\tOrdinal0 [0x00295F16+89878]\n\tOrdinal0 [0x0029757A+95610]\n\tOrdinal0 [0x00297474+95348]\n\tGetHandleVerifier [0x0053DE7C+1274156]\n\tGetHandleVerifier [0x0048B6D9+543113]\n\tGetHandleVerifier [0x0048B4E0+542608]\n\tOrdinal0 [0x003EB508+1488136]\n\tGetHandleVerifier [0x0048BC86+544566]\n\tOrdinal0 [0x0036EEC5+978629]\n\tOrdinal0 [0x0037B35B+1028955]\n\tOrdinal0 [0x0037B49F+1029279]\n\tOrdinal0 [0x0037A445+1025093]\n\tBaseThreadInitThunk [0x755B7C04+36]\n\tRtlInitializeExceptionChain [0x773FAB8F+143]\n\tRtlInitializeExceptionChain [0x773FAB5A+90]\n"}} _WD_FindElement ==> No match: HTTP status = 404 i've also tried "//*[@type='button'][@value='OK']") "//*[@type='button'][@class='text pb default']") "//*[@button='OK']") "//input[@button='OK']") but it all returns to _WD_FindElement ==> No match: HTTP status = 404 are there any alternative solutions?
  3. hi I have problem with dynamic id. my outerhtml ==== <button ctype="pushbutton" type="button" control="true" id="mx5768" class="text pb default" style="">OK</button></div><div aria-live="polite" id="mx5770_holder" class="bc"> <button ctype="pushbutton" type="button" control="true" id="mx5770" class="text pb" style="">Cancel</button></div> </td> ==== my udf script $sButton = _WD_FindElement($sSession, $_WD_LOCATOR_ByXpath, "//*[@id='mx5768']") _WD_ElementAction($sSession,$sButton,'click') my script works if i put the value of the $sSelector the id. But it keep changing each time login, i can't do the same script. I've tried $sButton = _WD_FindElement($sSession, $_WD_LOCATOR_ByXpath, "//*[@class='text pb default']") _WD_ElementAction($sSession,$sButton,'click') but it does not work. are there any alternatives to click without the id?
  4. It works beautifully. Alhamdulillah. Thank you very much Mikell. May Allah reward you with goodness.
  5. Thank you for your replies Jfish sorry if i have not give information clearly. i want the number between 5 and 7 becomes my next process. for example I have a data : 1/3/2:5 1/3/2:7 I want 1/3/2:6 be my new data to input in the next process. I just knew Scripting.Dictionary. thank you mikell by the way, it does show the unavailable number but how do I extract the value from the array display?
  6. Hi guys, I have using search feature for searching my problem but i got nothing. I have a set a number in my txt file that contains : 1 2 3 4 5 7 8 10 how do I get an unvailable number for next variable? I mean i need number 6 to run other script.
×
×
  • Create New...