简体   繁体   English

我可以在axis2 Web 服务客户端中使用“selenium”吗?

[英]Can I use “selenium” in the axis2 web service client?

How are you?你好吗? I made a web service client by AXIS2.我通过 AXIS2 制作了一个 Web 服务客户端。 It works fine.它工作正常。 And I needed to grab an information from web page and relay it to the server using my web service client.我需要从网页中获取信息并使用我的 Web 服务客户端将其中继到服务器。 So I decided to use selenium+WebDriver.所以我决定使用selenium+WebDriver。

I developed it separately.我单独开发的。 So my web service client works fine and my selenium based scraper works fine.所以我的网络服务客户端工作正常,我的基于硒的刮板工作正常。 I confirmed it.我确认了。 I merged the source but my program didn't work.我合并了源,但我的程序不起作用。 Because firefoxDriver(with Xvfb solution) or HtmlUnitDriver didn't work properly.因为 firefoxDriver(使用 Xvfb 解决方案)或 HtmlUnitDriver 无法正常工作。 I tested it again by separated program, and each program worked fine.我通过单独的程序再次对其进行了测试,每个程序都运行良好。

Can I run selenium code in the axis2 based web service client?我可以在基于axis2 的Web 服务客户端中运行selenium 代码吗? Do I need to set something?我需要设置什么吗?

I found the answer.我找到了答案。 I should have replaced httpcore-4.0.jar with httpcore-4.3.jar Because Selenium use httpcore-4.3.jar我应该用 httpcore-4.3.jar 替换 httpcore-4.0.jar 因为 Selenium 使用 httpcore-4.3.jar

http://code.google.com/p/selenium/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Stars%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&groupby=&sort=&id=3575 http://code.google.com/p/selenium/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Stars%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&groupby=&sort=&id=3575

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM