3ArequirementDetailsPage

3ArequirementDetailsPage

本文介绍了如何跳过A4J。 Ajax.Submit通过php curl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过php curl删除一个java .jsf扩展页面的内部页面。我使用curl和登录网站后,我已经到达上市页面。在列表页面项目ids是给和点击链接项后的细节显示在流行。我的问题是在列表页上的URL是这样的

I am trying to scrap the internal pages of a java .jsf extention pages through php curl. I have used curl and login the website after that i have reached listing page . in the listing page item ids are give and after clicking the link item detail shows in pop. My problem is on the listing page the url is somthing like this

<a style="font-weight:normal;"    onclick="A4J.AJAX.Submit('_viewRoot','requirementDetails:requirementDetailsPage',event,{'oncomplete':function(request,event,data)

{RequirementPage.show();document.getElementById('formName').focus();},
'parameters': {'requirementDetails:requirementDetailsPage:req:1:_idJsp383':'requirementDetails:requirement     DetailsPage:req:1:_idJsp383'} ,




'actionUrl':'/test/myweb/baRequirementDetailsHome.jsf'} );return false;"    ="requirementDetails:requirementDetailsPage:req:1:_idJsp383"   id="requirementDetails:requirementDetailsPage:req:1:_idJsp383" href="#">3922704</a>  

现在如何去项目详细信息页面动作URL与当前页面相同点击链接一个弹出窗口发生与所有的细节。请帮助如何进入详细信息页面。
如何使用A4j.AJAX.Submit处理。

Now how to go the item detail page the action url is same as the current page on clicking the link a pop up occurs with all detail. Please help how to proceed to the detail page.How to handle with A4j.AJAX.Submit.

和响应显示如下:结果
POST /gbams/vendorPages/baRequirementDetailsHome.jsf AJAXREQUEST = _viewRoot&放大器; requirementDetails%3ArequirementDetailsPage%3Acheck =假放; requirementDetails%3ArequirementDetailsPage%3Acheck =假放; requirementDetails%3ArequirementDetailsPage%3AreqIDAutoHidden = autoReqIDHidden&放大器; requirementDetails%3ArequirementDetailsPage%3AreqIDAutoHidden = autoReqIDHidden&放大器; requirementDetails%3ArequirementDetailsPage%3ArequireType =当前和放大器; requirementDetails%3ArequirementDetailsPage%3AskillAutoHidden = autoSkillHidden&放大器; requirementDetails%3ArequirementDetailsPage%3ArequireTypeSkill =当前和放大器; requirementDetails% 3ArequirementDetailsPage%3AlocAutoHidden = autolocHidden&放大器; requirementDetails%3ArequirementDetailsPage%3ArequireTypeloc =当前和放大器; requirementDetails%3ArequirementDetailsPage%3A_idJsp361 =所有&安培; javax.faces.ViewState = rO0ABXVyABNbTGphdmEubGFuZy5PYmplY3Q7kM5YnxBzKWwCAAB4cAAAAANzcgBHb3JnLmFwYWNoZS5teWZhY2VzLmFwcGxpY2F0aW9uLlRyZWVTdHJ1Y3R1cmVNYW5hZ2VyJFRyZWVTdHJ1Y3RDb21wb25lbnRGWRfYnEr2zwIABFsACV9jaGlsZHJlbnQASltMb3JnL2FwYWNoZS9teWZhY2VzL2FwcGxpY2F0aW9uL1RyZWVTdHJ1Y3R1cmVNYW5hZ2VyJFRyZWVTdHJ1Y3RDb21wb25lbnQ7TAAPX2NvbXBvbmVudENsYXNzdAASTGphdmEvbGFuZy9TdHJpbmc7TAAMX2NvbXBvbmVudElkcQB&放大器; equirementDetails%3ArequirementDetailsPage%3Areq%3A1%3A_idJsp383 = requirementDetails%3ArequirementDetailsPage%3Areq%3A1%3A_idJsp383&安培;自动滚屏=安培; requirementDetails%3ArequirementDetailsPage%3AreqIDAuto =安培; requirementDetails%3ArequirementDetailsPage%3AskillAuto =安培; requirementDetails%3ArequirementDetailsPage%3AlocAuto =安培; requirementDetails%3ArequirementDetailsPage%3A_idJsp326 =安培;再%3A_idJsp31%26requirementDetails%3ArequirementDetailsPage%3A_link_hidden _ =&放大器; requirementDetails% 3ArequirementDetailsPage%3A_idcl =安培; requirementDetails%3ArequirementDetailsPage%3A_idJsp460 =安培; requirementDetails%3ArequirementDetailsPage%3Areq%3A6%3A_idJsp383 = requirementDetails%3ArequirementDetailsPage%3Areq%3A6%3A_idJsp383&安培;

