Tag Info

New answers tagged

0

I found out that you can filter tests in the Default.srprofile, for example <Filter@myTag</Filter> will only run tests with the tag @myTag. More info is provided here: http://www.specflow.org/media/specrun.html#US18


0

This looks like an issue with the driver. Looks like a bug with the code. https://github.com/ios-driver/ios-driver/issues/369


1

Does your element put inside in iFrame? If it's in iFrame, you should switch driver to that. OR Could you try with element = driver.findElement(By.cssSelector("div.clearfix.stk_btm_toptabs.text-center>a.stk_btm_chpFlight.active"));


0

From a quick look at the site, it appears that you only see the elements in the source after you mouseover so first thing to do is enter "guragon" //Wait for the results WebElement autofill= wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("keyword_suggest"))); you will then need to iterate through the divs/spans below it to create a ...


0

you need to switch to desired window before printing the title: handles = driver.window_handles for ii, hh in enumerate( handles ): driver.switch_to.window(hh) print 'window %s has title %s' % (ii, driver.title)


-1

These are relative paths which should be completed using the location where you installed selenium. Pointers are here: symbolic link to relative path


0

driver.manage().timeouts().implicitlyWait(2000, TimeUnit.MILLISECONDS); driver.manage().timeouts().pageLoadTimeout(40, TimeUnit.SECONDS); in my code, above 2 lines used and I comment the second line my application is working fine. //driver.manage().timeouts().pageLoadTimeout(40, TimeUnit.SECONDS);


0

Important Java concepts with respect to Selenium : Condition statement and looping statement Exception Handling Methods of Sting class List and Set Upcasting and Runtime Polymorphism Oops concepts with examples


0

First thing to try is to increase newSessionTimeoutSec to 80 or 120 secs. I.e. run instead: java -jar ios-server-standalone-0.6.6-SNAPSHOT.jar -newSessionTimeoutSec 120 -port 5555 If it doesn't helps below is mdiwakar's solution from a discussion of similar issue on GitHub: I am using mac VM, it seems the issue was instruments were crashing ...


0

First of all, wait for the element you'll be clicking. Right now you're waiting for a different element. Here's how: http://stackoverflow.com/questions/20903231/selenium-wait-until-element-is-present Then, if you still get that error, the ID is probably wrong and thus not actually present on the page (in the same frame). And why do you use XPath to locate ...


0

There're 2 cause often happens: The element has been deleted entirely. The element is no longer attached to the DOM. In your case, I think because the element j has not visibled in slcsubType so, it cannot click on slctsubType.get(j).click(); I think you should use Explicit Wait and wait until these elements appear then click. Hope this help.


0

I think you have written the code to select all the the options from drop downlist. but you should select at the most one element. so that you are getting "StaleElementReferenceException in selenium". it means that some where the reference to the existing element is getting dereferenced. means element =null. The problem is here in for loop: ...


0

I wouldn't use webdriver. Simply copy the url as a variable and plug it into curl (or equivalent).


-3

yes, I have done with C#,Downloading the file using webdriver and C#. I Have Explain It in More detail and with full example.It will really Helpful. you can reach it on below link: Download PDF file in selenium Webdriver C#


0

Firefox selenium web extension has an option to make the test run slower or faster using a sliding bar. Not sure if IE or Chrome has this if not i would just use the debugger.


0

Bar code reader can't be tested. If you are using TestNG then you can do load testing,please read this


0

You can't simulate a recovery from a system crash (either loss of internet or machine crash). I'd usually cover these manually to ensure that the devs are posting data in an appropriate transaction (to avoid partial posts).


0

The easiest way to do that in selenium webdriver is to extend your prefered WebDriver (e.g. FirefoxDriver) and override the execute methods. Write a Thread.sleep(yourWaitTime) in every execute method before return. Voila there is your speed reduce: @Override protected Response execute(String driverCommand, Map<String, ?> parameters) { try { ...


-1

You should Know Object oriented Concepts by using any programmig language like: C#, Java etc. You should know the Collection framework in C# or Java to handle the objects. You should know the HTML. You should know JavaScript. you should know Excel manipulation in java or C#. you should know how t connect database in java JDBC and in c# ADO.Net. You should ...


0

1- As you said you dont want to use any Third Party tool, then you can not handle windows browse or upload file button using selenium because its syntax is like this- Example: <input type="file" id="browsecv" name="browsecv"> /<input> or you can search it on below link and then inspect for **"browse"** button link: ...



Top 50 recent answers are included