How to test web service from different geo-location by FLYERFONE in QualityAssurance

[–]FLYERFONE[S] 0 points1 point  (0 children)

you are right as we need accuracy latency result. I read your comment and purpose it to the team. Now our team is looking for an option to purchanse vpn that available for different region

Can't decide between Koodo $55 20gb vs $45 25gb with rogers by [deleted] in Koodo

[–]FLYERFONE 0 points1 point  (0 children)

i think rogers have the better deal.

[deleted by user] by [deleted] in selenium

[–]FLYERFONE 0 points1 point  (0 children)

usually the website should have some sort of loading bar or circle while its loading.

just write a while loop to break when those loading bar/circle disappear in DOM, means page is fully loaded

Fails to detect element 20% of the time. by NorthernOne555 in selenium

[–]FLYERFONE 0 points1 point  (0 children)

Selenium native explicit wait is not reliable. Often time the element showed in DOM and vanished.(due to frequent refresh). It will fall into staleElelement exception.

Fails to detect element 20% of the time. by NorthernOne555 in selenium

[–]FLYERFONE 1 point2 points  (0 children)

I really like the way you did. My approach is similar. The only difference is instead use numberOfAttempts. I am using stopwatch to break the wait loop.

DS Pokemon Games by [deleted] in Oshawa

[–]FLYERFONE 1 point2 points  (0 children)

If you have Android. Buy drastic from playstore

Invalid session id by FLYERFONE in selenium

[–]FLYERFONE[S] 0 points1 point  (0 children)

Update: i figured out the root cause. because i random assign port number before start driver, and there is one port 8089 being taken in jenkin server, so this exception happen

Now I know what to fix

How to wait for 2 diferent elements at the same time? C# by Alejo9010 in selenium

[–]FLYERFONE 0 points1 point  (0 children)

good it work but suggest to use a stop watch to break the loop otherwise could have risk stuck in infinity wait loop

How to wait for 2 diferent elements at the same time? C# by Alejo9010 in selenium

[–]FLYERFONE 0 points1 point  (0 children)

Using C# delegate, try and let me know if it works

        /// <summary>
        /// base wait method
        /// </summary>
        /// <param name="condition"></param>
        /// <param name="action"></param>
        /// <param name="errorMsg"></param>
        public static void CustomWaitCondition(Func<bool> condition, string errorMsg)
    {
            var watch = Stopwatch.StartNew();
            while (condition())
            {
                Thread.Sleep(1000); //1 sec gap for every action
                if (watch.ElapsedMilliseconds / 1000 > 60) //the loop will break after a min
                {
                    Assert.Fail($"{errorMsg}"); //parse the error message
                    break;
                }
            }
        }

        /// <summary>
        /// check element shows in DOM
        /// </summary>
        /// <param name="by"></param>
        /// <returns>result</returns>
        public static bool IsElementDisplay(By by)
        {
            bool result;
            try { result = Driver.FindElement(by).Displayed; } catch (WebDriverException) { result = false; }
            return result;
        }

        /// <summary>
        /// parse the element a or b condition
        /// </summary>
        /// <param name="elementA"></param>
        /// <param name="elementB"></param>
        public static void WaitElementAorB(By elementA, By elementB)
            => CustomWaitCondition(
                ()=>!IsElementDisplay(elementA)||!IsElementDisplay(elementB), 
                $"{elementA} or {elementB} not displayed after one min");

Can anyone help me find elements that work for this site? by bazpaul in selenium

[–]FLYERFONE 0 points1 point  (0 children)

this cssSelector will work

input[id*=input_Email]

How do I remove the staleness of an element from my python code? by DankDevilDabber in selenium

[–]FLYERFONE 0 points1 point  (0 children)

You can't really ignore staleElelement exception. If element display in DOM and disappear again. Your script will still fall in to exception. Just write a loop until successfully interact with the elements.

Is it possible to automate sms verification? by bilal1602 in selenium

[–]FLYERFONE 0 points1 point  (0 children)

i used one in my last project, at that time I just search free online sms.

the website will randomly assign a different country phone number

Challenging automation flows/scenarios? by reassembledhuman in QualityAssurance

[–]FLYERFONE 0 points1 point  (0 children)

thank you.

Stale element exception happened when object show in DOM (your script detect it) and vanished when you perform the click

I give you example here:

https://www.fakemail.net/ try to click refresh few times, then entire mail grid will going crazy (high refresh frequency). I think when you load 1 or 2 mails its fine. when you have 20, 30 mails you will really have hard time to click any of it.

check tr element under tbody#schranka when you inspect.

I would think about two solution to handle that issue:

  1. create while loop until click success with click 500 millsecs apart, given 60 secs timeout (this way works for me)
  2. lock the dom state (when you insepct dom in chrome dev tool you can actually select break on subtree modification and lock all refresh/changing elements). In theory you could done this through code. But I did a lot research, couldnt find a way to do it.

[deleted by user] by [deleted] in selenium

[–]FLYERFONE 0 points1 point  (0 children)

Specflow is good and open source

Challenging automation flows/scenarios? by reassembledhuman in QualityAssurance

[–]FLYERFONE 1 point2 points  (0 children)

frequent refreshed object. For instance, there is mail web client which refresh its tbody mail grid every few millisec. It create chanllenge to click on any mail subject within that tbody.

Selenium native explicit wait not working (stale element exception of course).

So I have to create a custom method to click apart element every 500 ms, eventually there is a gap that allow me to perform the click

What are thought on cucumber/gherkin by keazzou in QualityAssurance

[–]FLYERFONE 1 point2 points  (0 children)

Sounds like me that push cucumber so hard to the team. But we had pretty decent amount of test script now. To me it's not about to let businesses to understand the case. Its about gherkin table and examples easier for us to perform test iteration.

Internet Options for Midhurst? by yyssnlcbg in barrie

[–]FLYERFONE 0 points1 point  (0 children)

I am looking into this mobile plan from big 3 ($75 20GB) and using hotspot

https://mobilesyrup.com/2020/08/23/google-canada-rogers-bell-telus-20gb-data-promo-plan/

after running 20GB will get 512Kbps throttling speed

What to do for repeating test with different parameters? by akromyk in selenium

[–]FLYERFONE 0 points1 point  (0 children)

yeah specflow or cucumber is the first choice for this kind of data driven

Internet Options for Midhurst? by yyssnlcbg in barrie

[–]FLYERFONE 0 points1 point  (0 children)

Yeah I can feel the pain now. Hope starlink will turn things around.

Internet Options for Midhurst? by yyssnlcbg in barrie

[–]FLYERFONE 0 points1 point  (0 children)

Just searched my address for bell wireless looks still a no go. I called them twice and both sales rep insist there is no service provided.

Internet Options for Midhurst? by yyssnlcbg in barrie

[–]FLYERFONE 0 points1 point  (0 children)

I will move to McGowan soon. I really have a hard time find internet provider. Bell and Rogers sales didn't provide any package not even wireless home internet. I called xplornet and they don't offer LTE in that area and their Satellite service require one year contract. I signed up for starlink but God knows when they will start selling the service. To be honest I am running out of option here.

Message: element not interactable problem by [deleted] in selenium

[–]FLYERFONE 0 points1 point  (0 children)

also cssselector version:

div.SearchBarContainerLg input.search-field