and response is showing like this :
POST /gbams/vendorPages/baRequirementDetailsHome.jsf AJAXREQUEST=_viewRoot&requirementDetails%3ArequirementDetailsPage%3Acheck=false&requirementDetails%3ArequirementDetailsPage%3Acheck=false&requirementDetails%3ArequirementDetailsPage%3AreqIDAutoHidden=autoReqIDHidden&requirementDetails%3ArequirementDetailsPage%3AreqIDAutoHidden=autoReqIDHidden&requirementDetails%3ArequirementDetailsPage%3ArequireType=current&requirementDetails%3ArequirementDetailsPage%3AskillAutoHidden=autoSkillHidden&requirementDetails%3ArequirementDetailsPage%3ArequireTypeSkill=current&requirementDetails%3ArequirementDetailsPage%3AlocAutoHidden=autolocHidden&requirementDetails%3ArequirementDetailsPage%3ArequireTypeloc=current&requirementDetails%3ArequirementDetailsPage%3A_idJsp361=All&javax.faces.ViewState=rO0ABXVyABNbTGphdmEubGFuZy5PYmplY3Q7kM5YnxBzKWwCAAB4cAAAAANzcgBHb3JnLmFwYWNoZS5teWZhY2VzLmFwcGxpY2F0aW9uLlRyZWVTdHJ1Y3R1cmVNYW5hZ2VyJFRyZWVTdHJ1Y3RDb21wb25lbnRGWRfYnEr2zwIABFsACV9jaGlsZHJlbnQASltMb3JnL2FwYWNoZS9teWZhY2VzL2FwcGxpY2F0aW9uL1RyZWVTdHJ1Y3R1cmVNYW5hZ2VyJFRyZWVTdHJ1Y3RDb21wb25lbnQ7TAAPX2NvbXBvbmVudENsYXNzdAASTGphdmEvbGFuZy9TdHJpbmc7TAAMX2NvbXBvbmVudElkcQB&equirementDetails%3ArequirementDetailsPage%3Areq%3A1%3A_idJsp383=requirementDetails%3ArequirementDetailsPage%3Areq%3A1%3A_idJsp383&autoScroll=&requirementDetails%3ArequirementDetailsPage%3AreqIDAuto=&requirementDetails%3ArequirementDetailsPage%3AskillAuto=&requirementDetails%3ArequirementDetailsPage%3AlocAuto=&requirementDetails%3ArequirementDetailsPage%3A_idJsp326=&re%3A_idJsp31%26requirementDetails%3ArequirementDetailsPage%3A_link_hidden_=&requirementDetails%3ArequirementDetailsPage%3A_idcl=&requirementDetails%3ArequirementDetailsPage%3A_idJsp460=&requirementDetails%3ArequirementDetailsPage%3Areq%3A6%3A_idJsp383=requirementDetails%3ArequirementDetailsPage%3Areq%3A6%3A_idJsp383&

推荐答案

使用Ruby与watir网络驱动程序跳过ajax提交
browser = Watir :: Browser.new:firefox
browser.goto'url'

Use Ruby with watir web driver to skip ajax submit browser = Watir::Browser.new :firefox browser.goto 'url'

 browser.goto '

 #browser.execute_script('arguments[0].removeAttribute("disabled");',
 browser.html)
 doc = Nokogiri::HTML(browser.html)

这篇关于如何跳过A4J。 Ajax.Submit通过php curl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 04:01