Mark S.Raphael

Ranch Hand
+ Follow
since Sep 25, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
4
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mark S.Raphael

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.FluentWait;
3 years ago
Any ideas please, could it be something to do with the driver object redirect?
3 years ago

Mark S.Raphael wrote:

Norm Radder wrote:Where is the code that calls the countMsnSearchResults method?  How many times does it call the method?
If there is a loop, what controls how many times the loop iterates?



Please dismiss the angle bracket on line 2. Again you can see that the results are -re-printed twice for some reason which is baffling me

3 years ago

Norm Radder wrote:Where is the code that calls the countMsnSearchResults method?  How many times does it call the method?
If there is a loop, what controls how many times the loop iterates?



Its a for loop in the previous method, in is declared as List<String> msnLinksTextInGoogleSearchResults = new ArrayList<>();






3 years ago

Norm Radder wrote:Where is the code that calls the countMsnSearchResults method?  How many times does it call the method?
If there is a loop, what controls how many times the loop iterates?



Its a for loop in the previous method, in is declared as List<String> msnLinksTextInGoogleSearchResults = new ArrayList<>();

for(int x=0; x<msnLinksTextInGoogleSearchResults.size(); x++) >
countMSNSearchResults(msnLinksTextInGoogleSearchResults.get(x).toString());
3 years ago
Sorry there is typo

3 years ago




3 LINKS displayed containing the word 'Cat'
34 records present on Page : Used Cats for sale in Italy - msn
34 records present on Page : Used Cats for sale in Italy | Page 2/50 - msn
32 records present on Page : Cheap Cats in London | Italy for Sale - msn
34 records present on Page : Used Cats for sale in Italy - msn
34 records present on Page : Used Cats for sale in Italy | Page 2/50 - msn
32 records present on Page : Cheap Cats in London | Italy for Sale - msn
34 records present on Page : Used Cats for sale in Italy - msn
34 records present on Page : Used Cats for sale in Italy | Page 2/50 - msn
32 records present on Page : Cheap Cats in London | Italy for Sale - msn
3 years ago


I am using selenium-java-3.7.1, and gradle
3 years ago
Yes, Im sure. I have tried all the suggested libraries in the IDE without success
3 years ago

Dave Tolls wrote:Why are you using Predicate and not Function as the until method expects?

Since you have given it an apply() method, which does not exist as part of Predicate but does as part of Function, I think you've simply used the wrong interface.



I changed over to function and got the same error Dave
3 years ago

Dave Tolls wrote:Why are you using Predicate and not Function as the until method expects?

Since you have given it an apply() method, which does not exist as part of Predicate but does as part of Function, I think you've simply used the wrong interface.




Hi Dave, many thanks for your prompt reply. I have implemented the below example which is similar and works so I do not think that your suggestion is the reason. Please advise:


3 years ago
Hi All, I am trying to implement a predicate instead of using an implicit wait to test a calculator application float division by 0 on an Android device. The code is as follows:




The IDE is warning me that the predicate object reference in the above code is:
a)  until(java.util.function.Function<? super org.openqa.selenium.WebDriver,java.lang.Object>) in FluentWait¬†cannot be applied to (com.google.common.base.Predicate<org.openqa.selenium.WebDriver>)
and b) error: <anonymous com.masteringappium.appium_fmwk_with_fluent_page_objects.page_objects.CalculatorPage$1> is not abstract and does not override abstract method test(WebDriver) in Predicate

The reason why I must use an explicit wait is because the form is re-rendered and the values do not appear until after approximately 3 seconds

Many thanks in advance for any help you can give.
3 years ago
I am clear on the code execution sequence. thanks; and thanks again for showing me the utility to debug the code
3 years ago
Having double curley brackets has no implications on the code
3 years ago
ok, no worries. Do you have a different example please?
3 years ago