janganan Posted March 17, 2013 Share Posted March 17, 2013 My code _FFStart("http://www.amazon.com/dp/B0091KD43U", Default) $oDesc = _FFXpath(".//div[@class='productDescriptionWrapper']") $desc = _FFObj($oDesc,"textContent") ConsoleWrite($desc) Autoit return FFau3.xpath=null;try{FFau3.xpath=FFau3.WCD.evaluate(".//div[@class='productDescriptionWrapper']",FFau3.WCD,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;}catch(e){'_FFXPath_Error: '+e;}; __FFRecv: __FFSend: try{FFau3.xpath.hasAttribute('textContent')}catch(e){'_FFCmd_Err';}; __FFRecv: _FFCmd_Err __FFSend: try{FFau3.xpath.textContent}catch(e){'_FFCmd_Err';}; __FFRecv: _FFCmd_Err _FFObj ==> No match: $sObject not found: FFau3.xpath.textContent Is this bug ?? or my code is wrong? Link to comment Share on other sites More sharing options...
janganan Posted March 17, 2013 Author Share Posted March 17, 2013 Firefox Xpath found this object without problem Link to comment Share on other sites More sharing options...
Danp2 Posted March 18, 2013 Share Posted March 18, 2013 Probably because the webpage uses frames. Take a look at _FFFrameEnter and _FFFrameLeave. 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