in Education by
I want to click on group add button of Facebook, but I have not found it possible using an xpath. Here is the html for the button: Add This is how I have tried to click on it: JavascriptExecutor jse1 = (JavascriptExecutor)driver; jse1.executeScript("document.getElementById('gbqfb').click‌();"); JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
You should try using xpath as below :- driver.findElement(By.xpath(".//a[contains(.,'Add')]")).click(); Or driver.findElement(By.xpath(".//a[normalize-space() = 'Add']")).click();

Related questions

0 votes
    To remove a transition form a slide , click on none options in transition to this slide group on…… Tab in PowerPoint Select the correct answer from above options...
asked Dec 29, 2021 in Education by JackTerrance
0 votes
    Click on the ________ tab to add chart details like titles, labels, legend etc. Design Layout Format Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    _____ prevents you from seeing an individual as an individual rather than as a member of a group. (a) Cultural ... (c) Schematas (d) Attributions Please answer the above question....
asked Oct 22, 2022 in Education by JackTerrance
0 votes
    I want to add port 8080 to the EC2 security group to access tomcat. But whenever I select HTTP from drop ... access Tomcat publicly? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I want to add port 8080 to the EC2 security group to access tomcat. But whenever I select HTTP from drop ... access Tomcat publicly? Select the correct answer from above options...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    FQL statement has executed and array object has been passed to $fqlResult successfully. However, I'm unable ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 13, 2022 in Education by JackTerrance
0 votes
    Sona wants to add picture in a word document which group should be used to open insert picture dialogue box Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    When you select “Existing guests only” for SharePoint, how can you add a guest to an environment? Is this through the B2B option?...
asked Mar 10, 2021 in Technology by JackTerrance
0 votes
    I have a Facebook Like button implementation which is rendering fine in all browsers desktop and mobile. But ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    I'm using this code to merge text with an image and it's working fine. But when I use this code with Facebook app, it ... up output. Here is the code I'm using for Facebook app:...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    Facebook Adverts is an advertising platform that can deliver ads on _____________. (1)Instagram (2)Both Facebook and Instagram (3)Facebook...
asked May 17, 2021 in General by JackTerrance
0 votes
    I am trying to model the UX for search as follows: How can I shift the search bar to the top of ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Aug 1, 2022 in Education by JackTerrance
0 votes
    I have to put an input on the site from Excel file which I have done successfully. The only thing i got stuck ... as per the Excel file Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I have to put an input on the site from Excel file which I have done successfully. The only thing i got stuck ... as per the Excel file Select the correct answer from above options...
asked Feb 5, 2022 in Education by JackTerrance
...