allcapone1912 7 Posted April 4, 2016 Report Share Posted April 4, 2016 need some help with xpath i want to use ExBrowser Wait For Element(wait for element1 or element2) plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "x://input[@class=\'LinkContinue\']", "Appear", 30) plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "x://span[contains(text(), \'Your registration could not be processed\')]", "Appear", 30) so, i want to combinate both element in in one columnsomething like this: plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "x://input[@class=\'LinkContinue\'] OR x://span[contains(text(), \'Your registration could not be processed\')]", "Appear", 30) ive tried to use with "|" and still without success Can anyone tell me how can I solve this? Quote Link to post Share on other sites
Bot-Factory 602 Posted April 4, 2016 Report Share Posted April 4, 2016 need some help with xpath i want to use ExBrowser Wait For Element(wait for element1 or element2) plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "x://input[@class=\'LinkContinue\']", "Appear", 30) plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "x://span[contains(text(), \'Your registration could not be processed\')]", "Appear", 30) so, i want to combinate both element in in one columnsomething like this: plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "x://input[@class=\'LinkContinue\'] OR x://span[contains(text(), \'Your registration could not be processed\')]", "Appear", 30) ive tried to use with "|" and still without success Can anyone tell me how can I solve this? Hello. This is covered in depth in my Xpath Video Tutorials:http://www.bot-factory.com/xpath-video-tutorials/ You have to write an Xpath Expression with an OR condition. You can NOT combine two Xpath Strings the way you tried it. The correct way would be something like://input[@class=LinkContinue' or @class='Whatever] This will return true if both conditions are met and then ExBrowser wait for element will continue before the 30 seconds are over. RegardsDan 1 Quote Link to post Share on other sites
allcapone1912 7 Posted April 6, 2016 Author Report Share Posted April 6, 2016 Hello. This is covered in depth in my Xpath Video Tutorials:http://www.bot-factory.com/xpath-video-tutorials/ You have to write an Xpath Expression with an OR condition. You can NOT combine two Xpath Strings the way you tried it. The correct way would be something like://input[@class=LinkContinue' or @class='Whatever] This will return true if both conditions are met and then ExBrowser wait for element will continue before the 30 seconds are over. RegardsDanthanks for your helpi understand your idea and will test it and your video should be very helpful, will buy it in the nearest future 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.