BountyHunter
  • Member for 5 years, 2 months
  • Last seen more than a month ago
1 answers
3 votes
5k views
Unable to click button Selenium Webdriver 3
Accepted answer
5 votes

Try this xpath //*[contains(@class,'btn btn-primary btn-lg btn-block pink button') and contains(@tabindex,'4')] The xpath basically means : any element that has class attribute containing 'btn btn-...

View answer
4 answers
2 votes
6k views
Selenium -- How to deal with 2 submit buttons and click on one of them?
Accepted answer
2 votes

I would recommend you find the element using xpath and specify index within xpath. So for the button you are referring to, the code with indexed xpath would be driver.findElement(By.xpath("(//button[...

View answer
2 answers
1 votes
296 views
The right way to start test automation in agile project
Accepted answer
2 votes

My thoughts Are test cases needed in agile testing or do we directly write automation scripts? I would strongly recommend you write test cases first and then do a feasibility study of which tests ...

View answer
1 answers
2 votes
1k views
How to automate WEBVIEW in Native Android application?
Accepted answer
2 votes

If you are using Appium or Selendroid to automate this WebView, you may simply use the inspector to locate the element/elements used for Bold/underlined text. Once you have located the element, simply ...

View answer
3 answers
0 votes
12k views
How To Locate Element using selenium web driver when Unique property is 'index'?
1 votes

You could simply write an xpath with index specified. For the example you mentioned, the xpath should look like: driver.findElement(By.xpath("(//*[@id='menuitem'])[index]") where index will start ...

View answer
1 answers
0 votes
691 views
Build.xml in jenkins able to compile but not executing in Mac OSX
1 votes

It seems like Jenkins is unable to access WindowServer Type this in terminal: sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist sudo mv /Library/LaunchDaemons/org.jenkins-ci.plist /...

View answer
1 answers
-1 votes
90 views
Mobile Testing Tools Suggestions
1 votes

I would suggest you use appium for testing mobile application. I have listed a Few Advantages of using appium for native and hybrid applications Appium can be used to test both Android and iOS ...

View answer
1 answers
2 votes
101 views
Google extension Check My Links returns different test results for the same webpage
Accepted answer
1 votes

Some webpages display elements based on viewport size of the browser. I have used CheckMyLinks XPI with chromedriver in a test Automation suite in the past and it provided consistent results. Please ...

View answer
2 answers
2 votes
23k views
Find an element with two class's attributes on Selenium
1 votes

To add to @Yu Zhang's solution, you may also use the 'and' operator in the xpath. So your statement would look like : driver.find_element_by_xpath( "//div[@data-user-id='30646' and @data-shift-date='...

View answer
1 answers
0 votes
229 views
How to check webservice response in database using Selenium or UFT
0 votes

Here is one way I would suggest you implement this: Use a proxy like Browsermob(https://github.com/lightbody/browsermob-proxy) when initiating your selenium tests and capture HAR content Once the ...

View answer
1 answers
0 votes
655 views
Unable to run protractor test in browserstack on ios device
Accepted answer
0 votes

This is an open issue with protractor: github.com/angular/protractor/issues/2840. You can use the workaround mentioned here: github.com/angular/protractor/issues/… "Safari 10.3 & 11.0 do not work ...

View answer
3 answers
1 votes
2k views
Not able to install appium with npm. Failed at the appium-chromedriver@2.9.2 install script 'node install-npm.js'
0 votes

It is quite likely that the connection quality may be causing this. You may want to consider changing the default values for npm's retries, factor, minTimeout and maxTimeout options or try using a ...

View answer
3 answers
1 votes
1k views
I need to run a project build using selenium webdriver/maven/junit with jenkins
0 votes

I would suggest you follow the below approach Create a main method to invoke your test Use Maven for managing dependencies and create an Ant build file to run your main method Install Ant plugin in ...

View answer
3 answers
0 votes
541 views
Selendroid error while setup in windows get error in cmd
0 votes

This could be due to folder permission issues or jar file getting corrupt. Could you please move the jar file to a different folder and try running again or download the jar again. Also, you may ...

View answer
2 answers
2 votes
603 views
Close a one windowHandler at the Webview
0 votes

I would suggest you follow the below approach: Before performing the action you mentioned, store the default(main) window handle in a string variable, say CurrentHandle using driver.getWindowHandles()...

View answer