web-testing

How to select Chrome extensions to enable when using Selenium [duplicate]

隐身守侯 提交于 2019-12-05 11:28:16
This question already has answers here : Using Extensions with Selenium (Python) (2 answers) Closed 4 years ago . I am using Selenium web driver to develop an automated test using Chrome as my browser. I am using Python for this. I have an extension on my Chrome browser that I would like enabled when Selenium opens Chrome. The problem is that when Selenium opens Chrome all the extensions are disabled by default. How do I enable all or a certain extension on the Chrome browser when Selenium runs? Saifur You can accomplish this using ChromeOptions class or DesiredCapabilities . For that you have

I am trying to open Jmeter by the batch file but it gives me a Windows error

淺唱寂寞╮ 提交于 2019-12-05 01:46:13
Here is the related error its showing: java.exe is not a recognized file as an internal or external command, operable or external command errorlevel=9009 i was getting the same error on WIndows 8.1(64 bit) and checked java path but it was ok so i just run my jmeter.bat with Run as Administrator and it worked for me Many operating systems have an environment variable such as PATH that contains a list of directories (or folders) to be searched when looking for a command to execute. Commands that can be found via the PATH are commonly called external commands . The program that reads the command

Selenium locator for <label for=“x”>

偶尔善良 提交于 2019-12-05 00:51:59
With ASP.NET the tag IDs are pretty volatile so to make my tests more robust I want to locate elements by their label texts. I have played some with WatiN and it does this perfectly but that project seem kind of dead nowadays so I thought I'd look into Selenium as well before I decide on a framework. I have html that looks something like this <label for="ctl00_content_loginForm_ctl01_username">Username</label>: <input type="text" id="ctl00_content_loginForm_ctl01_username" /> I don't want to type: selenium.Type("ctl00_content_loginForm_ctl01_username", "xxx"); That is too reliant on the ID. In

From a shell script open a new tab in a specific instance of Firefox

隐身守侯 提交于 2019-12-04 17:02:10
I have a shell script that creates Firefox profiles and then uses them to open multiple instances of Firefox simultaneously. The problem is how can I open a URL in a particular instance of Firefox? I have tried firefox -CREATEPROFILE test firefox -P test -no-remote firefox -P test -url www.google.ie But the last part which is trying to open the URL using the test profile does not work, it always opens in the default profile. Is there any way to tell Firefox from the command line to open a URL using a particular profile? Thanks. EDIT: I am using Linux, I don't think its possible to do what I

Is there a way to install/emulate an older version of Safari ? (i.e 8)

纵饮孤独 提交于 2019-12-04 15:15:11
问题 On OSX: After an update to El Capitan, I found that Safari 9 was installed by default. For software testing purposes, I need to test a web app through Safari 8 (which is still the latest version in Yosemite). I searched but there is no way (expect for browserstack) to install or emulate an older version of Safari. Other than downgrading to Yosemite, is there a way to do it? 回答1: Probably the closest you could get is by downloading one of the WebKit nightlies that matches up with your desired

Use request value from list of values in JMeter

纵饮孤独 提交于 2019-12-04 10:06:00
问题 I'm sure I've already done this in the past but somehow I cannot figure out how ;-) So, here's my problem: I'm trying to create a JUnit test plan in which a HTTP request is modified each iteration by altering a specific parameter. So, for example in five iterations I want the following HTTP requests to be made: http://localhost:8080/test/foo.html?id=1 http://localhost:8080/test/foo.html?id=2 http://localhost:8080/test/foo.html?id=3 http://localhost:8080/test/foo.html?id=4 ... I want to

Is there a way to install/emulate an older version of Safari ? (i.e 8)

别说谁变了你拦得住时间么 提交于 2019-12-03 09:30:01
On OSX: After an update to El Capitan, I found that Safari 9 was installed by default. For software testing purposes, I need to test a web app through Safari 8 (which is still the latest version in Yosemite). I searched but there is no way (expect for browserstack) to install or emulate an older version of Safari. Other than downgrading to Yosemite, is there a way to do it? Probably the closest you could get is by downloading one of the WebKit nightlies that matches up with your desired Safari version. Wikipedia's Safari version history article lists the corresponding WebKit version for each

Add a SQL Datasource to a Web Test

早过忘川 提交于 2019-12-02 20:26:37
问题 I am trying to add a SQL Server Data Source to a Web Test in VS2017: I click Install packages and get this: Missing option value: installpath How do I overcome this problem? Edit 1: Using Process Monitor I have identified the command VS2017 runs: "C:\program files (x86)\microsoft visual studio\installer\vs_installer.exe" modify --focusedUi --installPath "" --activityId 6bb6d93d-8c2a-4462-9304-4ef2b29d27d1 --add Microsoft.VisualStudio.Component.SQL.DataSources --includeRecommended The

Add a SQL Datasource to a Web Test

时光总嘲笑我的痴心妄想 提交于 2019-12-02 11:29:46
I am trying to add a SQL Server Data Source to a Web Test in VS2017: I click Install packages and get this: Missing option value: installpath How do I overcome this problem? Edit 1: Using Process Monitor I have identified the command VS2017 runs: "C:\program files (x86)\microsoft visual studio\installer\vs_installer.exe" modify --focusedUi --installPath "" --activityId 6bb6d93d-8c2a-4462-9304-4ef2b29d27d1 --add Microsoft.VisualStudio.Component.SQL.DataSources --includeRecommended The installPath is empty so I specified it as: "C:\Program Files x86\Microsoft Visual Studio\2017\Enterprise

Is there a way to test a web site on the iPhone without an iPhone?

荒凉一梦 提交于 2019-11-30 19:34:55
I want to test a website to see how it works with the iPhone but I don't own an iPhone or an iPod touch. Is there a way I can test how the site works on them without owning one? What I'm really after is fixing how Stackoverflow's WMD markdown editor works on the iPhone. I hear that the hyperlink and image prompts are created too high. I think I know how to fix that but it's pretty tough to develop blind. If you own a Mac, you can download the iPhone SDK which comes with an iPhone simulator. It works not only for debugging a native app but also for browsing the web. If you have Safari on your