browser

How to switch between 2 browsers in selenium webdriver with java

一世执手 提交于 2019-12-25 07:48:52
问题 I'm working on selenium webdriver with java. I want to open a browser perform some actions in it. Then open another browser and do the same actions in it, then go back to first browser and perform some actions. How can i switch between 2 browsers (not the switching between 2 tabs)? This is what i have done: @BeforeTest public void beforeTest() throws BiffException, IOException,InterruptedException { System.setProperty("webdriver.chrome.driver","D:\\MyProjects\\SeleniumTrials\\chromedriver

How to display DynamicReports in browser without download to cliend drive?

爱⌒轻易说出口 提交于 2019-12-25 07:18:49
问题 I have to display some reports with Dynamic Reports . I use NetBeans and Tomcat 7. Eventually, all must be uploaded to cloud OpenShift. I used DynamicReports to create simple report (code snippet): Connection conn=null; try { Class.forName(DBConnStrings.driver); conn = DriverManager.getConnection(DBConnStrings.url + DBConnStrings.dbName+DBConnStrings.sslState, DBConnStrings.userName, DBConnStrings.password); } catch (Exception e) { e.printStackTrace(); } JasperReportBuilder report =

Webbrowser Control, Flash not working

走远了吗. 提交于 2019-12-25 06:11:02
问题 I know this problem has been around forever and hopefully someone can point me to a solution. I created a simple web browser program (using VS 2013 Ultimate) to automate changing from urls by just clicking a button. It's for children so they don't need to navigate, they just push a button and it takes them to the next url. Problem: Flash content will not display using the webbrowser control. It will display in iexplorer 11 that is installed on the computer. It will also display in VS 2013

Webbrowser Control, Flash not working

心已入冬 提交于 2019-12-25 06:10:52
问题 I know this problem has been around forever and hopefully someone can point me to a solution. I created a simple web browser program (using VS 2013 Ultimate) to automate changing from urls by just clicking a button. It's for children so they don't need to navigate, they just push a button and it takes them to the next url. Problem: Flash content will not display using the webbrowser control. It will display in iexplorer 11 that is installed on the computer. It will also display in VS 2013

Angular page refresh on changing URL parameter in browser

夙愿已清 提交于 2019-12-25 06:06:39
问题 Extremely simple requirement but having a hard time with this. Have simple page where I print the parameter in the url path. http://localhost:8888/ngtest.html#/1234567 ngtest.html <div ng-app="app" ng-controller="testCtrl"> {{myId}} </div> <script> var app = angular.module('app', []); app.controller('testCtrl', function($scope, $location) { $scope.myId = $location.$$path; }); </script> In the browser window: change 1234567 to something like 1234 hit Enter Nothing happens. Hit F5 and it works

Submit a method in webbrowser

谁都会走 提交于 2019-12-25 05:57:16
问题 I have a problem invoking a submit method in web page This is my code Webbrowser.document.forms(0).invokemember("submit") It does nothing. Here is the html <form name="myWebForm" action="myServerSideScript.php" method="post"> <input type="checkbox" /> Checkbox 1<br /> <input type="text" /> Text Field 1<br /> <input type="submit" value="SUBMIT" /> </form> 回答1: You must set .AllowNavigation property to "TRUE" Webbrowser.AllowNavigation = True And call submit method like this Webbrowser.Document

WAMP Directory Forbidden Error

家住魔仙堡 提交于 2019-12-25 05:35:31
问题 I'm running WAMP on Windows 7, and I have two virtual hosts set up -- one @localhost and one @acutek.local. I can pull both pages up in my browser without issue, so I know the basic setup is correct. localhost is an index.html file, but I've changed acutek.local -- acutek.local is just a bunch of files, no more index HTML or PHP page. When I pull up acutek.local, I get a tree-structure list of the files: Which seems fine at first; I can browse through directories and see their contents.

Why Google Chrome does not delete session cookie when restart after crash?

こ雲淡風輕ζ 提交于 2019-12-25 05:31:31
问题 My web page set a session cookie when the user is connected. If i kill the chrome process on windows, and then i restart the browser, my session cookie is here ! Why ? Is there a way to prevent this behaviour ? 回答1: This is a feature, not a bug. Crashes usually are not intentional, and it would be a huge inconvenience to the user to have to log into everything all over again. Crashing is not the same as exiting. If you want to restart the browser, quit it the normal way, not by killing it. 来源

Why Google Chrome does not delete session cookie when restart after crash?

梦想与她 提交于 2019-12-25 05:31:09
问题 My web page set a session cookie when the user is connected. If i kill the chrome process on windows, and then i restart the browser, my session cookie is here ! Why ? Is there a way to prevent this behaviour ? 回答1: This is a feature, not a bug. Crashes usually are not intentional, and it would be a huge inconvenience to the user to have to log into everything all over again. Crashing is not the same as exiting. If you want to restart the browser, quit it the normal way, not by killing it. 来源

nginx does not receive requests except for hard refresh

我怕爱的太早我们不能终老 提交于 2019-12-25 05:11:58
问题 When doing a tail -f /var/log/nginx/access.log I notice the following things: when a user is on any page, and hits Enter from the address bar, no request is received by nginx , the browser directly loads from its cache instead when a user performs a hard refresh (F5 on Windows, Cmd+R on Mac), nginx did receive a request when a user visits /login which then redirects to / , nginx does indeed receive the request for /login but not for / , so the browser renders / from its cache, ignoring the