uRobot 1 Posted July 19, 2016 Report Share Posted July 19, 2016 Hello, I am using exbrowser + xpath builder pro... and I can't seem to get the right expression to cleartextbox. so I am wondering if the textbox area is on an iframe (went to check the source code) and it seems like it is on an iframe. I saw that exbrowser have a command switch to frame/iframe, but I could not find a video or documentation on how to use it. I had some help from TJ, to find all iframes of the page so I found 6 iframes... and i tried all of them: x:(//iframe)[1] x:(//iframe)[2]and etc... let's just say i switched to the correct iframe.. how do I grab/create the correct expression that will CLEAR TEXT BOX on that iframe? I am not even sure how to find an element inside that iframe... Quote Link to post Share on other sites
abbas786 78 Posted July 19, 2016 Report Share Posted July 19, 2016 Try this code . 1) Switch to ur required Frame2) Use $Exbrowser Document Text to make sure you are in the correct iframe or use $Exbrowser Element Exist in an if then else condition3) ExBrowser ClearTextBox Command To Clear the required Text Box plugin command("ExBrowser.dll", "ExBrowser Switch to Frame / iFrame", "x:(//iframe)[1]") if($plugin function("ExBrowser.dll", "$ExBrowser Element Exist", "x://input[@id=\"name\"]")) { then { plugin command("ExBrowser.dll", "ExBrowser ClearTextBox", "x://input[@id=\"name\"]") } else { } } Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.