Code Monkey home page Code Monkey logo

Comments (9)

ZanattaMichael avatar ZanattaMichael commented on September 28, 2024

from selmvp.

flcdrg avatar flcdrg commented on September 28, 2024

SelMVP\1.0.5\Module.psm1

I'll see if I can repro the original problem.

This is possibly related - this code block actually errors:

MVPActivity "Twitter" {
    Area "Technical Social Media (Twitter, Facebook, LinkedIn...)"
    Visibility 'Microsoft'
    ContributionArea ".NET"
    Value "Date" "13/03/2023"
    Value "Title" "Twitter"
    Value "URL" "https://twitter.com/DavidRGardiner"
    Value "Description" "Personal Twitter account"
    Value "Number of Talks" 1
    Value "Number of Followers" 1
}
New-MVPActivity : Exception calling "Invoke" with "0" argument(s): "Exception calling "Click" with "0" argument(s):
"Element <li class="Item"> could not be scrolled into view""
At C:\Program Files\WindowsPowerShell\Modules\SelMVP\1.0.5\Module.psm1:2292 char:9

(I am in Australia, but yes the date format is fine - it gets converted to what the UI is happy with)

In this case, if I remove the Visibility line altogether, it submits it successfully.

from selmvp.

flcdrg avatar flcdrg commented on September 28, 2024

This one reproduces the original problem for me though:

MVPActivity "Test" {
    Area "Sample Code/Projects/Tools"
    Visibility 'Microsoft'
    ContributionArea "Visual Studio Extensibility"
    Value "Date" "13/03/2023"
    Value "Title" "Test"
    Value "URL" "https://marketplace.visualstudio.com"
    Value "Description" "Example"
    Value "Number of Samples" 1
    Value "Number of Downloads" 1
}

The activity is added, but visibility is set to 'Everyone'

from selmvp.

ZanattaMichael avatar ZanattaMichael commented on September 28, 2024

No worries. I'm AUS based as well. :-p Out of curiosity what driver/browser are you using?

from selmvp.

flcdrg avatar flcdrg commented on September 28, 2024

Firefox and geckodriver-v0.32.2-win64

from selmvp.

ZanattaMichael avatar ZanattaMichael commented on September 28, 2024

Thanks for that. I'm investigating now.

from selmvp.

ZanattaMichael avatar ZanattaMichael commented on September 28, 2024

I've gotten to the bottom of the issue. The JavaScript isn't catching up to the click event, causing the event to fail. I've refactored the cmdlet and wrapped the logic within looping try/catch (ttry). I need to do some more testing, however I will release a new version tomorrow.

from selmvp.

ZanattaMichael avatar ZanattaMichael commented on September 28, 2024

New version is out. Please confirm the issue has been fixed on your end.

https://www.powershellgallery.com/packages/SelMVP/1.0.6

from selmvp.

flcdrg avatar flcdrg commented on September 28, 2024

Thanks. I've done most of my activities, but if I think of any more I'll try it out.

from selmvp.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.